:root {
    --blue-950: #052d5c;
    --blue-900: #073b7a;
    --blue-800: #0b4ea2;
    --blue-700: #1261c9;
    --blue-600: #1e74d6;
    --blue-100: #e8f2ff;
    --ink: #14213d;
    --muted: #667085;
    --line: #d7e3f4;
    --soft: #f6f9fd;
    --white: #ffffff;
    --accent: #64c7ff;
    --hero-line: #d6a93a;
}

* { box-sizing: border-box; }
body {
    margin: 0;
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.6;
    background: var(--soft);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.top-strip { background: var(--blue-900); color: #fff; font-size: 13px; }
.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.top-strip .wrap, .nav .wrap, .cms-top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.top-strip .wrap { min-height: 38px; }
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.brand img { width: 54px; height: 54px; object-fit: contain; }
.brand strong { display: block; color: var(--blue-900); font-size: 18px; line-height: 1.2; }
.brand span { color: var(--muted); font-size: 13px; }
.nav-links { display: flex; align-items: center; gap: 18px; font-weight: 700; color: var(--blue-900); font-size: 14px; }
.nav-toggle { display: none; }
.nav-burger {
    display: none;
    width: 44px;
    height: 42px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    cursor: pointer;
}
.nav-burger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--blue-900);
}
.button, button.button { border: 0; display: inline-flex; justify-content: center; align-items: center; min-height: 42px; padding: 0 18px; background: var(--blue-800); color: #fff; border-radius: 6px; font-weight: 700; cursor: pointer; }
.button.secondary { background: #fff; color: var(--blue-900); border: 1px solid var(--line); }
.button.danger { background: #b42318; }
.hero {
    color: #fff;
    background:
        radial-gradient(circle at 24% 18%, rgba(30, 116, 214, .22), transparent 30%),
        linear-gradient(110deg, var(--blue-950) 0%, var(--blue-900) 48%, var(--blue-800) 100%);
}
.hero-banner {
    width: 100%;
    height: auto;
    max-height: 430px;
    object-fit: contain;
    object-position: center;
    background: #f5f9ff;
}
.hero-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 44px;
    align-items: center;
    min-height: 360px;
    padding: 50px 0 76px;
}
.hero-content { max-width: 880px; }
.hero h1 { font-size: clamp(38px, 5vw, 64px); line-height: 1.03; margin: 12px 0 20px; max-width: 820px; letter-spacing: 0; }
.hero p { font-size: 19px; max-width: 640px; color: #f3f8ff; text-shadow: 0 1px 20px rgba(0, 0, 0, .16); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.hero .badge {
    background: rgba(255, 255, 255, .92);
    color: var(--blue-900);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .12);
}
.hero-side {
    display: grid;
    gap: 12px;
}
.hero-service-panel {
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-left: 5px solid var(--hero-line);
    border-radius: 8px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .08));
    box-shadow: 0 20px 46px rgba(0, 0, 0, .16);
}
.hero-panel-kicker {
    color: #c9ecff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.hero-service-panel > strong {
    display: block;
    margin: 8px 0 10px;
    color: #fff;
    font-size: 31px;
    line-height: 1.1;
}
.hero-service-panel p {
    margin: 0 0 18px;
    color: #e8f4ff;
    font-size: 14px;
    text-shadow: none;
}
.hero-fact-list {
    display: grid;
    gap: 10px;
}
.hero-fact-list div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 11px 0;
    border-top: 1px solid rgba(255, 255, 255, .18);
}
.hero-fact-list span {
    color: #dcecff;
    font-size: 13px;
    font-weight: 700;
}
.hero-fact-list b {
    color: #fff;
    font-size: 16px;
    text-align: right;
}
.hero-side-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    border-left: 5px solid var(--hero-line);
    border-radius: 8px;
    box-shadow: 0 18px 42px rgba(0, 0, 0, .12);
}
.hero-side-card span {
    color: #dcecff;
    font-weight: 700;
}
.hero-side-card strong {
    color: #fff;
    font-size: 28px;
}
.section { padding: 64px 0; }
.section.white { background: #fff; }
.section-updates {
    background:
        linear-gradient(180deg, #f7fbff, #ffffff);
    border-top: 1px solid var(--line);
}
.section-members {
    background:
        radial-gradient(circle at 12% 18%, rgba(100, 199, 255, .12), transparent 26%),
        linear-gradient(180deg, #eef6ff, #f8fbff);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.section-legislation {
    background: #fff;
}
.login-section {
    min-height: calc(100vh - 284px);
    display: flex;
    align-items: center;
    padding: 72px 0;
    background:
        linear-gradient(180deg, rgba(247, 251, 255, .96), rgba(255, 255, 255, .98)),
        url("../legacy/img/sb2025.png") center top / cover no-repeat;
}
.login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    gap: 0;
    align-items: stretch;
    max-width: 1060px;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 28px 70px rgba(5, 45, 92, .16);
}
.login-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 520px;
    padding: 48px;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(5, 45, 92, .96), rgba(11, 78, 162, .88)),
        url("../legacy/img/sb2025.png") center / cover no-repeat;
}
.login-intro .section-kicker {
    color: #c9ecff;
}
.login-intro h1 {
    margin: 10px 0 18px;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.08;
    color: #fff;
}
.login-intro p {
    margin: 0;
    max-width: 560px;
    color: #e8f4ff;
    font-size: 18px;
}
.login-access-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}
.login-access-list span {
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
}
.login-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 42px;
    background: #fff;
    border-left: 1px solid var(--line);
}
.login-card-head {
    display: flex;
    gap: 14px;
    align-items: center;
    margin-bottom: 24px;
}
.login-card-head img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    flex: 0 0 auto;
}
.login-card-head h2 {
    margin: 4px 0 0;
    color: var(--blue-900);
    font-size: 30px;
    line-height: 1.15;
}
.login-form {
    display: grid;
    gap: 16px;
}
.login-form p {
    margin: 0;
}
.login-form input {
    min-height: 48px;
    background: #fbfdff;
    border-color: #c8d8ec;
}
.login-submit {
    width: 100%;
    min-height: 48px;
    margin-top: 2px;
}
.login-note {
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 13px;
}
.section-title { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.section-title h2 { margin: 0; color: var(--blue-900); font-size: 30px; }
.section-title p { margin: 6px 0 0; color: var(--muted); max-width: 700px; }
.section-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid #b8d6f5;
    border-radius: 6px;
    background: linear-gradient(180deg, #ffffff, #f3f9ff);
    color: var(--blue-900);
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 10px 24px rgba(12, 55, 110, .08);
}
.section-action::after {
    content: ">";
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: var(--blue-800);
    color: #fff;
    font-size: 13px;
    line-height: 1;
}
.section-action:hover {
    border-color: var(--blue-700);
    background: #eaf5ff;
    box-shadow: 0 14px 30px rgba(12, 55, 110, .12);
}
.section-heading {
    position: relative;
    padding-left: 18px;
}
.section-heading::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    width: 5px;
    height: calc(100% - 8px);
    border-radius: 999px;
    background: var(--accent);
}
.section-heading.centered {
    width: fit-content;
    margin: 0 auto 26px;
    padding-left: 0;
    text-align: center;
}
.section-heading.centered::before {
    display: none;
}
.section-heading.centered::after {
    content: "";
    display: block;
    width: 76px;
    height: 4px;
    margin: 12px auto 0;
    border-radius: 999px;
    background: var(--accent);
}
.section-kicker {
    display: inline-block;
    margin-bottom: 4px;
    color: var(--blue-700);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.section-heading.centered .section-kicker {
    color: var(--blue-800);
}
.section-heading.centered h2 {
    margin: 0;
    color: var(--blue-900);
    font-size: 34px;
}
.grid { display: grid; gap: 18px; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 14px 35px rgba(16, 36, 74, .06); }
.card:hover { border-color: #b9d2f2; box-shadow: 0 18px 42px rgba(16, 36, 74, .1); }
.card-body { padding: 20px; }
.card h3 { margin: 0 0 10px; color: var(--blue-900); line-height: 1.25; }
.meta, .muted { color: var(--muted); font-size: 14px; }
.badge { display: inline-block; padding: 4px 9px; border-radius: 999px; background: var(--blue-100); color: var(--blue-900); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.member-photo {
    aspect-ratio: 4 / 3;
    object-fit: contain;
    object-position: center bottom;
    width: 100%;
    padding: 10px 10px 0;
    background: linear-gradient(180deg, #ffffff 0%, #eef6ff 100%);
}
.member-card .member-photo { height: 260px; }
.profile-photo { aspect-ratio: 3 / 4; height: auto; object-position: center top; }
.member-profile-layout {
    display: grid;
    grid-template-columns: minmax(280px, 340px) 1fr;
    gap: 28px;
    align-items: start;
}
.member-profile-card {
    position: sticky;
    top: 18px;
}
.member-detail-stack {
    display: grid;
    gap: 18px;
}
.member-info-panel {
    padding: 22px 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(16, 36, 74, .05);
}
.member-info-panel h2 {
    margin: 0 0 12px;
    color: var(--blue-900);
    font-size: 24px;
}
.member-info-panel p {
    margin: 0;
}
.member-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.count-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    background: var(--blue-800);
    color: #fff;
    font-weight: 800;
}
.member-committee-panel {
    max-height: 530px;
    overflow: hidden;
}
.member-committee-list {
    max-height: 420px;
    overflow-y: auto;
    padding-right: 8px;
}
.member-committee-list::-webkit-scrollbar {
    width: 8px;
}
.member-committee-list::-webkit-scrollbar-track {
    background: #edf5ff;
    border-radius: 999px;
}
.member-committee-list::-webkit-scrollbar-thumb {
    background: #9dccf5;
    border-radius: 999px;
}
.member-committee-row {
    display: grid;
    grid-template-columns: 170px 1fr;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.member-committee-row:first-child {
    padding-top: 0;
}
.member-committee-row:last-child {
    border-bottom: 0;
}
.member-committee-row strong {
    color: var(--ink);
    line-height: 1.3;
}
.article-image { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; background: var(--blue-100); }
.article-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}
.article-gallery img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--blue-100);
}
.article-gallery img:first-child {
    grid-column: 1 / -1;
    aspect-ratio: 16 / 8;
}
.vision-band {
    background:
        linear-gradient(135deg, rgba(232, 242, 255, .92), rgba(255, 255, 255, .98) 45%, rgba(232, 242, 255, .86)),
        radial-gradient(circle at 82% 18%, rgba(100, 199, 255, .18), transparent 24%);
    color: var(--ink);
    padding: 58px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.vision-grid { display: grid; grid-template-columns: 190px 1fr 1fr; gap: 22px; align-items: stretch; }
.vision-seal-box {
    display: grid;
    place-items: center;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(12, 55, 110, .08);
}
.vision-seal { width: 132px; margin: 0 auto; filter: drop-shadow(0 12px 20px rgba(12, 55, 110, .14)); }
.vision-panel {
    padding: 26px 28px;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 8px;
    box-shadow: 0 18px 38px rgba(12, 55, 110, .08);
}
.vision-panel h2 { margin: 0 0 12px; color: var(--blue-900); font-size: 30px; }
.vision-panel p { margin: 0; color: #344054; text-align: left; font-size: 16px; }
.committee-page-head {
    padding: 34px 0;
    background: linear-gradient(110deg, rgba(5, 45, 92, .98) 0%, rgba(7, 59, 122, .96) 52%, rgba(11, 78, 162, .92) 100%);
}
.committee-page-head .section-kicker {
    color: #c9ecff;
}
.committee-section {
    background:
        radial-gradient(circle at 10% 8%, rgba(100, 199, 255, .14), transparent 24%),
        linear-gradient(180deg, #f7fbff, #ffffff);
}
.committee-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.committee-card.enhanced {
    display: grid;
    grid-template-rows: 142px 1fr;
    overflow: hidden;
}
.committee-card-visual {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--blue-900), var(--blue-700));
}
.committee-card-visual::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(5, 45, 92, .52), rgba(5, 45, 92, .04));
}
.committee-card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: .92;
}
.committee-card-visual span {
    position: absolute;
    left: 16px;
    bottom: 14px;
    z-index: 1;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .92);
    color: var(--blue-900);
    font-size: 12px;
    font-weight: 800;
}
.committee-card-body { padding: 18px; }
.committee-card h3 { margin: 0 0 14px; color: var(--blue-900); font-size: 22px; }
.committee-card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.committee-card li {
    display: grid;
    grid-template-columns: 138px 1fr;
    gap: 10px;
    align-items: center;
    color: var(--ink);
    font-size: 14px;
}
.committee-card b {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--blue-100);
    color: var(--blue-800);
    font-size: 11px;
    text-transform: uppercase;
}
.legislation-row, .table-row { display: grid; gap: 16px; grid-template-columns: 170px 1fr auto; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.section-legislation .legislation-row {
    padding: 18px;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue-700);
    border-radius: 8px;
    background: #fbfdff;
}
.section-legislation .legislation-row:last-child {
    margin-bottom: 0;
}
.year-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 28px 0 4px;
    padding: 12px 16px;
    background: var(--blue-100);
    border-left: 5px solid var(--blue-800);
    color: var(--blue-900);
    border-radius: 6px;
}
.year-heading h2 { margin: 0; font-size: 22px; }
.footer {
    background: linear-gradient(135deg, #063566 0%, var(--blue-900) 58%, #06284f 100%);
    color: #dcecff;
    padding: 34px 0 22px;
    border-top: 5px solid rgba(255, 255, 255, .16);
}
.footer-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.footer-brand {
    display: flex;
    align-items: center;
    gap: 16px;
    max-width: 760px;
}
.footer-brand img {
    width: 74px;
    height: 74px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 7px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, .18);
}
.footer strong {
    display: block;
    color: #fff;
    font-size: 20px;
    line-height: 1.25;
}
.footer p {
    margin: 7px 0 0;
    color: #dcecff;
    line-height: 1.7;
}
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}
.footer-links a {
    color: #fff;
    font-weight: 800;
    border: 1px solid rgba(255, 255, 255, .24);
    border-radius: 999px;
    padding: 9px 13px;
    background: rgba(255, 255, 255, .08);
}
.footer-links a:hover {
    background: rgba(255, 255, 255, .16);
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .16);
    color: #bcd5f5;
    font-size: 13px;
}
.page-head { background: var(--blue-900); color: #fff; padding: 44px 0; }
.page-head h1 { margin: 0; font-size: 40px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
input, select, textarea { width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 12px; font: inherit; background: #fff; }
textarea { min-height: 180px; resize: vertical; }
label { display: block; font-weight: 700; color: var(--blue-900); margin-bottom: 6px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.full { grid-column: 1 / -1; }
.alert { background: #e8fff2; border: 1px solid #a7f3c6; color: #075e38; padding: 12px 14px; border-radius: 6px; margin-bottom: 16px; }
.error-alert { background: #fff1f1; border-color: #fecaca; color: #991b1b; }
.error-alert ul { margin: 8px 0 0 18px; padding: 0; }
.error { color: #b42318; font-size: 13px; margin-top: 5px; }
.cms-body { background: #f4f7fb; }
.cms-top { background: var(--blue-900); color: #fff; }
.cms-top .wrap { min-height: 62px; }
.cms-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; padding: 28px 0; }
.sidebar { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px; align-self: start; }
.sidebar a, .sidebar button { display: block; width: 100%; text-align: left; padding: 10px 12px; color: var(--blue-900); border-radius: 6px; border: 0; background: transparent; font-weight: 700; cursor: pointer; }
.sidebar a:hover, .sidebar button:hover { background: var(--blue-100); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 22px; }
.cms-welcome {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(135deg, #ffffff, #eef6ff);
    box-shadow: 0 14px 35px rgba(16, 36, 74, .06);
}
.cms-welcome h1 {
    margin: 4px 0 8px;
    color: var(--blue-900);
    font-size: 32px;
}
.cms-welcome p {
    margin: 0;
    max-width: 760px;
    color: var(--muted);
}
.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.quick-action {
    min-height: 118px;
    padding: 18px;
    border: 1px solid var(--line);
    border-left: 5px solid var(--blue-700);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 12px 30px rgba(16, 36, 74, .05);
}
.quick-action:hover {
    border-color: #b9d2f2;
    box-shadow: 0 16px 36px rgba(16, 36, 74, .1);
}
.quick-action span {
    display: block;
    color: var(--blue-700);
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
}
.quick-action strong {
    display: block;
    margin-top: 8px;
    color: var(--blue-900);
    line-height: 1.25;
}
.cms-dashboard-grid {
    grid-template-columns: 1fr 1fr;
}
.compact-row {
    grid-template-columns: 1fr auto;
}
.field-help {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 13px;
}
.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}
.friendly-form label {
    font-size: 14px;
}
.upload-guidance {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    padding: 12px 14px;
    border: 1px solid #bfdbfe;
    border-left: 4px solid var(--blue-700);
    border-radius: 8px;
    background: #f0f7ff;
    color: var(--blue-900);
}
.upload-guidance strong {
    font-size: 14px;
}
.upload-guidance span {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}
.upload-warning {
    margin-top: 8px;
    padding: 10px 12px;
    border: 1px solid #fecaca;
    border-radius: 6px;
    background: #fff1f1;
    color: #991b1b;
    font-size: 13px;
    font-weight: 700;
}
.compact-title h3 {
    margin: 0;
    color: var(--blue-900);
    font-size: 22px;
}
.access-create-form {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #f8fbff;
}
.access-user-grid {
    display: grid;
    gap: 18px;
}
.access-user-card {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
    background: #fff;
    box-shadow: 0 10px 26px rgba(16, 36, 74, .05);
}
.access-user-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.access-user-head strong {
    color: var(--blue-900);
    font-size: 20px;
}
.access-user-head p {
    margin: 4px 0 0;
    color: var(--muted);
}
.access-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 14px 0;
    color: var(--blue-900);
}
.check-row input {
    width: 18px;
    height: 18px;
}
.reset-password-form {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px dashed var(--line);
}
.settings-image-preview {
    display: block;
    width: min(100%, 720px);
    max-height: 220px;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 8px;
    margin-bottom: 12px;
    background: var(--blue-100);
}
.cms-photo-strip {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 12px;
}
.cms-photo-strip img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--blue-100);
}
.settings-group {
    padding: 20px 0;
    border-top: 1px solid var(--line);
}
.settings-group:first-of-type {
    border-top: 0;
    padding-top: 0;
}
.settings-group h3 {
    margin: 0 0 16px;
    color: var(--blue-900);
}
.audit-list {
    display: grid;
    gap: 12px;
}
.audit-item {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fbfdff;
}
.audit-main {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 14px;
    align-items: start;
}
.audit-details {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
}
.audit-details summary {
    color: var(--blue-900);
    cursor: pointer;
    font-weight: 800;
}
.audit-json-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}
.audit-json-grid pre {
    max-height: 260px;
    overflow: auto;
    margin: 6px 0 0;
    padding: 12px;
    border-radius: 6px;
    background: #0f172a;
    color: #e5eefc;
    font-size: 12px;
    white-space: pre-wrap;
}
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--blue-700); border-radius: 8px; padding: 18px; }
.stat strong { display: block; font-size: 30px; color: var(--blue-900); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.pager {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}
.pager-summary { color: var(--muted); font-size: 14px; }
.pager-controls { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pager-link {
    min-width: 40px;
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--blue-900);
    font-weight: 700;
    font-size: 14px;
}
.pager-link.active {
    background: var(--blue-800);
    border-color: var(--blue-800);
    color: #fff;
}
.pager-link.disabled {
    color: #98a2b3;
    background: #f8fafc;
    cursor: not-allowed;
}

@media (max-width: 850px) {
    .top-strip .wrap, .cms-top .wrap { align-items: flex-start; flex-direction: column; padding: 10px 0; }
    .nav .wrap {
        position: relative;
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 10px;
        padding: 8px 0;
    }
    .brand {
        min-width: 0;
        padding: 6px 0;
    }
    .brand img {
        width: 48px;
        height: 48px;
    }
    .brand strong {
        font-size: 17px;
    }
    .brand span span {
        font-size: 12px;
    }
    .nav-burger {
        display: inline-flex;
    }
    .nav-links {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 18px 38px rgba(12, 55, 110, .12);
    }
    .nav-toggle:checked ~ .nav-links {
        display: grid;
        gap: 4px;
    }
    .nav-links a {
        display: flex;
        align-items: center;
        min-height: 42px;
        padding: 0 12px;
        border-radius: 6px;
    }
    .nav-links a:not(.button):hover {
        background: var(--blue-100);
    }
    .nav-links .button {
        width: 100%;
        margin-top: 6px;
    }
    .footer-grid, .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
    .footer-brand {
        align-items: flex-start;
    }
    .footer-links {
        justify-content: flex-start;
    }
    .grid.cols-3, .grid.cols-4, .form-grid, .stat-grid, .cms-shell, .committee-grid, .quick-action-grid, .cms-dashboard-grid { grid-template-columns: 1fr; }
    .cms-welcome { align-items: flex-start; flex-direction: column; }
    .committee-card.enhanced { grid-template-rows: 132px 1fr; }
    .committee-card li { grid-template-columns: 1fr; gap: 5px; }
    .vision-grid { grid-template-columns: 1fr; }
    .vision-seal-box { padding: 22px; }
    .hero-banner { max-height: none; }
    .hero-intro { grid-template-columns: 1fr; min-height: auto; padding: 38px 0 72px; }
    .hero-side { grid-template-columns: 1fr; }
    .login-section {
        min-height: auto;
        padding: 42px 0;
        background: linear-gradient(180deg, #f7fbff, #ffffff);
    }
    .login-shell { grid-template-columns: 1fr; }
    .login-intro { min-height: auto; padding: 30px 24px; }
    .login-intro h1 { font-size: 36px; }
    .login-card { padding: 24px; border-left: 0; }
    .legislation-row, .table-row { grid-template-columns: 1fr; }
    .member-profile-layout { grid-template-columns: 1fr; }
    .member-profile-card { position: static; }
    .member-info-panel { padding: 18px; }
    .member-committee-panel, .member-committee-list { max-height: none; overflow: visible; }
    .member-committee-row { grid-template-columns: 1fr; gap: 8px; }
    .article-gallery { grid-template-columns: 1fr; }
    .article-gallery img:first-child { aspect-ratio: 16 / 10; }
    .audit-main, .audit-json-grid { grid-template-columns: 1fr; }
    .pager { align-items: flex-start; flex-direction: column; }
    .pager-controls { justify-content: flex-start; }
    .section-title { align-items: flex-start; flex-direction: column; }
    .member-card .member-photo { height: 220px; }
}
