/* Alumni Map & Class Finder — alumni-map.html
   Builds on the shared hub components in admissions.css. */

.am-hero {
    background:
        radial-gradient(70% 120% at 0% 100%, rgba(240, 213, 138, .2) 0%, transparent 60%),
        linear-gradient(135deg, #14213a 0%, #1f3253 55%, #2c4a6b 100%);
}
.am-hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(240px, 1fr); gap: 3rem; align-items: center; }
.am-page #am-title { font-size: clamp(1.9rem, 3.4vw, 2.8rem); line-height: 1.15; }
.am-facts strong { font-variant-numeric: tabular-nums; }

/* the tile map */
.am-map-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr); gap: 2rem; align-items: start; }
.am-map {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    grid-template-rows: repeat(8, auto);
    gap: 4px;
}
.am-tile {
    aspect-ratio: 1;
    border: 0;
    border-radius: 6px;
    font: inherit;
    font-size: clamp(.55rem, 1.2vw, .8rem);
    font-weight: 700;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    padding: 0;
    transition: transform .15s ease, box-shadow .15s ease;
}
.am-tile:hover { transform: translateY(-2px); }
.am-tile:focus-visible { outline: 3px solid #b5760a; outline-offset: 2px; }
.am-tile[aria-pressed="true"] { box-shadow: 0 0 0 3px #7b2d3a; transform: scale(1.06); position: relative; z-index: 1; }
.am-tile-count { font-size: .9em; opacity: .9; font-weight: 600; }
.am-shade-0 { background: #ece7da; color: #6d665e; }
.am-shade-1 { background: #f0dfae; color: #1a2744; }
.am-shade-2 { background: #d9b45e; color: #1a2744; }
.am-shade-3 { background: #5a6f96; color: #fff; }
.am-shade-4 { background: #1a2744; color: #f0d58a; }
.am-map-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1rem; flex-wrap: wrap; }
.am-abroad {
    font: inherit;
    font-weight: 700;
    background: #fff;
    color: var(--adm-navy);
    border: 1px solid var(--adm-line);
    border-radius: 99px;
    padding: .5rem 1rem;
    cursor: pointer;
}
.am-abroad span { display: inline-block; min-width: 1.6rem; margin-left: .3rem; padding: .05rem .45rem; border-radius: 99px; background: #f0dfae; }
.am-abroad[aria-pressed="true"] { background: var(--adm-navy); color: #fff; }
.am-legend { display: flex; align-items: center; gap: 4px; font-size: .85rem; color: var(--adm-muted); }
.am-legend i { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }
.am-legend span { margin: 0 .3rem; }

/* list panel */
.am-panel { background: var(--adm-tint); border-radius: 16px; padding: 1.4rem; max-height: 560px; display: flex; flex-direction: column; }
.am-panel-head { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-bottom: 1rem; }
.am-panel-head h3 { margin: 0; color: var(--adm-navy); font-size: 1.15rem; }
.am-panel-tools { display: flex; gap: .5rem; align-items: center; }
.am-panel-tools select { font: inherit; padding: .4rem .6rem; border-radius: 8px; border: 1px solid var(--adm-line); background: #fff; }
.am-clear { font: inherit; background: none; border: 0; color: var(--adm-wine); text-decoration: underline; cursor: pointer; padding: 0; }
.am-people { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; overflow-y: auto; }
.am-person { background: #fff; border: 1px solid var(--adm-line); border-radius: 10px; padding: .8rem 1rem; }
.am-person p { margin: 0; }
.am-person-top { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; flex-wrap: wrap; }
.am-person strong { color: var(--adm-navy); }
.am-class { font-size: .85rem; font-weight: 700; color: var(--adm-wine); white-space: nowrap; }
.am-place { color: var(--adm-muted); font-size: .95rem; margin-top: .15rem !important; }
.am-place::before { content: "\f3c5"; font-family: "Font Awesome 6 Free"; font-weight: 900; margin-right: .35rem; color: var(--adm-gold); }
.am-now { margin-top: .4rem !important; line-height: 1.5; font-size: .95rem; }
.am-empty { text-align: center; padding: 1.5rem 0 .5rem; color: var(--adm-muted); }
.am-empty i { font-size: 2rem; color: var(--adm-gold); }

/* class finder */
.am-find-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: start; }
.am-find-row { display: flex; gap: .6rem; }
.am-find-row input { flex: 1; min-width: 0; }
.am-find-row .adm-btn { font: inherit; font-weight: 700; cursor: pointer; margin: 0; }
.am-result { background: #fff; border-radius: 16px; padding: 1.6rem; border: 1px solid var(--adm-line); box-shadow: 0 14px 34px rgba(26, 39, 68, .08); }
.am-result:focus { outline: none; }
.am-result h3 { margin: 0 0 .5rem; font-size: 1.6rem; color: var(--adm-navy); font-family: 'Cormorant Garamond', Georgia, serif; }
.am-reunion { display: inline-block; margin: 0 0 .75rem; padding: .35rem .8rem; border-radius: 99px; background: #f6ecd0; color: #6b4d12; font-weight: 700; }
.am-result .am-people { margin: 1rem 0; max-height: 320px; }
.am-result-actions { display: flex; gap: .6rem; flex-wrap: wrap; }

/* forms */
.am-forms { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; align-items: start; }
.am-forms h2 { margin-top: 0; font-size: 1.4rem; color: var(--adm-navy); }
.am-forms h2 i { color: var(--adm-gold); margin-right: .3rem; }
.am-forms .adm-submit { margin-top: 1.25rem; font: inherit; font-weight: 700; cursor: pointer; }
.am-page .adm-form label.am-check { display: flex; gap: .65rem; align-items: flex-start; margin: .9rem 0 0; font-weight: 500; line-height: 1.5; }
/* styles.css hides checkboxes site-wide for its custom ones; show real ones here */
.am-check input[type="checkbox"] { opacity: 1; position: static; width: 1.15rem; height: 1.15rem; margin-top: .2rem; flex: none; accent-color: var(--adm-navy); }
.am-check input[type="checkbox"]:focus-visible { outline: 3px solid #d2a84f; outline-offset: 2px; }
.am-forms select { width: 100%; }

@media (max-width: 960px) {
    .am-hero-grid, .am-map-layout, .am-find-grid, .am-forms { grid-template-columns: 1fr; }
    .am-panel { max-height: none; }
}
@media (max-width: 520px) {
    .am-map { gap: 2px; }
    .am-tile { border-radius: 3px; }
    .am-tile-count { display: none; }
}
@media (prefers-reduced-motion: reduce) { .am-tile { transition: none; } }

/* three facts read better stacked than in a 2 x 2 grid */
.am-facts { grid-template-columns: 1fr; }
.am-facts li { display: flex; align-items: baseline; gap: .8rem; padding: 1.1rem 1.3rem; }
.am-facts strong { flex: none; min-width: 2.5ch; }
