/* ==========================================================================
   members.css
   Member pages (sign up, log in, verify, account), in the same
   thin-grey-border style as h2h-modern.css. The pages use the site's usual
   full-width panel (panel panel-sq), and this file styles what goes inside.

   Every class starts with "mbr-", so this file can't affect any other page.

   Every rule is written as ".mbr-page .something". Member pages wrap their
   content in <div class="mbr-page">, and the extra class makes these rules
   win over the menu's stylesheet, which loads later in the page.
   ========================================================================== */

.mbr-page {
    --mbr-border:     #e5e7eb;   /* the thin grey border used everywhere */
    --mbr-surface:    #f9fafb;   /* light cell background */
    --mbr-surface-2:  #f3f4f6;   /* slightly darker band */
    --mbr-ink:        #1a1c27;
    --mbr-muted:      #6b7280;
    --mbr-neutral:    #868686;   /* accent bar, like the h2h "Overall" tab */
    --mbr-error:      #b42318;
    --mbr-error-bg:   #fef3f2;
    --mbr-success:    #067647;
}


/* ----- Page width -----------------------------------------------------------
   The panel is centred and stops at 1300px on big screens, so forms don't
   stretch across the whole page. Below 1300px it simply fills the width. */

.mbr-page .panel {
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
}


/* ----- Intro line under the panel title ------------------------------------ */

.mbr-page .mbr-intro {
    margin: 0 0 20px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--mbr-muted);
}


/* ----- Section: title bar + bordered box (like .h2h-section-title) --------- */

.mbr-page .mbr-section {
    margin: 0 0 25px;
}

.mbr-page .mbr-section-title {
    margin: 0;
    padding: 12px 15px;
    background: var(--mbr-surface);
    border: 1px solid var(--mbr-border);
    border-bottom: 0;
    border-left: 4px solid var(--mbr-neutral);
    color: var(--mbr-ink);
    font-size: 16px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.mbr-page .mbr-section-body {
    padding: 20px;
    border: 1px solid var(--mbr-border);
    background: #fff;
}

.mbr-page .mbr-section-note {
    margin: 0 0 18px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mbr-muted);
}

/* Delete section: red bar instead of grey */
.mbr-page .mbr-section--danger .mbr-section-title {
    border-left-color: var(--mbr-error);
}

@media (max-width: 767px) {
    .mbr-page .mbr-section { margin: 0 0 20px; }
    .mbr-page .mbr-section-title { font-size: 14px; }
    .mbr-page .mbr-section-body { padding: 15px; }
}


/* ----- Field grid: 2 or 3 columns on desktop, 1 on phones ------------------ */

.mbr-page .mbr-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.mbr-page .mbr-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mbr-page .mbr-span-all {
    grid-column: 1 / -1;
}

@media (max-width: 767px) {
    .mbr-page .mbr-grid,
    .mbr-page .mbr-grid--3 { grid-template-columns: minmax(0, 1fr); }
}


/* ----- Summary cells (account page), like the h2h record boxes ------------- */

.mbr-page .mbr-summary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr) minmax(0, 1fr);   /* middle (email) gets more room */
    margin: 0 0 25px;
    border: 1px solid var(--mbr-border);
}

.mbr-page .mbr-summary-cell {
    min-width: 0;
    padding: 16px 12px 14px;
    background: var(--mbr-surface);
    border-right: 1px solid var(--mbr-border);
    text-align: center;
}

.mbr-page .mbr-summary-cell:last-child {
    border-right: 0;
}

.mbr-page .mbr-summary-value {
    display: block;
    margin-bottom: 4px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--mbr-ink);
    overflow-wrap: anywhere;
}

/* Three equal columns (moderation page counts) */
.mbr-page .mbr-summary--even {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 767px) {
    .mbr-page .mbr-summary--even { grid-template-columns: minmax(0, 1fr); }
}

/* Emails can be long: slightly smaller, and if it still doesn't fit,
   it wraps right after the @ (never in the middle of a word) */
.mbr-page .mbr-summary-value--email {
    font-size: 18px;
    line-height: 24px;             /* same line height as the other cells, so the labels line up */
    overflow-wrap: normal;
}

