/* ==========================================================================
   Knollwood Hills Condominium Association - Master Stylesheet (style.css)
   ========================================================================== */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333333;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 0 20px 0; /* Let header banner touch edges */
    background-color: #f8f9fa;
}

/* Header Banner Components */
div.portal-header, div.roster-header, div.page-header {
    background-color: #1a365d;
    color: #ffffff;
    text-align: center;
    padding: 24px 20px;
    margin-bottom: 24px;
}

div.portal-header h1, div.roster-header h1, div.page-header h1 {
    color: #ffffff;
    margin: 0 0 6px 0;
    font-size: 24px;
}

div.portal-header p {
    color: #cbd5e1;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}

/* Callouts and System Banners */
div.confidential-notice, div.alert-banner {
    background-color: #fff5f5;
    border-left: 4px solid #e53e3e;
    color: #c53030;
    padding: 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    margin: 0 20px 30px 20px;
}

/* Padding container for content below the header */
div.content-wrap {
    padding: 0 20px;
}

/* Card Sections for Documents & Resources - SLEEK DECORATED VERSION */
div.section-card {
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-left: 5px solid #1a365d; /* Automatically adds the dark blue accent line to ALL blocks */
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
    text-align: left;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    box-sizing: border-box;
}

div.section-card h3 {
    color: #1a365d;
    margin-top: 0;
    margin-bottom: 12px;
    font-size: 18px;
}

/* Restores your Orange Access Button - SLEEK SCALED-DOWN VERSION */
a.btn-orange {
    display: inline-block;
    background-color: #e06626;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    padding: 8px 16px; /* Trimmed down from 10px 20px for a more compact profile */
    border-radius: 4px;
    font-size: 12px; /* Slightly smaller text for a crisp, modern button feel */
    transition: background-color 0.2s;
    letter-spacing: 0.3px;
}


a.btn-orange:hover {
    background-color: #c4531a;
}

/* Standardized Navigation Buttons */
div.nav-container {
    text-align: center;
    margin-top: 40px;
    margin-bottom: 20px;
    clear: both;
    width: 100%;
}

a.btn-primary {
    display: inline-block;
    background-color: #1a365d;
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    padding: 12px 28px;
    border-radius: 4px;
    font-size: 14px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

/* Data Display Tables (Roster & Resources) - DESKTOP VIEW BASIS */
div.table-container {
    box-sizing: border-box;
    width: 100%;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
    margin-bottom: 20px;
}

table.standard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 14px;
}

table.standard-table th {
    background-color: #f1f5f9;
    color: #1a365d;
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 2px solid #cbd5e1;
}

table.standard-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    vertical-align: top;
}

table.standard-table tr:hover {
    background-color: #f8fafc;
}

