/* ====== Home v2 — Modern mobile-first design ====== */

body { margin: 0; padding: 0; }

/* Banner */
#homelogo {
    font-size: 200%; line-height: 1em;
    margin: 0 auto; text-align: center; width: 100%; padding: 0;
}
#homelogo img { max-width: 100%; height: auto; }
#homelogo.hero { margin: 0; background: #333; line-height: 0; }
#homelogo.hero img { width: 100%; max-width: 480px; height: auto; }

/* ====== Module Grid ====== */
#homemodules {
    margin: 0; padding: 16px 12px;
}

.springboard {
    margin: 0; padding: 0; clear: both;
    display: grid !important;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.springboard:after { content: none !important; display: none !important; }

.springboard div,
#homegrid div,
#homegridSecondary div,
.springboard div.utility {
    position: relative; margin: 0; padding: 0;
    width: auto !important; height: auto !important;
    float: none !important; display: block !important;
    text-align: center;
    font-size: 100% !important; line-height: normal !important;
}

.springboard a {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    padding: 20px 8px 16px;
    background: #fff;
    border-radius: 18px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04), 0 4px 16px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
    text-align: center;
    min-height: 100px;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: 0.2px;
    -webkit-tap-highlight-color: transparent;
    overflow: hidden;
    position: relative;
}

.springboard a:active {
    transform: scale(0.96);
    box-shadow: 0 1px 2px rgba(0,0,0,0.06);
}

.springboard a img {
    width: 44px !important; height: 44px !important;
    border-radius: 12px;
    object-fit: contain;
    display: block !important;
    float: none !important;
    position: static !important;
    margin: 0 !important;
}

.springboard a br { display: none !important; }

.springboard .fineprint { display: none; }

/* Badge */
.springboard .badge {
    position: absolute; top: 6px; right: 6px;
    background: #ef4444; color: #fff;
    font-size: 10px; font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px; padding: 0 5px;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(239,68,68,0.3);
}

/* Secondary modules */
#homegridSecondary {
    margin-top: 8px;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}
#homegridSecondary a {
    padding: 14px 6px 12px;
    min-height: 76px;
    font-size: 11px;
    border-radius: 14px;
}
#homegridSecondary a img {
    width: 32px !important; height: 32px !important;
    border-radius: 10px;
}

/* ====== Search bar ====== */
.search-wrapper {
    margin: 0 12px 4px;
}
.search-wrapper form {
    margin: 0;
}
.search-wrapper input[type="text"],
.search-wrapper input[type="search"] {
    width: 100% !important;
    padding: 12px 16px 12px 40px;
    border: 2px solid #e2e8f0;
    border-radius: 14px;
    font-size: 15px;
    background: #f8fafc;
    color: #1e293b;
    -webkit-appearance: none;
    box-sizing: border-box;
    transition: all 0.2s;
}
.search-wrapper input[type="text"]:focus,
.search-wrapper input[type="search"]:focus {
    border-color: #6366f1;
    outline: none;
    box-shadow: 0 0 0 4px rgba(99,102,241,0.08);
    background: #fff;
}

/* ====== Footer and misc ====== */
#footer { text-align: center; clear: both; padding: 12px; }
form { margin: 0; }

#download { display: none; }

.siteLinks, .userContextList {
    margin: 0; padding: 8px 12px; text-align: center;
}

/* ====== Responsive ====== */
@media (min-width: 480px) {
    .springboard { grid-template-columns: repeat(4, 1fr); gap: 14px; }
    #homegridSecondary { grid-template-columns: repeat(5, 1fr); }
    .springboard a { padding: 24px 10px 18px; min-height: 110px; font-size: 13px; }
    .springboard a img { width: 50px !important; height: 50px !important; }
}

#new { display: none; }
