/* Shared visual language for the public portal and administration. */
:root,
.public-site {
    --ink: #152640;
    --muted: #52647b;
    --green: #155eef;
    --dark: #102544;
    --cream: #f1f5f9;
    --line: #dce4ef;
    --gold: #d7ab51;
    --radius: 14px;
}
body {
    font-size: 16px;
    background: #f5f7fb;
    line-height: 1.65;
}
h1,
h2,
h3 {
    color: var(--ink);
}
p {
    text-wrap: pretty;
}
small {
    font-size: 14px;
}
button,
a,
input,
select,
textarea {
    touch-action: manipulation;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid #6195ff;
    outline-offset: 3px;
}
input,
select,
textarea {
    font-size: 16px;
    border-color: #c6d2e2;
    border-radius: 8px;
    min-height: 46px;
}
input[type="checkbox"],
input[type="radio"] {
    min-height: auto;
    accent-color: var(--green);
}
input::placeholder,
textarea::placeholder {
    color: #65768d;
}
label {
    font-size: 14px;
    font-weight: 650;
    color: #344761;
}
.button,
.portal-button {
    font-size: 15px;
    min-height: 44px;
    border-radius: 8px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition:
        background 0.15s,
        box-shadow 0.15s;
}
.button.primary,
.portal-button {
    background: var(--green);
    color: white;
    box-shadow: 0 3px 8px #155eef20;
}
.button.primary:hover,
.portal-button:hover {
    background: #1249bd;
}
.button.outline {
    background: white;
    border-color: #bdcce0;
    color: #174a99;
}
.text-button,
.text-link {
    font-size: 15px;
}
.eyebrow,
.portal-kicker {
    font-size: 14px;
    letter-spacing: 1.4px;
    color: #215bb4;
    font-weight: 700;
}
.panel,
.leaderboard,
.event-card {
    border-color: var(--line);
    box-shadow: 0 4px 20px #10254406;
}
.panel {
    padding: 28px;
}
.filters {
    background: #f8fafd;
    flex-wrap: wrap;
}
.search-field {
    background: white;
    min-width: 220px;
}
.search-field input,
.filters select {
    font-size: 16px;
}
table {
    font-size: 15px;
}
th {
    font-size: 14px;
    letter-spacing: 0.4px;
    color: #425670;
    background: #edf2f9;
    font-weight: 700;
    padding: 17px 20px;
}
td {
    padding: 19px 20px;
    border-color: #e6ecf4;
}
tbody tr:nth-child(even) {
    background: #fafcff;
}
tbody tr:hover,
.ranking-table tr:hover {
    background: #f0f6ff;
}
.player-cell strong {
    font-size: 16px;
}
.rating-value {
    font-size: 21px;
    color: #123e80;
    font-variant-numeric: tabular-nums;
}
.rating-band,
.badge {
    font-size: 14px;
}
.certified {
    background: #e9f1ff;
    color: #174a99;
}
.certified span {
    color: #315b92;
    border-color: #b8ccec;
    font-size: 14px;
}
.muted,
td small,
.table-bottom,
.rating-explainer,
.stat-strip small {
    font-size: 14px;
    color: var(--muted);
}
.stat-strip {
    gap: 20px;
    border: 0;
    background: transparent;
}
.stat-strip > div {
    background: white;
    border: 1px solid var(--line);
    border-top: 3px solid #155eef;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 4px 16px #10254405;
}
.stat-strip strong {
    font-size: 30px;
}
.stat-icon {
    background: #edf3ff;
    color: #155eef;
    flex-shrink: 0;
}
.row-open,
.icon-button {
    width: 40px;
    height: 40px;
    color: #215bb4;
    flex-shrink: 0;
}
.empty {
    padding: 64px 24px;
}
.empty p {
    font-size: 16px;
}
.empty > span {
    color: #155eef;
}
.section-heading p {
    font-size: 16px;
}
.rating-explainer {
    background: #edf3ff;
    border: 1px solid #d7e5fc;
    border-radius: 10px;
    padding: 18px;
    margin-bottom: 36px;
}
.rating-explainer strong {
    color: #294768;
    font-weight: 650;
}
.portal-sidebar {
    background: #fff;
    border-right: 1px solid var(--line);
    box-shadow: 3px 0 16px #10254404;
}
.portal-brand {
    min-height: 134px;
    color: #102544;
}
.portal-brand small {
    font-size: 12px;
    letter-spacing: 0.7px;
    line-height: 1.5;
}
.portal-sidebar nav {
    padding: 12px;
}
.portal-sidebar nav > a,
.portal-sidebar summary {
    border-radius: 8px;
    margin-bottom: 5px;
    border-bottom: 0;
}
.portal-sidebar nav > a:hover,
.portal-sidebar summary:hover {
    background: #eef4ff;
}
.portal-sidebar nav > a.active,
.portal-sidebar details.active > summary {
    background: #155eef;
    color: white;
    box-shadow: 0 3px 9px #155eef24;
}
.portal-sidebar nav > a,
.portal-sidebar summary {
    font-size: 16px;
}
.portal-welcome {
    background:
        linear-gradient(110deg, #081b39ed, #183e68b8),
        url("/images/weiqi-board.svg") center/cover;
    padding-top: 64px;
    padding-bottom: 68px;
}
.portal-welcome h1 {
    color: white;
    font-size: clamp(36px, 4vw, 56px);
}
.portal-welcome-title p {
    font-size: 18px;
    color: #dce8fa;
}
.portal-welcome-title > span {
    font-size: 14px;
    border-left-color: #6f9fff;
    background: #ffffff10;
}
.portal-notice-card {
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 12px 30px #06162d30;
    border: 1px solid #ffffff40;
}
.portal-notice-card h2 {
    font-size: 20px;
    background: #edf3ff;
    color: #133b73;
    padding: 22px 24px;
    border-top: 4px solid #528aff;
    text-transform: none;
}
.portal-notice-card:nth-child(2) h2 {
    border-top-color: #35b4b5;
}
.portal-notice-card:nth-child(3) h2 {
    border-top-color: #d7ab51;
}
.portal-notice-items > a {
    font-size: 16px;
    min-height: 100px;
}
.portal-notice-items small,
.portal-card-note,
.portal-card-more {
    font-size: 14px;
}
.portal-feature-copy p {
    font-size: 17px;
    color: #52647b;
}
.portal-page-heading {
    background: linear-gradient(120deg, #102544, #1c4477);
    border-bottom: 4px solid #397cf6;
    padding-top: 42px;
    padding-bottom: 42px;
}
.portal-page-heading h1 {
    color: white;
    line-height: 1.2;
}
.portal-page-heading p,
.portal-breadcrumb,
.portal-breadcrumb a {
    color: #d8e5f7;
    font-size: 16px;
}
.portal-breadcrumb {
    margin-bottom: 16px;
    font-size: 14px;
}
.portal-course-card,
.portal-player-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px #10254408;
}
.portal-footer {
    background: #102544;
    color: #dce8fa;
}
.portal-footer h2,
.portal-footer h3 {
    color: white;
}
.portal-footer a,
.portal-footer p,
.portal-footer small {
    color: #dce8fa;
}
.adminnav {
    background: #102544;
    color: #dce8fa;
    border: 0;
}
.adminnav .wrap {
    gap: 20px;
    flex-wrap: wrap;
    padding-top: 14px;
    padding-bottom: 14px;
}
.adminnav strong {
    font-size: 13px;
    letter-spacing: 1px;
    color: #a8c9ff;
}
.adminnav a {
    font-size: 15px;
    border-radius: 7px;
    padding: 9px 12px;
    color: #dce8fa;
}
.adminnav a.active {
    background: #2363d3;
    color: white;
}
.adminnav .text-button {
    color: #dce8fa;
}
.admin-site .topbar {
    background: #0a1b33;
    font-size: 14px;
}
.admin-site .nav {
    min-height: 92px;
}
.admin-site .page-heading {
    padding-top: 40px;
}
.admin-site main {
    min-height: 60vh;
}
.admin-site .brand small {
    font-size: 12px;
}
.admin-site .panel h2 {
    font-size: 23px;
}
dialog {
    max-width: 1040px;
    max-height: 94dvh;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: 0 24px 80px #081b3933;
}
dialog::backdrop {
    background: #0b1e3b88;
    backdrop-filter: blur(3px);
}
@media (max-width: 1200px) {
    .public-site .wrap {
        padding-left: 30px;
        padding-right: 30px;
    }
    .stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .filters .search-field {
        flex-basis: 100%;
    }
}
@media (max-width: 900px) {
    .portal-sidebar nav {
        padding: 12px;
    }
    .portal-brand {
        min-height: 80px;
    }
    .portal-welcome {
        padding: 40px 24px;
    }
    .portal-notice-columns {
        gap: 16px;
    }
    .adminnav nav {
        flex-wrap: wrap;
    }
}
@media (max-width: 600px) {
    .public-site .wrap,
    .wrap {
        padding-left: 20px;
        padding-right: 20px;
    }
    .stat-strip {
        gap: 12px;
    }
    .stat-strip > div {
        padding: 16px;
        gap: 10px;
    }
    .stat-icon {
        display: none;
    }
    .stat-strip strong {
        font-size: 26px;
    }
    .panel {
        padding: 20px;
    }
    .filters {
        padding: 16px;
    }
    .filters select {
        flex: 1;
        min-width: 150px;
    }
    .portal-page-heading h1 {
        font-size: 32px;
    }
    .portal-notice-card h2 {
        font-size: 20px;
    }
    .portal-brand small {
        font-size: 12px;
    }
    .admin-site .nav {
        gap: 20px;
    }
    .section-heading {
        align-items: flex-start;
        flex-wrap: wrap;
    }
}
.public-site .stat-strip > div {
    padding: 22px;
    border: 1px solid var(--line);
    border-top: 3px solid #155eef;
}
.public-site .stat-strip > div:first-child {
    padding-left: 22px;
}
.public-site .stat-strip strong {
    font-size: 30px;
}
.public-site .stat-strip small {
    font-size: 14px;
}
.public-site .footer-main a,
.public-site .footer-main p {
    color: #dce8fa;
}
.public-site .footer-bottom {
    color: #b8cbe4;
    border-color: #304a6c;
}
@media (max-width: 600px) {
    .public-site .stat-strip > div,
    .public-site .stat-strip > div:first-child {
        padding: 16px;
    }
    .public-site .stat-strip strong {
        font-size: 26px;
    }
}
/* Reusable form, pagination and dialog components. */
.ui-control {
    width: 100%;
    font: inherit;
    font-size: 16px;
    border: 1px solid #c6d2e2;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    padding: 11px 12px;
    min-height: 46px;
}
.ui-control:focus {
    border-color: #155eef;
    box-shadow: 0 0 0 3px #155eef15;
}
.ui-control[type="checkbox"],
.ui-control[type="radio"] {
    width: 18px;
    height: 18px;
    min-height: 18px;
    flex-shrink: 0;
    accent-color: #155eef;
}
.ui-control[type="file"]::file-selector-button {
    border: 0;
    border-radius: 5px;
    padding: 8px 12px;
    margin-right: 12px;
    background: #edf3ff;
    color: #174a99;
    font: inherit;
    cursor: pointer;
}
.ui-control[aria-invalid="true"] {
    border-color: #bd283c;
}
.field-error {
    display: block;
    font-size: 14px;
    color: #ad2434;
    margin-top: 5px;
}
button:disabled {
    opacity: 0.6;
    cursor: wait;
}
.ui-pagination {
    flex-wrap: wrap;
    gap: 8px;
    padding: 18px 0;
    font-size: 14px;
}
.ui-pagination .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    min-height: 40px;
    padding: 6px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: white;
    font-variant-numeric: tabular-nums;
}
.ui-pagination .page-link.current {
    background: #155eef;
    color: white;
    border-color: #155eef;
    font-weight: 700;
}
.ui-pagination a:hover {
    background: #edf3ff;
    border-color: #9bbcf5;
}
.pagination-summary {
    margin-right: auto;
    color: var(--muted);
}
.admin-dialog {
    width: min(1280px, calc(100vw - 32px));
    max-width: none;
    max-height: 94dvh;
    padding: 0;
    overflow: auto;
}
.admin-dialog-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 18px 24px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-dialog-header h2 {
    flex: 1;
    font-size: 20px;
    margin: 0;
    letter-spacing: -0.4px;
}
.admin-dialog-header [hidden] {
    display: none;
}
#admin-modal-body {
    padding: 24px;
    min-height: 120px;
}
#admin-modal-body .wrap {
    max-width: none;
    padding: 0;
}
#admin-modal-body .section {
    padding: 0;
}
#admin-modal-body .page-title {
    font-size: 28px;
    margin: 0 0 18px;
}
#admin-modal-body .panel {
    padding: 20px;
}
#admin-modal-body .table-scroll {
    padding: 0;
}
#admin-modal-body .split {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
#admin-modal-message:empty {
    display: none;
}
#admin-modal-message {
    margin: 16px 24px 0;
}
.admin-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 60;
    max-width: min(450px, 90vw);
    padding: 18px 24px;
    background: #102544;
    color: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px #10254430;
}
html:has(dialog[open]) {
    overflow: hidden;
}
@media (max-width: 650px) {
    #player-dialog {
        width: calc(100vw - 16px);
        max-height: 96dvh;
        padding: 20px;
    }
    .admin-dialog {
        width: calc(100vw - 16px);
        max-height: 96dvh;
    }
    .admin-dialog-header {
        padding: 14px;
        gap: 10px;
    }
    #admin-modal-body {
        padding: 16px;
    }
    #admin-modal-body .form-grid,
    #admin-modal-body .split {
        grid-template-columns: 1fr;
    }
    #admin-modal-body .span-2 {
        grid-column: auto;
    }
    .pagination-summary {
        width: 100%;
    }
}