.mbr-page .mbr-summary-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--mbr-muted);
    text-transform: uppercase;
}

@media (max-width: 767px) {
    .mbr-page .mbr-summary { grid-template-columns: minmax(0, 1fr); }
    .mbr-page .mbr-summary-cell { border-right: 0; border-bottom: 1px solid var(--mbr-border); }
    .mbr-page .mbr-summary-cell:last-child { border-bottom: 0; }
    .mbr-page .mbr-summary-value,
    .mbr-page .mbr-summary-value--email { font-size: 17px; }
    .mbr-page .mbr-summary-value--email { overflow-wrap: anywhere; }   /* very narrow phones: never overflow */
}


/* ----- Form fields --------------------------------------------------------- */

.mbr-page .mbr-field {
    margin-bottom: 18px;
}

.mbr-page .mbr-label {
    display: block;
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 700;
    color: var(--mbr-ink);
}

.mbr-page .mbr-input {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 0;
    background: #fff;
    color: var(--mbr-ink);
    font-size: 16px;               /* 16px stops iPhones from zooming in on focus */
    line-height: 1.3;
    box-shadow: none;
    -webkit-appearance: none;
    appearance: none;
}

.mbr-page .mbr-input:focus {
    border-color: var(--mbr-ink);
    outline: 2px solid var(--mbr-ink);
    outline-offset: -1px;
}

.mbr-page .mbr-input:disabled {
    background: var(--mbr-surface-2);
    color: var(--mbr-muted);
    cursor: not-allowed;
}

.mbr-page .mbr-hint {
    margin: 6px 0 0;
    font-size: 12px;
    line-height: 1.4;
    color: var(--mbr-muted);
}

.mbr-page .mbr-field.has-error .mbr-input {
    border-color: var(--mbr-error);
}

.mbr-page .mbr-field-error {
    margin: 6px 0 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--mbr-error);
}

/* Dropdown with its own arrow (the input style removes the browser's) */
.mbr-page .mbr-select {
    min-width: 0;
    padding-right: 36px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231a1c27' stroke-width='2'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    cursor: pointer;
}

/* Checkbox with its text */
.mbr-page .mbr-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--mbr-ink);
    cursor: pointer;
}

.mbr-page .mbr-check input {
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    flex-shrink: 0;
    accent-color: var(--mbr-ink);
}

/* Label kept for screen readers but not shown */
.mbr-page .mbr-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* ----- Badge picker: logo preview + dropdown ------------------------------- */

.mbr-page .mbr-badge-picker {
    display: flex;
    align-items: stretch;
    gap: 10px;
    max-width: 520px;
}

.mbr-page .mbr-badge-preview {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 46px;
    border: 1px solid var(--mbr-border);
    background: var(--mbr-surface);
}

.mbr-page .mbr-badge-preview img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.mbr-page .mbr-badge-preview img[hidden] {
    display: none;
}

@media (max-width: 767px) {
    .mbr-page .mbr-badge-picker { max-width: none; }
}


/* ----- Messages ------------------------------------------------------------ */

.mbr-page .mbr-alert {
    margin-bottom: 20px;
    padding: 12px 14px;
    border: 1px solid var(--mbr-border);
    border-left-width: 4px;
    font-size: 15px;
    line-height: 1.5;
}

.mbr-page .mbr-alert--error {
    border-color: #fecdca;
    border-left-color: var(--mbr-error);
    background: var(--mbr-error-bg);
    color: var(--mbr-error);
}

.mbr-page .mbr-alert--success {
    border-left-color: var(--mbr-success);
    background: var(--mbr-surface);
    color: var(--mbr-ink);
}

.mbr-page .mbr-alert p {
    margin: 0;
}

.mbr-page .mbr-alert p + p {
    margin-top: 8px;
}


/* ----- Buttons -------------------------------------------------------------- */

.mbr-page .mbr-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
}

.mbr-page .mbr-button {
    display: inline-block;
    min-width: 220px;
    padding: 12px 20px;
    border: 1px solid var(--mbr-ink);
    border-radius: 0;
    background: var(--mbr-ink);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease;
}

.mbr-page .mbr-button:hover {
    background: #2e3142;
}

