/* ---------- Hero ---------- */
.aw-hero {
    position: relative; overflow: hidden; text-align: center;
    background: linear-gradient(135deg, var(--secondary-blue) 0%, var(--primary-blue) 55%, #24478f 100%);
    color: var(--white); padding: 130px 20px 70px;
}
.aw-hero::before {
    content: ''; position: absolute; inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(251,191,36,.18), transparent 42%),
        radial-gradient(circle at 85% 75%, rgba(251,191,36,.13), transparent 45%);
    pointer-events: none;
}
.aw-hero > * { position: relative; z-index: 1; }
.aw-breadcrumb { font-size: 0.88rem; opacity: .8; margin-bottom: 20px; }
.aw-breadcrumb a { color: var(--lions-gold); text-decoration: none; }
.aw-breadcrumb a:hover { text-decoration: underline; }
.aw-eyebrow {
    display: inline-flex; align-items: center; gap: 9px;
    border: 1px solid rgba(251,191,36,.55); background: rgba(251,191,36,.12);
    color: var(--lions-gold); font-size: 0.72rem; font-weight: 800;
    letter-spacing: 2.2px; text-transform: uppercase;
    padding: 8px 20px; border-radius: 30px; margin-bottom: 22px;
}
.aw-hero h1 {
    font-size: 3.1rem; line-height: 1.12; margin: 0 0 8px; font-weight: 800;
    letter-spacing: -.5px;
}
.aw-hero h1 .yr {
    display: block; font-size: 1.5rem; font-weight: 600;
    color: var(--lions-gold); letter-spacing: 3px; margin-top: 10px;
}
.aw-hero .aw-lede {
    max-width: 720px; margin: 20px auto 0; opacity: .9;
    line-height: 1.7; font-size: 1.03rem;
}
.aw-rule {
    width: 90px; height: 3px; margin: 26px auto 0; border-radius: 3px;
    background: linear-gradient(90deg, transparent, var(--lions-gold), transparent);
}

/* DG strip */
.dg-strip {
    display: flex; align-items: center; justify-content: center; gap: 22px;
    max-width: 620px; margin: 40px auto 0; padding: 20px 26px;
    background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.2);
    border-radius: 16px; backdrop-filter: blur(4px); text-align: left;
}
.dg-strip img {
    width: 82px; height: 82px; border-radius: 50%; object-fit: cover;
    border: 3px solid var(--lions-gold); flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.3); background: var(--white);
}
.dg-strip .dg-label {
    font-size: .66rem; letter-spacing: 1.6px; text-transform: uppercase;
    color: var(--lions-gold); font-weight: 800; margin-bottom: 5px;
}
.dg-strip h2 { font-size: 1.16rem; margin: 0 0 3px; color: var(--white); font-weight: 700; }
.dg-strip p { font-size: .86rem; margin: 0; opacity: .82; }

/* Hero stat row */
.aw-stats {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 46px;
    margin: 44px auto 0; max-width: 720px;
}
.aw-stat .n {
    font-size: 2.1rem; font-weight: 800; color: var(--lions-gold); line-height: 1;
}
.aw-stat .l {
    font-size: .72rem; letter-spacing: 1.4px; text-transform: uppercase;
    opacity: .82; margin-top: 7px; font-weight: 600;
}

/* ---------- Body ---------- */
.aw-body { padding: 0 20px 80px; background: var(--light-gray); overflow-x: clip; }
.aw-wrap { max-width: 1220px; margin: 0 auto; min-width: 0; }

/* Sticky control bar */
.aw-controls {
    position: sticky; top: 0; z-index: 50;
    background: rgba(248,250,252,.94); backdrop-filter: blur(8px);
    margin: 0 -20px; padding: 22px 20px 16px;
    border-bottom: 1px solid var(--medium-gray);
}
.aw-controls-inner { max-width: 1220px; margin: 0 auto; min-width: 0; }
.aw-searchrow {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
    justify-content: space-between; margin-bottom: 14px; min-width: 0;
}
/* Wrapper must hug the input: it is the positioning context for the icon,
   so any extra height would push the icon off-centre. */