/* Table Utilities */
td.lot-num { font-weight: 700; color: #0284c7; }
td.owner-name, td.entity-name { font-weight: 600; color: #0f172a; }
div.contact-item { margin-bottom: 4px; white-space: nowrap; }
span.contact-label {
    font-size: 13px;
    color: #64748b;
    font-weight: 600;
    display: inline;
    margin-right: 4px;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

img.hero-image, img.portal-image {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 20px 0;
    box-sizing: border-box;
}

/* Board of Directors Section Layout */
.board-section-title {
    text-align: center;
    color: #1a365d;
    margin-top: 40px;
    margin-bottom: 5px;
    font-size: 22px;
}

.board-section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 13px;
    margin-bottom: 24px;
}

div.board-row {
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
}

div.board-member {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 0 0 16px 0;
    display: inline-block;
    vertical-align: top;
    box-sizing: border-box;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
    text-align: center;
    margin: 0 8px 16px 8px;
    overflow: hidden;
}

.row-of-4 { width: 22%; }
.row-of-3 { width: 29%; }

div.board-member h4 {
    margin: 14px 4px 0 4px;      
    color: #333333;
    font-size: 14px;
    font-weight: 600;
}

span.role-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #ffffff;
    background-color: #1a365d;
    font-weight: bold;
    display: block;
    padding: 8px 4px;
    letter-spacing: 0.5px;
}

div.contact-footer {
    background-color: #1a365d;
    color: #ffffff;
    text-align: center;
    padding: 24px;
    border-radius: 4px;
    margin-top: 40px;
}

/* Universal Mobile Table Engine */
@media screen and (max-width: 768px) {
    table.standard-table thead { display: none; }
    table.standard-table tr { display: block; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 16px; padding: 12px; background: #ffffff; }
    table.standard-table td { display: block; width: 100%; padding: 6px 0; border: none; }
    table.standard-table td.lot-num { font-size: 16px; border-bottom: 1px dashed #e2e8f0; padding-bottom: 8px; margin-bottom: 6px; }
    
    div.board-member.row-of-4, div.board-member.row-of-3 {
        display: block;
        width: 100%;
        margin: 10px 0;
    }
}

/* ==========================================================================
   Knollwood Hills Secure Modern Card Grid - ENGINE V12
   ========================================================================== */

/* Automatically forces the clean system font stack onto the entire page body */
.roster-page-body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
}

/* Desktop Table View Optimization Rules */
.roster-page-body table {
    width: 100%;
    max-width: 1000px;
    border-collapse: collapse;
    font-size: 14px;
    margin: 20px auto;
}

.roster-page-body th, 
.roster-page-body td {
    padding: 12px 10px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid #e2e8f0;
}

/* Forces all nested directory text to a clean, regular weight font stack */
.roster-page-body td, 
.roster-page-body span, 
.roster-page-body strong, 
.roster-page-body b,
.roster-page-body div,
.roster-page-body p,
.roster-page-body .contact-item {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
    font-weight: normal;
    color: #334155;
    font-size: 14px;
}

.roster-page-body th {
    font-weight: 700;
    color: #1a365d;
}

/* Wide Monitor Column Width Distributions */
.roster-page-body td:first-child { width: 8%; color: #0284c7; font-weight: 600; }
.roster-page-body td:nth-child(2) { width: 22%; }
.roster-page-body td:nth-child(3) { width: 22%; }
.roster-page-body td:nth-child(4) { width: 24%; }
.roster-page-body td:nth-child(5) { width: 24%; }

/* Mobile Layout Transformation Engine */
/* Modern Clean Information Cards - WITH LEFT ACCENT BLUE BORDER */
.roster-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 5px solid #1a365d !important; /* Locks in the matching deep blue accent bar */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    box-sizing: border-box;
    display: flex !important;
    flex-direction: row !important; /* Forces internal fields to spread out left-to-right */
    flex-wrap: wrap !important;     /* Lets text overflow smoothly on mobile devices */
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    width: 100% !important;         /* Spreads the cards wide across your screen grid */
}

.roster-grid {
    display: flex !important;
    flex-direction: column !important; /* Arranges the wide layout elements in a clean vertical row stacked view */
    width: 100% !important;
}


@media screen and (max-width: 850px) {
    
    .roster-page-body table, 
    .roster-page-body thead, 
    .roster-page-body tbody, 
    .roster-page-body th, 
    .roster-page-body td, 
    .roster-page-body tr { 
        display: block; 
        width: 100%; 
    }
    
    .roster-page-body thead { 
        display: none; 
    }
    
    /* Converts table rows into individual cards */
    .roster-page-body tr {
        margin-bottom: 20px;
        border: 1px solid #cbd5e1;
        border-radius: 8px;
        padding: 16px;
        background: #ffffff;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02);
        box-sizing: border-box;
    }
    
    .roster-page-body td {
        padding: 6px 0;
        border: none;
        width: 100%;
        text-align: left;
        box-sizing: border-box;
        white-space: normal;
    }
    
    /* Ensures all text breaks correctly on mobile viewports */
    .roster-page-body td span, 
    .roster-page-body td p, 
    .roster-page-body td a {
        display: inline;       
        white-space: normal;
    }

    /* Clean divider layout for the top Lot ID */
    .roster-page-body td:first-child {
        font-size: 18px;
        font-weight: bold;
        color: #1a365d;
        border-bottom: 2px solid #e2e8f0;
        padding-bottom: 6px;
        margin-bottom: 10px;
    }
}