.mbr-page .mbr-button:focus-visible {
    outline: 2px solid var(--mbr-ink);
    outline-offset: 2px;
}

.mbr-page a.mbr-button,
.mbr-page a.mbr-button:hover,
.mbr-page a.mbr-button:focus {
    color: #fff;
    text-decoration: none;
}

.mbr-page .mbr-button--danger {
    border-color: var(--mbr-error);
    background: var(--mbr-error);
}

.mbr-page .mbr-button--danger:hover {
    background: #912018;
}

.mbr-page .mbr-button:disabled,
.mbr-page .mbr-button:disabled:hover {
    border-color: #d1d5db;
    background: #d1d5db;
    color: #fff;
    cursor: not-allowed;
}

/* "Already have an account? Log in" next to the button */
.mbr-page .mbr-actions-note {
    font-size: 14px;
    color: var(--mbr-muted);
}

.mbr-page .mbr-actions-note a {
    color: var(--mbr-ink);
    font-weight: 600;
    text-decoration: underline;
}

@media (max-width: 767px) {
    .mbr-page .mbr-actions { flex-direction: column; align-items: stretch; }
    .mbr-page .mbr-button { display: block; width: 100%; min-width: 0; }
    .mbr-page .mbr-actions-note { text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
    .mbr-page .mbr-button { transition: none; }
}


/* ----- Spam trap: hidden from people, filled in by bots -------------------- */

.mbr-page .mbr-trap {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}


/* ----- Two forms side by side in one section (account: username | badge) ---
   Stacked on phones and tablets, side by side from 992px, with a thin line
   between them. Buttons line up at the bottom even if one side is taller. */

.mbr-page .mbr-split {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
}

.mbr-page .mbr-split-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.mbr-page .mbr-split-col + .mbr-split-col {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--mbr-border);
}

.mbr-page .mbr-split-col .mbr-actions {
    margin-top: auto;
}

.mbr-page .mbr-subtitle {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    color: var(--mbr-ink);
}

@media (min-width: 992px) {
    .mbr-page .mbr-split {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mbr-page .mbr-split-col:first-child {
        padding-right: 25px;
    }

    .mbr-page .mbr-split-col + .mbr-split-col {
        margin-top: 0;
        padding-top: 0;
        padding-left: 25px;
        border-top: 0;
        border-left: 1px solid var(--mbr-border);
    }

    .mbr-page .mbr-split .mbr-badge-picker {
        max-width: none;
    }
}


/* ----- Panel heading with a button on the right (account: Log out) ---------
   Same idea as the h2h "Screenshot" button in its title bar. */

.mbr-page .mbr-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mbr-page .mbr-panel-heading .panel_title {
    flex: 1;
    min-width: 0;
}

/* Outlined button: white with a dark border, for less important actions */
.mbr-page .mbr-button--secondary,
.mbr-page a.mbr-button--secondary {
    background: #fff;
    color: var(--mbr-ink);
}

.mbr-page .mbr-button--secondary:hover,
.mbr-page a.mbr-button--secondary:hover,
.mbr-page a.mbr-button--secondary:focus {
    background: var(--mbr-ink);
    color: #fff;
}

/* Smaller button that sizes to its text, with an optional icon */
.mbr-page .mbr-button--small {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    gap: 8px;
    width: auto;
    min-width: 0;
    padding: 9px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.mbr-page .mbr-button--small svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 767px) {
    .mbr-page .mbr-button--small {
        display: inline-flex;
        width: auto;
        padding: 8px 12px;
        font-size: 13px;
    }
}



/* ----- Moderation page: one box per reported or hidden comment ------------- */

.mbr-page .mbr-mod-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--mbr-border);
}

.mbr-page .mbr-mod-item:first-child {
    padding-top: 0;
}

.mbr-page .mbr-mod-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.mbr-page .mbr-mod-meta {
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--mbr-muted);
}

.mbr-page .mbr-mod-meta strong {
    color: var(--mbr-ink);
}

.mbr-page .mbr-mod-meta a {
    color: var(--mbr-ink);
    text-decoration: underline;
}

