/* Theme stylesheet matching user's exact block layout styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, sans-serif;
    background: #f0f0f0;
    font-size: 13px;
    color: #212121;
}

.top-bar {
    background: #1a237e;
    color: #fff;
    text-align: center;
    padding: 6px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: .5px;
}

.header {
    background: linear-gradient(135deg, #1a237e 0%, #283593 60%, #3949ab 100%);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.site-title {
    color: #fff;
}

.site-title h1 {
    font-size: 20px;
    font-weight: bold;
    letter-spacing: .3px;
    margin: 0;
}

.site-title p {
    font-size: 11px;
    color: #c5cae9;
    margin-top: 2px;
    margin-bottom: 0;
}

.header-meta {
    text-align: left;
    color: #c5cae9;
    font-size: 11px;
    line-height: 1.5;
    display: flex;
    flex-wrap: wrap;
    gap: 2px 8px;
    align-items: center;
}

.header-meta div {
    display: inline-block;
}

.header-meta div::after {
    content: ", ";
}

.header-meta div:last-child::after {
    content: "";
}

@media (min-width: 768px) {
    .header-meta {
        text-align: right;
        display: block;
    }
    .header-meta div {
        display: block;
    }
    .header-meta div::after {
        content: "";
    }
}

.nav {
    background: #e53935;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.nav-item {
    color: #fff;
    padding: 8px 14px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    transition: background .15s;
}

.nav-item:hover, .nav-item.active {
    background: #b71c1c;
}

.search-row {
    background: #fff;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 2px solid #e53935;
}

.search-row input {
    flex: 1;
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 13px;
}

.search-row button {
    background: #1a237e;
    color: #fff;
    border: none;
    padding: 7px 16px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
}

.main {
    padding: 10px 10px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

@media (min-width: 768px) {
    .main {
        grid-template-columns: 1fr 1fr;
    }
}

.block {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.block-header {
    padding: 7px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.bh-result { background: #c62828; }
.bh-admit { background: #e65100; }
.bh-notice { background: #1565c0; }
.bh-latest { background: #1b5e20; }
.bh-purple { background: #4a148c; }
.bh-teal { background: #006064; }

.block-header .view-all {
    font-size: 10px;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.4);
    padding: 2px 7px;
    border-radius: 3px;
}

.block-header .view-all:hover {
    background: rgba(255, 255, 255, 0.15);
}

.block-body {
    padding: 0;
}

.notice-row {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    padding: 7px 10px;
    border-bottom: 1px dotted #e0e0e0;
    cursor: pointer;
    transition: background .1s;
}

.notice-row:last-child {
    border-bottom: none;
}

.notice-row:hover {
    background: #f5f5f5;
}

.nr-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    flex-shrink: 0;
    margin-top: 5px;
}

.bullet-result { background: #c62828; }
.bullet-admit { background: #e65100; }
.bullet-notice { background: #1565c0; }
.bullet-latest { background: #2e7d32; }

.nr-text {
    flex: 1;
    font-size: 12px;
    color: #212121;
    line-height: 1.4;
}

.nr-text a {
    color: #212121;
    text-decoration: none;
}

.nr-text a:hover {
    color: #1a237e;
    text-decoration: underline;
}

.nr-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    flex-shrink: 0;
}

.badge-new {
    background: #e53935;
    color: #fff;
    font-size: 9px;
    font-weight: bold;
    padding: 1px 5px;
    border-radius: 2px;
}

.badge-date {
    color: #888;
    font-size: 10px;
}

.ticker-wrap {
    background: #fff8e1;
    border: 1px solid #ffe082;
    padding: 7px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 10px 10px;
    border-radius: 3px;
}

.ticker-label {
    background: #f9a825;
    color: #fff;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 7px;
    border-radius: 2px;
    flex-shrink: 0;
}

.ticker-text {
    font-size: 12px;
    color: #5d4037;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.dept-tabs {
    margin: 0 10px 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    overflow: hidden;
}

.dept-tabs-header {
    background: #283593;
    padding: 7px 12px;
    font-size: 13px;
    font-weight: bold;
    color: #fff;
}

.dept-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.dept-btn {
    padding: 8px 6px;
    text-align: center;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border-right: 1px solid #e0e0e0;
    border-bottom: 1px solid #e0e0e0;
    color: #1a237e;
    transition: background .15s;
}

.dept-btn:hover, .dept-btn.active {
    background: #1a237e;
    color: #fff;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin: 0 10px 10px;
}

@media (min-width: 768px) {
    .stats-row {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-box {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 3px;
    padding: 12px 10px;
    text-align: center;
    border-top: 3px solid #1a237e;
}

.stat-num {
    font-size: 22px;
    font-weight: bold;
    color: #1a237e;
}

.stat-label {
    font-size: 11px;
    color: #666;
    margin-top: 2px;
}

.full-block {
    grid-column: 1/-1;
}

.footer-strip {
    background: #1a237e;
    color: #c5cae9;
    text-align: center;
    padding: 15px 10px;
    font-size: 11px;
    margin-top: 15px;
    line-height: 1.8;
}

.footer-strip a {
    color: #90caf9;
    text-decoration: none;
}

.footer-strip a:hover {
    text-decoration: underline;
}

.search-highlight {
    background: #fff176;
}

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