/* aw- prefix throughout to avoid MLGW stylesheet conflicts */

/* ── Banner ── */
.bannerImage {
    width: 100%;
    margin: auto;
    padding: 0;
    text-align: center;
    position: relative;
}
.bannerImage img {
    margin: auto;
    width: 100%;
    position: relative;
}

/* ── Main wrap ── */
#aw-wrap {
    width: 100%;
    max-width: 760px;
    margin: 18px 0px 30px;
    font: 14px Arial, Helvetica, sans-serif;
    color: #222;
    box-sizing: border-box;
}

/* ── Two-column layout ── */
#aw-layout { display: flex; align-items: flex-start; }

/* ── Filter sidebar ── */
#aw-filters {
    width: 158px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
    padding-top: 4px;
    position: relative;
}
#aw-filters::after {                  /* dotted vertical separator */
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0;
    border-right: 2px dotted #bbb;
    pointer-events: none;
}

/* ── Pill buttons ── */
.aw-btn-wrap { position: relative; }

.aw-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 142px;
    padding: 9px 9px 9px 18px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font: 700 14px Arial, Helvetica, sans-serif;
    letter-spacing: .5px;
    color: #fff;
    transition: filter .15s;
}
.aw-pill:hover  { filter: brightness(1.12); }
.aw-pill:focus  { outline: none; }

.aw-arrow {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,.28);
    display: flex; align-items: center; justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.aw-pill.aw-open .aw-arrow { background: rgba(255,255,255,.52); }

#aw-btn-category { background: #3b5d8f; }
#aw-btn-name     { background: #d09210; }
#aw-btn-year     { background: #8878a8; }

/* ── Dropdowns (slide open to the side) ── */
.aw-drop {
    display: none;
    position: absolute;
    left: 146px; top: 0;
    background: rgba(65,65,75,.93);
    border-radius: 6px;
    min-width: 152px;
    z-index: 300;
    padding: 4px 0;
    box-shadow: 4px 4px 12px rgba(0,0,0,.3);
}
.aw-drop li { list-style: none; }
.aw-drop li a {
    display: block;
    padding: 8px 17px;
    color: #fff;
    font-size: 13px;
    white-space: nowrap;
    text-decoration: none;
    transition: background .12s;
}
.aw-drop li a:hover,
.aw-drop li a.aw-sel { background: rgba(255,255,255,.18); }

/* ── Name search panel ── */
#aw-search-panel {
    display: none;
    position: absolute;
    left: 146px; top: 0;
    background: rgba(65,65,75,.93);
    border-radius: 6px;
    z-index: 300;
    padding: 8px 10px;
    box-shadow: 4px 4px 12px rgba(0,0,0,.3);
    white-space: nowrap;
}
#aw-search-panel input[type=text] {
    width: 200px;
    padding: 5px 8px;
    font-size: 12px;
    font-family: Arial, Helvetica, sans-serif;
    color: #222;
    background: #fff;
    border: none;
    border-radius: 4px;
    outline: none;
    box-sizing: border-box;
    vertical-align: middle;
}
#aw-search-panel input[type=text]::placeholder { color: #aaa; }
#aw-search-btn {
    padding: 5px 12px;
    font: 700 12px Arial, Helvetica, sans-serif;
    color: #5a3a00;
    background: #ffd84d;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    vertical-align: middle;
    margin-left: 6px;
}
#aw-search-btn:hover { background: #ffe878; }

/* ── Award cards ── */
#aw-cards {
    flex: 1;
    padding-left: 22px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 100%;
}