/* The comment itself, in a light box */
.mbr-page .mbr-mod-quote {
    margin-bottom: 10px;
    padding: 10px 14px;
    border-left: 4px solid var(--mbr-neutral);
    background: var(--mbr-surface);
    font-size: 15px;
    line-height: 1.5;
    color: var(--mbr-ink);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.mbr-page .mbr-mod-reports {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px 10px;
    margin-bottom: 12px;
    font-size: 14px;
    color: var(--mbr-ink);
}

.mbr-page .mbr-mod-tag {
    display: inline-block;
    padding: 2px 8px;
    border: 1px solid var(--mbr-border);
    background: var(--mbr-surface-2);
    font-size: 12px;
    font-weight: 700;
    color: var(--mbr-ink);
    text-transform: uppercase;
}

.mbr-page .mbr-mod-tag--danger {
    border-color: #fecdca;
    background: var(--mbr-error-bg);
    color: var(--mbr-error);
}

.mbr-page .mbr-mod-tag--muted {
    color: var(--mbr-muted);
}

.mbr-page .mbr-mod-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mbr-page .mbr-mod-actions form {
    margin: 0;
}

.mbr-page .mbr-mod-item--compact .mbr-mod-quote {
    font-size: 14px;
}

.mbr-page .mbr-mod-empty {
    margin: 0;
    font-style: italic;
}

.mbr-page code {
    padding: 1px 5px;
    background: var(--mbr-surface-2);
    color: var(--mbr-ink);
    font-size: 13px;
}

@media (max-width: 767px) {
    .mbr-page .mbr-mod-actions form {
        flex: 1 1 auto;
    }

    .mbr-page .mbr-mod-actions .mbr-button--small {
        width: 100%;
        justify-content: center;
    }
}



/* ----- Public profile (profile.cfm) ---------------------------------------- */

.mbr-page .mbr-profile-head {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 16px;
    margin: 0 0 20px;
}

.mbr-page .mbr-profile-name {
    margin: 0;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.2;
    color: var(--mbr-ink);
    overflow-wrap: anywhere;
}

.mbr-page .mbr-profile-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px 5px 8px;
    border: 1px solid var(--mbr-border);
    background: var(--mbr-surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--mbr-ink);
}

.mbr-page .mbr-profile-badge img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}

/* The comment list scrolls inside its own box, so long histories don't stretch the page */
.mbr-page .mbr-profile-comments {
    max-height: min(640px, 70vh);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-top: 0;
    padding-bottom: 0;
}

.mbr-page .mbr-pc {
    padding: 16px 0;
    border-bottom: 1px solid var(--mbr-border);
}

.mbr-page .mbr-pc:last-child {
    border-bottom: 0;
}

.mbr-page .mbr-pc-meta {
    margin-bottom: 6px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mbr-muted);
}

.mbr-page .mbr-pc-meta strong {
    color: var(--mbr-ink);
}

.mbr-page .mbr-pc-meta a {
    color: var(--mbr-ink);
    font-weight: 600;
    text-decoration: underline;
}

.mbr-page .mbr-pc-body {
    font-size: 15px;
    line-height: 1.6;
    color: var(--mbr-ink);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.mbr-page .mbr-pc-votes {
    display: flex;
    gap: 14px;
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--mbr-muted);
}

.mbr-page .mbr-pc-votes span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mbr-page .mbr-pc-votes svg {
    width: 14px;
    height: 14px;
}

.mbr-page .mbr-pc-limit {
    margin: 10px 0 0;
}

@media (max-width: 767px) {
    .mbr-page .mbr-profile-name { font-size: 24px; }
}


/* ----- Moderation page: banned members list (name on the left, Unban on the right) */