.ui-pagination .pagination-summary {
    border: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
}
#admin-modal-body .form-grid {
    align-items: start;
}
.round-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    gap: 18px;
    margin: 24px 0;
}
.round-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 24px;
    background: white;
    border: 1px solid var(--line);
    border-top: 3px solid var(--green);
    border-radius: 12px;
}
.round-card strong {
    font-size: 24px;
}
.round-card:hover {
    background: #f0f6ff;
    border-color: #8eb4f9;
}
.ui-control[type="hidden"] {
    display: none;
}
/* Searchable dropdowns: one shared control across public and admin forms. */
.ts-wrapper {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 8px;
    font-size: 16px;
}
.ts-wrapper.single .ts-control {
    min-height: 46px;
    padding: 11px 34px 11px 12px;
    border: 1px solid #c6d2e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: none;
    color: var(--ink);
    font: inherit;
    line-height: 22px;
}
.ts-wrapper.focus .ts-control {
    border-color: #155eef;
    box-shadow: 0 0 0 3px #155eef15;
}
.ts-control > input {
    font: inherit !important;
    color: var(--ink);
    min-height: 0 !important;
    height: auto !important;
    max-width: 100%;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}
.ts-control > .item {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.ts-wrapper.single .ts-control:after {
    border-color: #52647b transparent transparent;
    right: 13px;
}
.ts-dropdown {
    z-index: 1000;
    border: 1px solid #c6d2e2;
    border-radius: 8px;
    background: white;
    color: #152640;
    box-shadow: 0 8px 24px #10254422;
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
}
.ts-dropdown .option,
.ts-dropdown .no-results {
    padding: 11px 14px;
    overflow-wrap: anywhere;
}
.ts-dropdown .active {
    background: #edf3ff;
    color: #174a99;
}
.ts-dropdown .selected {
    background: #155eef;
    color: #fff;
}
.ts-dropdown .highlight {
    background: #b7d3ff;
    color: #102544;
    border-radius: 2px;
}
.ts-wrapper.disabled {
    opacity: 0.65;
}
.ts-wrapper.invalid .ts-control {
    border-color: #bd283c;
}
#rankings .ranking-filters {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    overflow-x: auto;
    align-items: center;
}
#rankings .ranking-filters .search-field {
    flex: 1 0 230px;
    min-width: 230px;
}
#rankings .ranking-filters > .ts-wrapper {
    flex: 0 0 175px;
    width: 175px;
    min-width: 175px;
}
#rankings .ranking-filters .button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
}
#rankings .ranking-filters .text-button {
    flex-shrink: 0;
}
#rankings .ranking-filters .search-field input {
    min-height: 46px;
}
.ts-wrapper.single.focus .ts-control > .item {
    display: block;
}
.ts-dropdown .dropdown-input-wrap { padding: 10px; border-bottom: 1px solid var(--line); }
.ts-dropdown .dropdown-input { width: 100%; min-height: 40px; padding: 8px 10px; border: 1px solid #c6d2e2; border-radius: 6px; font: inherit; background: white; color: var(--ink); }
.ts-wrapper.single.has-items .items-placeholder { display: none; }
.ts-wrapper .ts-control, .ts-wrapper .items-placeholder { cursor: pointer; }
.ts-wrapper.single .ts-control {
    height: 46px;
    flex-wrap: nowrap;
}
#rankings .ranking-filters .search-field {
    height: 46px;
}
#rankings .ranking-filters .search-field input {
    height: 44px;
    min-height: 0;
}
/* Tournament descriptions retain the paragraphs entered by administrators. */
.tournament-description {
    margin: 28px 0 36px;
    max-width: 880px;
}
.tournament-description h2 {
    font-size: 22px;
    margin-bottom: 12px;
}
.tournament-description .description {
    white-space: pre-line;
    line-height: 1.8;
    margin: 0;
}
/* Shared player avatar sizes and upload layout. */
.avatar {
    overflow: hidden;
    flex-shrink: 0;
}
.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.avatar-upload {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}
.avatar-upload > div {
    flex: 1;
    min-width: 0;
}
.profile-stats {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}
.listing-filters { padding: 24px; margin-bottom: 20px; background: #fff; border: 1px solid var(--line, #dce3ed); border-radius: 12px; }
.listing-filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; align-items: end; }
.listing-filters label { display: flex; flex-direction: column; gap: 8px; min-width: 0; font-size: 14px; font-weight: 600; }
.listing-filter-footer { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line, #dce3ed); }
.listing-page-size { width: 150px; }
.listing-filters .ts-wrapper { width: 100%; }
.listing-filters input.ui-control { line-height: 22px; }
.admin-site main > .wrap.section { padding-top: 24px; padding-bottom: 28px; }
.admin-site main > .section > .section-heading, #admin-modal-body > [data-modal-view] > .section-heading { margin-bottom: 16px; align-items: center; }
.admin-site .admin-title { margin-top: 0; margin-bottom: 6px; }
.admin-site .section-heading p { margin-top: 4px; margin-bottom: 0; }
.admin-site .listing-filters { padding: 16px; margin-bottom: 16px; }
.admin-site .listing-filter-grid { gap: 12px; }
.admin-site .listing-filter-footer { margin-top: 12px; padding-top: 12px; }
.public-site .section.listing-page { padding-top: 24px; }
.public-site .listing-heading { padding-top: 24px; padding-bottom: 24px; }
.public-site #rankings > .section-heading { margin-bottom: 16px; }
.overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 24px; align-items: stretch; }
.overview-grid h2 { font-size: 22px; margin: 0; }
.overview-grid .section-heading { gap: 16px; margin-bottom: 16px; }
.overview-grid > .panel { margin: 0; padding: 28px; min-width: 0; }
.overview-tournaments { grid-column: 1 / -1; }
.overview-tournament-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; border-top: 1px solid var(--line); padding-top: 24px; }
.overview-tournament-column { min-width: 0; }
.overview-tournament-column + .overview-tournament-column { border-left: 1px solid var(--line); padding-left: 28px; }
.overview-tournament-column h3 { margin: 0; font-size: 18px; }
.overview-grid .empty { padding: 24px 12px; margin: 0; font-size: 14px; }
.overview-drafts { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 20px; }
.overview-description { margin: 0 0 16px; min-height: 44px; }
.overview-player-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.overview-player-grid .overview-row { gap: 12px; min-height: 90px; }
.overview-player-grid .player-cell { min-width: 0; text-align: left; }
.overview-player-grid .player-cell > span { min-width: 0; overflow-wrap: anywhere; }
.overview-player-grid .overview-row:nth-last-child(-n+2) { border-bottom: 0; }
.overview-player-grid .avatar { flex-shrink: 0; }
.overview-rating { flex-shrink: 0; text-align: right; }
.overview-attention .overview-task { min-height: 90px; }
@media (min-width: 801px) and (max-width: 1100px) { .overview-player-grid { grid-template-columns: 1fr; } .overview-player-grid .overview-row:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
@media (max-width: 600px) { .overview-tournament-grid, .overview-player-grid { grid-template-columns: 1fr; } .overview-tournament-column + .overview-tournament-column { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 24px; } .overview-grid > .panel { padding: 20px; } .overview-player-grid .overview-row:nth-last-child(2) { border-bottom: 1px solid var(--line); } }
.overview-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.overview-row:last-child { border-bottom: 0; }
.overview-row > div { min-width: 0; }
.overview-row small { display: block; color: var(--muted); margin-top: 5px; }
.overview-row .button { flex-shrink: 0; }
.overview-task:hover { color: #155eef; }
.tournament-card-photo { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; margin-bottom: 18px; }
.tournament-cover-photo { display: block; width: 100%; max-height: 520px; object-fit: contain; background: #edf2f7; border-radius: 12px; margin: 24px 0; }
.tournament-photo-preview { display: block; width: 240px; max-width: 100%; max-height: 160px; object-fit: contain; border-radius: 8px; margin-bottom: 12px; }
.portal-footer { margin-top: 0; background: #102544; color: white; border: 0; }
.portal-footer .footer-main { grid-template-columns: 1.3fr 0.8fr 1fr; padding-top: 45px; gap: 40px; }
.portal-footer .footer-main > div > strong { display: block; font-size: 14px; letter-spacing: 1px; margin-bottom: 20px; color: #b8cbe4; }
.portal-footer .footer-main a, .portal-footer .footer-main p { color: #dce8fa; }
.portal-footer .footer-main .brand { color: white; }
.portal-footer .brand-mark i { background: #c5a76e; }
.portal-footer .brand-mark i + i { border-color: #102544; background: #eee5d1; }
.portal-footer .footer-bottom { color: #b8cbe4; border-color: #304a6c; }
@media (max-width: 800px) { .overview-grid { grid-template-columns: 1fr; } .portal-footer .footer-main { grid-template-columns: 1fr; gap: 24px; } }
@media (max-width: 600px) { .listing-filters { padding: 16px; } .listing-filter-grid { grid-template-columns: 1fr; } .listing-filter-footer { flex-wrap: wrap; } }