.aw-search {
    position: relative; flex: 0 1 440px; max-width: 440px; min-width: 0;
    display: flex; align-items: center; align-self: center;
}
.aw-search > i {
    position: absolute; left: 17px; top: 50%; transform: translateY(-50%);
    color: var(--text-light); font-size: .88rem; pointer-events: none; z-index: 1;
}
.aw-search input {
    width: 100%; padding: 13px 40px 13px 43px; border: 2px solid var(--medium-gray);
    border-radius: 30px; background: var(--white); font-size: .93rem;
    font-family: inherit; color: var(--text-dark); transition: var(--transition);
}
.aw-search input:focus {
    outline: none; border-color: var(--lions-gold);
    box-shadow: 0 0 0 4px rgba(251,191,36,.16);
}
.aw-clear {
    position: absolute; right: 13px; top: 50%; transform: translateY(-50%);
    border: none; background: var(--medium-gray); color: var(--text-dark);
    width: 22px; height: 22px; border-radius: 50%; cursor: pointer;
    font-size: .72rem; line-height: 1; display: none; padding: 0;
}
.aw-search.has-val .aw-clear { display: block; }
.aw-clear:hover { background: var(--lions-gold); }
.aw-count { color: var(--text-light); font-size: .88rem; font-weight: 600; }
.aw-count b { color: var(--primary-blue); }