.mbr-page .mbr-mod-banned {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.mbr-page .mbr-mod-banned .mbr-mod-meta {
    margin: 0;
}

.mbr-page .mbr-mod-banned form {
    margin: 0;
    flex-shrink: 0;
}



/* ----- "Continue with Google" button and the "or" divider under it -----------
   The button is Google's official image (logo and text), shown as is: no border,
   background or colour changes, as Google's branding guidelines ask. */

.mbr-page a.mbr-google {
    display: block;
    width: fit-content;
    max-width: 100%;
    margin: 0 auto;
    line-height: 0;                /* no gap under the image */
}

.mbr-page a.mbr-google img {
    display: block;
    height: 40px;                  /* Google's standard button height */
    width: auto;
    max-width: 100%;
}

.mbr-page a.mbr-google:focus-visible {
    outline: 2px solid var(--mbr-ink);
    outline-offset: 3px;
}

.mbr-page .mbr-or {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    font-size: 13px;
    color: var(--mbr-muted);
}

.mbr-page .mbr-or::before,
.mbr-page .mbr-or::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--mbr-border);
}


/* ----- Legal pages (privacy.cfm, terms.cfm): comfortable reading text ----- */

.mbr-page .mbr-legal {
    font-size: 16px;
    line-height: 1.7;
    color: var(--mbr-ink);
}

.mbr-page .mbr-legal h2 {
    margin: 32px 0 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--mbr-border);
    font-size: 20px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--mbr-ink);
    scroll-margin-top: 90px;
}

.mbr-page .mbr-legal p {
    margin: 0 0 14px;
}

.mbr-page .mbr-legal ul {
    margin: 0 0 16px;
    padding-left: 22px;
}

.mbr-page .mbr-legal li {
    margin-bottom: 6px;
}

.mbr-page .mbr-legal a {
    color: var(--mbr-ink);
    text-decoration: underline;
}

.mbr-page .mbr-legal-updated {
    font-size: 14px;
    color: var(--mbr-muted);
}

/* "By creating an account, you agree to..." under signup buttons */
.mbr-page .mbr-consent {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.5;
    color: var(--mbr-muted);
}

.mbr-page .mbr-consent a {
    color: var(--mbr-ink);
    text-decoration: underline;
}

@media (max-width: 767px) {
    .mbr-page .mbr-legal    { font-size: 15px; }
    .mbr-page .mbr-legal h2 { font-size: 18px; }
}

.mbr-page .mbr-consent--center {
    margin-top: 10px;
    margin-bottom: 0;
    text-align: center;
}


/* "Official" / "Mod" tag next to the username on profiles (same look as in comments) */
.mbr-page .mbr-role-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border: 1px solid var(--mbr-border);
    background: var(--mbr-surface-2);
    color: var(--mbr-muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.mbr-page .mbr-role-tag svg {
    width: 12px;
    height: 12px;
}

.mbr-page .mbr-role-tag--official {
    border-color: var(--mbr-ink);
    background: var(--mbr-ink);
    color: #fff;
}


/* ----- Moderation page: blocked words ---------------------------------------- */

.mbr-page .mbr-textarea {
    min-height: 110px;
    font-family: inherit;
    resize: vertical;
}

.mbr-page .mbr-word-test {
    margin: 8px 0 0;
    padding: 8px 12px;
    border-left: 4px solid var(--mbr-success);
    background: var(--mbr-surface);
    font-size: 14px;
    font-weight: 600;
    color: var(--mbr-ink);
}

.mbr-page .mbr-word-test.is-blocked {
    border-left-color: var(--mbr-error);
    background: var(--mbr-error-bg);
    color: var(--mbr-error);
}

.mbr-page .mbr-word-list {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--mbr-border);
}

.mbr-page .mbr-word-list summary {
    font-size: 14px;
    font-weight: 700;
    color: var(--mbr-ink);
    cursor: pointer;
}

.mbr-page .mbr-word-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 320px;
    margin-top: 12px;
    overflow-y: auto;
}

.mbr-page .mbr-word-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    padding: 3px 4px 3px 10px;
    border: 1px solid var(--mbr-border);
    background: var(--mbr-surface);
    font-size: 13px;
    color: var(--mbr-ink);
}

.mbr-page .mbr-word-chip em {
    font-size: 11px;
    font-style: normal;
    color: var(--mbr-muted);
    text-transform: uppercase;
}

.mbr-page .mbr-word-chip button {
    width: 22px;
    height: 22px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--mbr-muted);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
}

.mbr-page .mbr-word-chip button:hover {
    color: var(--mbr-error);
}