.aw-card {
    display: flex;
    width: 100%;
    background: #f4efe3;
    border: 1px solid #d5ccbb;
    border-radius: 5px;
    overflow: hidden;
    min-height: 105px;
}
.aw-card-body  { flex: 1; padding: 12px 14px; min-width: 0; }
.aw-card-year  { font: 700 19px Arial, Helvetica, sans-serif; margin-bottom: 4px; }
.aw-card-title { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.aw-card-desc  { font-size: 13px; color: #444; line-height: 1.55; }

/* ── Thumbnail ── */
.aw-thumb {
    width: 120px;
    max-height: 150px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    background: #e8e0d0;
}
.aw-thumb img {
    width: 100%;
    max-height: 100px;
    height: auto;
    object-fit: scale-down;
    display: block;
    cursor: pointer;
}
.aw-thumb-ph {
    flex: 1;
    border: 2px dashed #bbb;
    background: #ddd;
    display: flex;
    align-items: center; justify-content: center;
    color: #aaa;
    font-size: 10px;
    text-align: center;
    cursor: pointer;
}
.aw-enlarge {
    flex-shrink: 0;
    font-size: 10px;
    color: #555;
    text-align: right;
    padding: 3px 5px;
    cursor: pointer;
    background: #e8e0d0;
    white-space: nowrap;
}
.aw-enlarge:hover { text-decoration: underline; color: #111; }

/* ── No results ── */
.noResults {
    margin: 25px auto;
    font-size: 16px;
    color: red;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ── Modal ── */
#aw-modal {
    display: flex;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0,0,0,.83);
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
    opacity: 0;
    pointer-events: none;
    transition: opacity .7s ease;
}
#aw-modal.aw-open {
    opacity: 1;
    pointer-events: auto;
}
#aw-modal-box {
    background: #fff;
    border-radius: 6px;
    max-width: 560px;
    width: 100%;
    box-shadow: 0 8px 40px rgba(0,0,0,.5);
    overflow: hidden;
    position: relative;
}
#aw-modal-img {
    width: 100%;
    max-height: 60vh;
    object-fit: contain;
    display: block;
    background: #111;
}
#aw-modal-ph {
    padding: 60px 0;
    background: #ddd;
    color: #888;
    text-align: center;
    font-size: 14px;
    font-style: italic;
}
#aw-modal-caption {
    padding: 12px 16px 14px;
    border-top: 1px solid #ddd;
}
#aw-modal-title { font: 700 15px Arial, Helvetica, sans-serif; margin-bottom: 3px; }
#aw-modal-year  { font-size: 12px; color: #666; }

#aw-modal-close {
    position: absolute;
    top: 8px; right: 12px;
    font-size: 26px;
    line-height: 1;
    color: #fff;
    cursor: pointer;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    user-select: none;
}
#aw-modal-close:hover { color: #ddd; }

/* ── Responsive: tablet 600-759px ── */
@media (max-width: 759px) {
    #aw-filters    { width: 130px; gap: 10px; }
    .aw-pill       { width: 118px; padding: 8px 8px 8px 14px; font-size: 13px; }
    .aw-drop       { left: 122px; }
    #aw-cards      { padding-left: 16px; gap: 12px; }
    .aw-thumb      { width: 100px; }
    .aw-thumb img  { max-height: 80px; }
    .aw-card-year  { font-size: 17px; }
    .aw-card-title { font-size: 12px; }
    .aw-card-desc  { font-size: 11px; }
}

/* ── Responsive: mobile < 600px ── */
@media (max-width: 599px) {
    #aw-layout         { flex-direction: column; gap: 16px; }
    #aw-filters        { width: 100%; flex-direction: row; flex-wrap: wrap; gap: 8px; padding: 0; }
    #aw-filters::after { border-right: none; border-bottom: 2px dotted #bbb; top: auto; bottom: -8px; left: 0; right: 0; height: 0; }
    .aw-pill           { width: auto; padding: 8px 10px 8px 16px; font-size: 13px; }
    .aw-drop,
    #aw-search-panel   { left: 0; top: calc(100% + 4px); }
    #aw-cards          { padding-left: 0; }
    .aw-thumb          { width: 80px; }
    .aw-thumb img      { max-height: 70px; }
    .aw-card-year      { font-size: 16px; }
    .aw-card-desc      { font-size: 11px; }
    #aw-modal-img      { max-height: 50vh; }
}
