html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    margin-bottom: 60px;
}

/* ------- SHARED UTILITIES ------- */

.section-title {
    margin-bottom: 1rem;
    font-size: 1.4rem;
}

.is-hidden {
    display: none;
}

.disabled-link {
    pointer-events: none;
}

tbody tr.clickable-row {
    cursor: pointer;
}

/* Shared organisation search dropdown */
.organisation-search-results {
    z-index: 1000;
    max-height: 240px;
    overflow: auto;
    display: none;
}

/* ------- TRUSTEE ------- */

/* Trustee site selection page */
.site-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
    margin-bottom: 1rem;
    max-width: 820px;
}

.site-link-tile {
    display: block;
    padding: 20px 22px;
    font-size: 1.25rem;
    font-weight: 600;
    color: #1a1a1a;
    border-radius: 12px;
    text-decoration: none;
    text-align: center;
    border: 2px solid transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

/* Ian Mactaggart Trust – pale burgundy */
.imt-tile {
    background-color: #f2d6d6;
    border-color: #d6a3a3;
}

    .imt-tile:hover,
    .imt-tile:focus {
        background-color: #e6bfbf;
        border-color: #b36b6b;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        text-decoration: none;
    }

/* Mactaggart Third Fund – pale blue */
.mtf-tile {
    background-color: #dbe4f5;
    border-color: #aebfdf;
}

    .mtf-tile:hover,
    .mtf-tile:focus {
        background-color: #c7d6f0;
        border-color: #7f9bd1;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        text-decoration: none;
    }

.site-link-tile:active {
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* Organisations table */
#orgTable tbody tr.striped-alt {
    background-color: #f8f9fa !important;
}

#orgTable tbody tr.clickable-row:hover {
    background-color: #eef6ff !important;
}

/* Trustee dashboard */
.dashboard-link-row {
    display: flex;
    gap: 18px;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
    max-width: 100%;
}

.dashboard-link-tile {
    flex: 0 0 auto;
    min-width: 220px;
    padding: 20px 22px;
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
    background-color: #f5f7fa;
    border: 2px solid #d0d7e2;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .dashboard-link-tile:hover,
    .dashboard-link-tile:focus {
        background-color: #e9f2ff;
        border-color: #6ea8fe;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        text-decoration: none;
    }

    .dashboard-link-tile:active {
        background-color: #dbe9ff;
        box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.12);
    }

/* ------- ADMIN ------- */

/* Admin dashboard */
.admin-link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin-bottom: 1rem;
}

.admin-link-tile {
    display: block;
    padding: 16px 18px;
    font-size: 1.15rem;
    font-weight: 500;
    color: #1a1a1a;
    background-color: #f5f7fa;
    border: 2px solid #d0d7e2;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .admin-link-tile:hover,
    .admin-link-tile:focus {
        background-color: #e9f2ff;
        border-color: #6ea8fe;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        text-decoration: none;
    }

    .admin-link-tile:active {
        background-color: #dbe9ff;
    }

/* Admin organisations table */
#orgTable .org-id-col {
    width: 90px;
}

#orgTable .org-registered-charity-col {
    width: 160px;
}

#orgTable .org-charity-no-col {
    width: 140px;
}

/* Admin users table */
#usersTable .user-abbreviated-col {
    width: 140px;
}

#usersTable .user-active-col {
    width: 90px;
}

/* ------ PUBLIC ------- */

/* Public landing page */
.landing-container {
    display: grid;
    grid-template-columns: 1fr 1px 1fr;
    gap: 32px;
    margin-top: 2rem;
    align-items: stretch;
}

.landing-column {
    font-size: 1.05rem;
    line-height: 1.65;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
}

    .landing-column h1 {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .landing-column p {
        max-width: 520px;
    }

.vertical-divider {
    width: 1px;
    background-color: #d0d7e2;
    height: 100%;
}

.note-block {
    margin-top: auto;
    padding-top: 2rem;
    text-align: center;
}

    .note-block strong {
        display: block;
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

.neutral-link-button {
    display: inline-block;
    padding: 14px 20px;
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a1a1a;
    background-color: #f5f7fa;
    border: 2px solid #d0d7e2;
    border-radius: 10px;
    text-decoration: none;
    transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

    .neutral-link-button:hover,
    .neutral-link-button:focus {
        background-color: #e9f2ff;
        border-color: #6ea8fe;
        box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
        text-decoration: none;
    }

@media (max-width: 900px) {
    .landing-container {
        grid-template-columns: 1fr;
    }

    .vertical-divider {
        display: none;
    }
}