/* ----- Moderation page: Members and Comments lists -------------------------
   Each list scrolls inside its own box (about 10 rows tall), with the header row
   staying at the top, so the page never turns into one endless table. */

.mbr-page .mbr-count {
    display: inline-block;
    margin-left: 6px;
    padding: 1px 8px;
    border-radius: 10px;
    background: var(--mbr-border);
    color: var(--mbr-muted);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    vertical-align: 2px;
}

.mbr-page .mbr-list-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.mbr-page .mbr-list-search {
    flex: 1 1 260px;
    width: auto;
    max-width: 420px;
}

.mbr-page .mbr-list-status {
    flex: 0 1 200px;
    width: auto;
}

.mbr-page .mbr-list-shown {
    margin-left: auto;
    font-size: 13px;
    color: var(--mbr-muted);
    white-space: nowrap;
}

.mbr-page .mbr-table-scroll {
    max-height: 460px;
    overflow: auto;
    border: 1px solid var(--mbr-border);
    overscroll-behavior: contain;
}

.mbr-page .mbr-table {
    width: 100%;
    border-collapse: separate;     /* needed for the sticky header */
    border-spacing: 0;
    font-size: 14px;
    color: var(--mbr-ink);
}

.mbr-page .mbr-table[hidden] {
    display: none;
}