.aw-chips { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chip {
    display: inline-flex; align-items: center; gap: 7px;
    background: var(--white); color: var(--primary-blue);
    border: 1.5px solid var(--medium-gray); padding: 8px 15px;
    border-radius: 22px; font-size: .79rem; font-weight: 600;
    cursor: pointer; font-family: inherit; transition: var(--transition);
    white-space: nowrap;
}
.chip:hover { border-color: var(--lions-gold); transform: translateY(-1px); }
.chip.active {
    background: var(--primary-blue); color: var(--white); border-color: var(--primary-blue);
}
.chip .n {
    background: var(--light-gray); color: var(--text-light);
    font-size: .68rem; font-weight: 800; padding: 1px 7px; border-radius: 9px;
}
.chip.active .n { background: rgba(255,255,255,.22); color: var(--white); }
.chip[data-tier="diamond"]:not(.active) { border-color: #b9c7e8; }
.chip[data-tier="gold"]:not(.active) { border-color: #f0d99a; }

/* ---------- Groups ---------- */
.aw-group { padding-top: 52px; scroll-margin-top: 130px; }
.aw-group[hidden] { display: none; }
.grp-head { margin-bottom: 22px; }
.grp-titlerow { display: flex; align-items: center; gap: 13px; flex-wrap: wrap; }
.grp-ico {
    width: 42px; height: 42px; border-radius: 11px; flex-shrink: 0;
    display: grid; place-items: center; font-size: 1.05rem;
    background: var(--primary-blue); color: var(--lions-gold);
}
.aw-group[data-tier="diamond"] .grp-ico { background: linear-gradient(135deg, #2d4fa2, #1e3a8a); color: #cfe0ff; }
.aw-group[data-tier="gold"] .grp-ico { background: linear-gradient(135deg, #f0b429, #d99a1f); color: #4a3208; }
.aw-group[data-tier="top"] .grp-ico { background: linear-gradient(135deg, var(--lions-gold), #e0a920); color: var(--secondary-blue); }
.grp-titlerow h2 {
    font-size: 1.5rem; color: var(--primary-blue); font-weight: 800; margin: 0;
    letter-spacing: -.2px;
}
.grp-n {
    background: var(--medium-gray); color: var(--text-dark); font-size: .7rem;
    padding: 3px 10px; border-radius: 11px; font-weight: 800;
}
.grp-blurb {
    color: var(--text-light); font-size: .9rem; margin: 9px 0 0;
    line-height: 1.55; max-width: 760px;
}
.grp-bar {
    height: 3px; border-radius: 3px; margin-top: 15px; width: 62px;
    background: var(--medium-gray);
}
.aw-group[data-tier="top"] .grp-bar { background: linear-gradient(90deg, var(--lions-gold), #e0a920); width: 96px; }
.aw-group[data-tier="diamond"] .grp-bar { background: linear-gradient(90deg, #2d4fa2, #7d9bdb); width: 82px; }
.aw-group[data-tier="gold"] .grp-bar { background: linear-gradient(90deg, #f0b429, #f6d68a); width: 82px; }

/* ---------- Cards ---------- */
/* Columns are wider than before: the portrait takes ~100px of the card, so a
   298px column left too little for the name and wrapped it mid-title. */
.aw-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 18px;
}
.aw-group[data-tier="top"] .aw-grid { grid-template-columns: repeat(auto-fill, minmax(372px, 1fr)); gap: 22px; }

.aw-card {
    position: relative; background: var(--white); border-radius: 14px;
    padding: 22px 22px 20px; box-shadow: var(--shadow);
    transition: var(--transition); display: flex; flex-direction: column;
    border: 1px solid var(--medium-gray); overflow: hidden;
}
.aw-card::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    background: var(--medium-gray); transition: var(--transition);
}
.aw-card[data-tier="diamond"]::before { background: linear-gradient(180deg, #2d4fa2, #7d9bdb); }
.aw-card[data-tier="gold"]::before { background: linear-gradient(180deg, #f0b429, #f6d68a); }
.aw-card[data-tier="top"]::before { background: linear-gradient(180deg, var(--lions-gold), #e0a920); width: 5px; }
.aw-card:hover {
    transform: translateY(-5px); box-shadow: var(--shadow-lg);
    border-color: transparent;
}
.aw-card[hidden] { display: none; }

.aw-card[data-tier="top"] {
    background: linear-gradient(160deg, #fffdf6 0%, var(--white) 60%);
    border-color: rgba(251,191,36,.5);
}

.card-top {
    display: flex; align-items: center; justify-content: space-between;
    gap: 10px; margin-bottom: 13px;
}
.tier-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .63rem; font-weight: 800; letter-spacing: 1.1px;
    text-transform: uppercase; padding: 4px 10px; border-radius: 20px;
    background: var(--light-gray); color: var(--text-light);
}
.aw-card[data-tier="diamond"] .tier-badge { background: #eaf0fd; color: #2d4fa2; }
.aw-card[data-tier="gold"] .tier-badge { background: #fdf3dc; color: #96700d; }
.aw-card[data-tier="top"] .tier-badge { background: var(--lions-gold); color: var(--secondary-blue); }
.card-sl {
    font-size: .68rem; font-weight: 700; color: var(--text-light);
    flex-shrink: 0; letter-spacing: .3px;
}

.aw-card .a-name {
    font-size: 1.06rem; font-weight: 800; color: var(--primary-blue);
    line-height: 1.32; margin-bottom: 9px; letter-spacing: -.2px;
}
.aw-group[data-tier="top"] .a-name { font-size: 1.18rem; }
.aw-card .a-title {
    font-size: .855rem; color: var(--text-dark); line-height: 1.5;
    font-weight: 500; padding-bottom: 14px;
}
.aw-card .a-club {
    font-size: .79rem; color: var(--text-light); margin-top: auto;
    padding-top: 13px; border-top: 1px dashed var(--medium-gray);
    display: flex; align-items: flex-start; gap: 8px; line-height: 1.45;
}
.aw-card .a-club i { color: var(--lions-gold); margin-top: 2px; flex-shrink: 0; }
.aw-card .a-pg {
    font-size: .68rem; color: var(--text-light); margin-top: 9px;
    opacity: .78;
}

/* Club-only cards (no individual named) */
.aw-card.club-only .a-title {
    font-size: .98rem; font-weight: 700; color: var(--primary-blue);
    line-height: 1.4;
}

/* ---------- Empty state ---------- */
.aw-empty { text-align: center; padding: 80px 20px; color: var(--text-light); display: none; }
.aw-empty.show { display: block; }
.aw-empty i { font-size: 2.8rem; color: var(--medium-gray); margin-bottom: 16px; display: block; }
.aw-empty h3 { color: var(--text-dark); margin-bottom: 8px; }

/* ---------- Source note ---------- */
.aw-source {
    max-width: 1220px; margin: 60px auto 0; text-align: center;
    padding: 30px 24px; background: var(--white); border-radius: 14px;
    border: 1px solid var(--medium-gray); color: var(--text-light); font-size: .88rem;
}
.aw-source .pdf-btn {
    display: inline-flex; align-items: center; gap: 9px; margin-top: 14px;
    background: var(--primary-blue); color: var(--white); padding: 11px 24px;
    border-radius: 26px; text-decoration: none; font-weight: 700; font-size: .87rem;
    transition: var(--transition);
}
.aw-source .pdf-btn:hover {
    background: var(--lions-gold); color: var(--primary-blue); transform: translateY(-2px);
    box-shadow: var(--shadow);
}

/* Back to top */
.aw-top {
    position: fixed; right: 26px; bottom: 26px; z-index: 60;
    width: 46px; height: 46px; border-radius: 50%; border: none; cursor: pointer;
    background: var(--primary-blue); color: var(--white); font-size: 1rem;
    box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none;
    transition: var(--transition);
}
.aw-top.show { opacity: 1; pointer-events: auto; }
.aw-top:hover { background: var(--lions-gold); color: var(--primary-blue); }

@media (max-width: 900px) {
    .aw-hero h1 { font-size: 2.3rem; }
    .aw-stats { gap: 30px; }
}
@media (max-width: 768px) {
    .aw-hero { padding: 105px 18px 52px; }
    .aw-hero h1 { font-size: 1.95rem; }
    .aw-hero h1 .yr { font-size: 1.15rem; }
    .dg-strip { flex-direction: column; text-align: center; gap: 14px; }
    .aw-stats { gap: 24px; }
    .aw-stat .n { font-size: 1.6rem; }
    .aw-grid, .aw-group[data-tier="top"] .aw-grid { grid-template-columns: 1fr; }
    .aw-searchrow { flex-direction: column; align-items: stretch; }
    /* In column direction the wrapper must not grow past the input,
       or the absolutely-positioned search icon loses its centring. */
    .aw-search { max-width: none; flex: 0 0 auto; align-self: stretch; }
    /* Chips scroll sideways within the viewport rather than widening the page. */
    .aw-chips {
        flex-wrap: nowrap; overflow-x: auto; padding-bottom: 6px;
        scrollbar-width: none; -webkit-overflow-scrolling: touch;
        width: 100%; max-width: 100%;
    }
    .aw-chips .chip { flex: 0 0 auto; }
    .aw-chips::-webkit-scrollbar { display: none; }
    .grp-titlerow h2 { font-size: 1.22rem; }
}

/* ---------- Sub-page variants ---------- */
/* Category pages use a shorter hero than the overview. */
.aw-hero.compact { padding: 118px 20px 52px; }
.aw-hero.compact h1 { font-size: 2.45rem; }

/* Page links shown in the hero + at the foot of every awards page */
.aw-pagenav {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px;
    max-width: 940px; margin: 34px auto 0;
}
.aw-pagenav a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 17px; border-radius: 24px; text-decoration: none;
    font-size: .82rem; font-weight: 600; transition: var(--transition);
    background: rgba(255,255,255,.1); color: var(--white);
    border: 1px solid rgba(255,255,255,.22);
}
.aw-pagenav a:hover {
    background: var(--lions-gold); color: var(--primary-blue);
    border-color: var(--lions-gold); transform: translateY(-2px);
}
.aw-pagenav a.current {
    background: var(--lions-gold); color: var(--primary-blue); border-color: var(--lions-gold);
}
.aw-pagenav a i { font-size: .8rem; opacity: .9; }
.aw-pagenav a .n {
    background: rgba(0,0,0,.16); font-size: .68rem; font-weight: 800;
    padding: 1px 7px; border-radius: 9px;
}

/* Browse-other-categories block at the end of a category page */
.aw-more { max-width: 1220px; margin: 56px auto 0; }
.aw-more h3 {
    text-align: center; color: var(--primary-blue); font-size: 1.15rem;
    margin: 0 0 18px; font-weight: 800;
}
.aw-more .aw-pagenav { margin-top: 0; }
.aw-more .aw-pagenav a {
    background: var(--white); color: var(--primary-blue);
    border: 1.5px solid var(--medium-gray);
}
.aw-more .aw-pagenav a:hover {
    background: var(--primary-blue); color: var(--white); border-color: var(--primary-blue);
}
.aw-more .aw-pagenav a .n { background: var(--light-gray); color: var(--text-light); }
.aw-more .aw-pagenav a:hover .n { background: rgba(255,255,255,.2); color: var(--white); }

@media (max-width: 768px) {
    .aw-hero.compact { padding: 100px 18px 44px; }
    .aw-hero.compact h1 { font-size: 1.8rem; }
    .aw-pagenav { gap: 8px; }
    .aw-pagenav a { font-size: .78rem; padding: 8px 14px; }
}

/* ---------- Recipient portrait ----------
   The source photos in images/cabinet/ are portraits: median aspect 0.85,
   the tallest 0.53 (301x567). Cropping those into a small circle cut off
   foreheads and chins, so the frame is now a 4:5 portrait — close to the
   photos' own shape — and `object-position: 50% 22%` biases the crop
   upward, where a head actually sits in a standing portrait. */
.card-body { display: flex; gap: 15px; align-items: flex-start; }
.card-text { min-width: 0; flex: 1; }

.a-photo {
    width: 86px;
    aspect-ratio: 4 / 5;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--light-gray);
    display: grid;
    place-items: center;
    position: relative;
    box-shadow: 0 2px 6px rgba(16, 24, 40, .12);
    transition: var(--transition);
}
.a-photo img {
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: 50% 22%;   /* faces sit high in a portrait */
    display: block;
}

/* Tier-coloured edge, echoing the card's left rail without a heavy ring. */
.a-photo::after {
    content: '';
    position: absolute; inset: 0;
    border: 2px solid var(--medium-gray);
    border-radius: inherit;
    pointer-events: none;
}
.aw-card[data-tier="diamond"] .a-photo::after { border-color: #93aee2; }
.aw-card[data-tier="gold"]    .a-photo::after { border-color: #f0b429; }
.aw-card[data-tier="top"]     .a-photo::after { border-color: var(--lions-gold); }

.aw-card:hover .a-photo {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 24, 40, .18);
}

/* Fallback monogram when no portrait is on file. A subtle tinted panel with a
   faint Lions mark reads as a deliberate placeholder rather than a broken
   image, and keeps a card with no photo from looking like an error. */
.a-initials {
    background: linear-gradient(150deg, #eef2fb 0%, #dde5f5 100%);
}
.a-initials::before {
    content: '\f005';                       /* star */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 6px; bottom: 5px;
    font-size: .78rem;
    color: rgba(30, 58, 138, .16);
}
.a-initials span {
    color: var(--primary-blue); font-weight: 800; font-size: 1.5rem;
    letter-spacing: .5px; line-height: 1;
}
.aw-card[data-tier="gold"] .a-initials {
    background: linear-gradient(150deg, #fdf3dc 0%, #f8e6bd 100%);
}
.aw-card[data-tier="gold"] .a-initials span { color: #8a6410; }
.aw-card[data-tier="gold"] .a-initials::before { color: rgba(138, 100, 16, .2); }
.aw-card[data-tier="top"] .a-initials {
    background: linear-gradient(150deg, #fff6dd 0%, #fde9b4 100%);
}
.aw-card[data-tier="top"] .a-initials span { color: #8a6410; }

/* Top-tier cards get a larger portrait */
.aw-group[data-tier="top"] .a-photo { width: 98px; }
.aw-group[data-tier="top"] .a-initials span { font-size: 1.7rem; }

/* Club-only cards carry no portrait; give the text the full width. */
.aw-card.club-only .card-body { display: block; }

@media (max-width: 768px) {
    .a-photo { width: 74px; }
    .aw-group[data-tier="top"] .a-photo { width: 80px; }
    .a-initials span { font-size: 1.3rem; }
}

/* Keep the club / directory lines aligned with the text column that sits
   beside the portrait, so a card reads as one block rather than two. */
.aw-card .a-club,
.aw-card .a-pg { margin-left: 101px; }
.aw-group[data-tier="top"] .a-club,
.aw-group[data-tier="top"] .a-pg { margin-left: 113px; }
/* Club-only cards have no portrait, so no indent. */
.aw-card.club-only .a-club,
.aw-card.club-only .a-pg { margin-left: 0; }

@media (max-width: 768px) {
    .aw-card .a-club, .aw-card .a-pg { margin-left: 89px; }
    .aw-group[data-tier="top"] .a-club,
    .aw-group[data-tier="top"] .a-pg { margin-left: 95px; }
}

/* ---------- Mobile legibility & touch targets ----------
   Below 768px several labels computed under 11px, which is hard to read on a
   phone, and some links were under the ~30px minimum comfortable tap height. */
@media (max-width: 768px) {
    .dg-strip .dg-label   { font-size: .74rem; }
    .aw-stat .l           { font-size: .76rem; }
    .chip .n,
    .aw-pagenav a .n,
    .grp-n                { font-size: .74rem; }
    .tier-badge           { font-size: .7rem; padding: 4px 11px; }
    .card-sl              { font-size: .74rem; }
    .aw-card .a-pg        { font-size: .74rem; }
    .aw-card .a-club      { font-size: .82rem; }
    .aw-eyebrow           { font-size: .76rem; }

    /* Comfortable tap sizes */
    .aw-pagenav a { min-height: 40px; padding: 10px 16px; }
    .chip         { min-height: 40px; padding: 9px 15px; }
    .aw-source .pdf-btn { min-height: 44px; }
    .aw-breadcrumb a { display: inline-block; padding: 4px 2px; }
}