.mbr-page .mbr-table th {
    position: sticky;
    top: 0;
    z-index: 1;
    padding: 10px 12px;
    background: var(--mbr-surface);
    border-bottom: 1px solid var(--mbr-border);
    font-size: 12px;
    font-weight: 700;
    color: var(--mbr-muted);
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.mbr-page .mbr-table td {
    padding: 9px 12px;
    border-bottom: 1px solid var(--mbr-border);
    vertical-align: top;
}

.mbr-page .mbr-table tbody tr:hover td {
    background: var(--mbr-surface);
}

.mbr-page .mbr-table .num {
    text-align: center;
}

.mbr-page .mbr-table a {
    color: var(--mbr-ink);
    text-decoration: underline;
}

.mbr-page .mbr-table .mbr-mod-tag {
    margin-left: 4px;
    font-size: 10px;
}

.mbr-page .mbr-cell-date,
.mbr-page .mbr-cell-votes {
    white-space: nowrap;
}

.mbr-page .mbr-cell-email {
    color: var(--mbr-muted);
    overflow-wrap: anywhere;
}

.mbr-page .mbr-cell-sub {
    font-size: 12px;
    color: var(--mbr-muted);
}

.mbr-page .mbr-cell-body {
    min-width: 240px;
}

.mbr-page .mbr-cell-article {
    min-width: 160px;
    max-width: 240px;
}

/* Long comments show two lines; the full text is in the tooltip */
.mbr-page .mbr-clamp {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
}

.mbr-page .mbr-status-ok {
    font-size: 13px;
    color: var(--mbr-success);
}

.mbr-page .mbr-vote-up   { color: #2f7a4d; font-weight: 700; }
.mbr-page .mbr-vote-down { color: #b0453c; font-weight: 700; margin-left: 4px; }

.mbr-page .mbr-table form {
    margin: 0;
}

.mbr-page .mbr-table-action {
    padding: 4px 10px;
    border: 1px solid var(--mbr-border);
    background: #fff;
    color: var(--mbr-ink);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

.mbr-page .mbr-table-action:hover {
    border-color: var(--mbr-ink);
}

.mbr-page .mbr-table-action--danger:hover {
    border-color: var(--mbr-error);
    color: var(--mbr-error);
}

.mbr-page .mbr-list-empty {
    margin: 0;
    padding: 20px;
    font-size: 14px;
    font-style: italic;
    color: var(--mbr-muted);
    text-align: center;
}

.mbr-page .mbr-list-limit {
    margin: 10px 0 0;
}

@media (max-width: 767px) {
    .mbr-page .mbr-table-scroll { max-height: 380px; }
    .mbr-page .mbr-list-search,
    .mbr-page .mbr-list-status  { flex: 1 1 100%; max-width: none; }
    .mbr-page .mbr-list-shown   { margin-left: 0; }
}


/* ----- Supporters table (supporters.cfm) -------------------------------------
   Same thin-border table as the moderation lists, but full height (each league
   is short) and with a share bar. Rank 1 gets the green bar used on standings. */

.mbr-page .mbr-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--mbr-border);
    border-top: 0;
}

.mbr-page .mbr-sup-table td {
    vertical-align: middle;
    line-height: 1.25;
}

.mbr-page .mbr-sup-table th.num,
.mbr-page .mbr-sup-table td.num {
    width: 1%;
    white-space: nowrap;
}

.mbr-page .mbr-sup-rank {
    position: relative;
    min-width: 44px;
    color: var(--mbr-muted);
    font-weight: 700;
}

.mbr-page .mbr-sup-table tr.is-first .mbr-sup-rank::before {
    content: "";
    position: absolute;
    top: 15%;
    left: 0;
    width: 4px;
    height: 70%;
    border-radius: 0 5px 5px 0;
    background: #8ecc80;
}

/* Block-level flex (not inline-flex): an inline box sits on the text baseline and
   leaves room for letters like g/y below it, which pushes the logo and name up */
.mbr-page .mbr-sup-club {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 30px;
    font-weight: 600;
    line-height: 1.25;
}

.mbr-page .mbr-sup-club img {
    display: block;
    width: 30px;
    height: 30px;
    object-fit: contain;
    flex-shrink: 0;
}

.mbr-page .mbr-sup-table a {
    text-decoration: none;
}

.mbr-page .mbr-sup-table a:hover {
    text-decoration: underline;
}

/* Clubs nobody supports yet: greyed out, still listed */
.mbr-page .mbr-sup-table tr.is-empty td {
    color: var(--mbr-muted);
}

.mbr-page .mbr-sup-table tr.is-empty .mbr-sup-club img {
    opacity: 0.55;
}

/* Share: a thin bar plus the percentage */
.mbr-page .mbr-sup-share {
    width: 22%;
    min-width: 140px;
}

.mbr-page .mbr-sup-share {
    white-space: nowrap;
}

.mbr-page .mbr-sup-bar {
    display: inline-block;
    width: calc(100% - 56px);
    height: 6px;
    margin-right: 8px;
    border-radius: 3px;
    background: var(--mbr-surface-2);
    vertical-align: middle;
    overflow: hidden;
}

.mbr-page .mbr-sup-bar span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #1c66d9;
}

.mbr-page .mbr-sup-pct {
    display: inline-block;
    width: 46px;
    font-size: 13px;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

/* Sortable column titles */
.mbr-page .mbr-sup-table th button {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font: inherit;
    text-transform: inherit;
    cursor: pointer;
}

.mbr-page .mbr-sup-table th button:hover {
    color: var(--mbr-ink);
}

.mbr-page .mbr-sup-table th button.is-sorted {
    color: var(--mbr-ink);
}

.mbr-page .mbr-sup-table th button.is-sorted::after {
    content: " \25BC";
    font-size: 9px;
}

.mbr-page .mbr-sup-table th button:focus-visible {
    outline: 2px solid var(--mbr-ink);
    outline-offset: 2px;
}

.mbr-page .mbr-sup-table + .mbr-section-note,
.mbr-page .mbr-section + .mbr-section-note {
    margin-top: 0;
}

/* Phones: keep rank, club, supporters and share; the rest is one tap away on desktop */
@media (max-width: 767px) {
    .mbr-page .mbr-col-extra     { display: none; }
    .mbr-page .mbr-sup-share     { width: 1%; min-width: 0; text-align: right; }
    .mbr-page .mbr-sup-bar       { display: none; }
    .mbr-page .mbr-sup-pct       { width: auto; }
    .mbr-page .mbr-sup-rank      { min-width: 34px; }
    .mbr-page .mbr-sup-table th,
    .mbr-page .mbr-sup-table td  { padding-left: 8px; padding-right: 8px; }
    .mbr-page .mbr-sup-club img  { width: 24px; height: 24px; }
    .mbr-page .mbr-sup-club      { gap: 8px; }

    /* "x supporters" drops onto its own line under the league name */
    .mbr-page .mbr-sup-title .mbr-count {
        display: table;
        margin: 6px 0 0;
    }
}