/* ==========================================================================
   DESKTOP GLOBAL HEADER, H1 & PREDICTABLE MENU CENTERING
   ========================================================================= */
@media (min-width: 769px) {
    
    /* 1. Perfect Horizontal Centering for Inner Page H1 Titles */
    body:not(.home) h1,
    body:not(.home) .tta-hero h1,
    body:not(.home) .tta-container h1 {
        text-align: center !important;
        align-self: center !important;
        margin-left: auto !important;
        margin-right: auto !important;
        display: block !important;
        width: 100% !important;
    }

    /* 2. Isolated Text-List Navigation Centering (Zero Global Theme Overrides) */
    .main-navigation ul, 
    nav ul, 
    #site-navigation ul {
        display: flex !important;
        justify-content: center !important; 
        align-items: center !important;
        flex-direction: row !important;
        margin: 0 auto !important; 
        padding: 0 !important;
        list-style: none !important;
    }

    /* Consistent horizontal padding parameters for your links */
    .main-navigation li, 
    nav li, 
    #site-navigation li,
    .menu-item {
        display: inline-block !important;
        width: auto !important;
        padding: 0 24px !important; 
        margin: 0 !important;
        border-bottom: none !important; 
        white-space: nowrap !important;
    }

    .main-navigation a, 
    nav a, 
    #site-navigation a,
    .menu-item a {
        display: inline-block !important;
        width: auto !important;
    }

    /* 3. SAFETY GUARANTEE: Keeps all H2s, body prose, and the homepage H1 left-aligned */
    .tta-hero h2,
    .tta-hero p,
    .tta-hero p.tta-intro-lead,
    .tta-hero .tta-status-banner,
    body.home h1,
    body.home .tta-hero h1 {
        text-align: left !important;
        align-self: flex-start !important;
        margin-left: 0 !important;
        margin-right: auto !important;
    }
    
    /* Restricts reading path lines to prevent cognitive tracking fatigue */
    .tta-hero p {
        max-width: 850px;
    }
}

/* ==========================================================================
   MOBILE NAVIGATION MENU ACCESS TARGET COMPLIANCE (The Spacing Fix)
   ========================================================================= */
@media (max-width: 768px) {
    
    /* Targets mobile list containers to separate tightly packed stacked menu text rows */
    .main-navigation li, 
    nav li, 
    #site-navigation li, 
    .menu-item {
        padding: 12px 24px !important; /* Injects vertical separation spaces between rows */
        margin: 0 !important;
        display: block !important; /* Re-enforces stable stacking rules */
        width: 100% !important;
    }

    /* Expands the physical invisible clickable field to match WCAG 44x44px requirements */
    .main-navigation a, 
    nav a, 
    #site-navigation a, 
    .menu-item a {
        display: block !important;
        width: 100% !important;
        padding: 8px 0 !important; /* Increases target accuracy bounds to prevent accidental links */
    }

    /* Explicitly locks the H2 subtitle under the H1 to left-aligned on the mobile homepage only */
    body.home .tta-hero h2 {
        text-align: left !important;
        margin-left: 0 !important;
        margin-right: auto !important;
        align-self: flex-start !important;
    }
}

/* ==========================================================================
   TAS THE ARTIST ACCESSIBILITY ECOSYSTEM STANDARD STYLESHEET
   Signature Purple & Dark Theme Framework
   ========================================================================== */

:root {
    --bg-color: #432f54;
    --card-bg: #121212;
    --text-main: #fdfbf7;
    --text-muted: #ffffff;
    --border: #89729e;
    --primary: #fdfbf7;
    --primary-hover: #432f54;
    --btn-text: #fdfbf7;
}

/* Base Accessibility & Fluid Box Sizing Reset */
.tta-wrapper *, 
.tta-wrapper *::before, 
.tta-wrapper *::after { 
    box-sizing: border-box; 
    max-width: 100%; 
}

/* STRICT SITE-WIDE ARIAL ENFORCEMENT & ELIMINATION OF ITALICS */
.tta-wrapper, 
.tta-wrapper * { 
    font-family: Arial, sans-serif !important; 
    font-style: normal !important;
}

/* Main Layout Boundaries — Eradicated 100vw horizontal overflow bugs */
.tta-wrapper { 
    background-color: var(--bg-color); 
    color: var(--text-main); 
    line-height: 1.6; 
    padding: 60px 20px; 
    font-size: 22px; 
    width: 100%; 
    max-width: 100%; 
    overflow-x: hidden; 
    overflow-wrap: break-word; 
    word-wrap: break-word; 
}

.tta-container { 
    max-width: 1000px; 
    margin: 0 auto; 
    width: 100%; 
}

/* Skip Navigation Link */
.tta-wrapper .skip-link { 
    position: absolute; 
    top: -100%; 
    left: 0; 
    background: var(--card-bg); 
    color: var(--primary); 
    padding: 12px 20px; 
    font-size: 1.1rem; 
    z-index: 1000; 
    text-decoration: underline; 
    font-weight: bold; 
    border: 2px solid var(--border); 
}

.tta-wrapper .skip-link:focus { 
    top: 0; 
}

/* Accessible Content Links */
.tta-wrapper p a { 
    color: var(--primary); 
    text-decoration: underline; 
    text-underline-offset: 4px; 
    font-weight: bold; 
    transition: color 0.2s ease; 
}

.tta-wrapper p a:hover { 
    color: var(--border); 
}

.tta-wrapper p a:focus-visible { 
    outline: 3px solid var(--primary); 
    outline-offset: 4px; 
    border-radius: 2px; 
}

/* Hero Component Header Elements */
.tta-hero { 
    margin-bottom: 70px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
}

.tta-hero .hero-main-title { 
    font-size: 3.8rem; 
    color: var(--text-main); 
    margin: 0; 
    letter-spacing: 0.5px; 
    line-height: 1.1; 
    text-align: center; 
}

.tta-hero .tta-hero-subtitle { 
    font-size: 1.35rem; 
    text-transform: uppercase; 
    letter-spacing: 2px; 
    color: var(--primary); 
    font-weight: bold; 
    margin: 0; 
    text-align: center; 
    display: block; 
}

.tta-hero p { 
    color: var(--text-muted); 
    font-size: 1.35rem; 
    margin: 0 auto 15px auto; 
    max-width: 850px; 
    text-align: center; 
}

/* Hero Structured Badges */
.hero-tags { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 12px; 
    list-style: none; 
    padding: 0; 
    margin-top: 5px; 
}

.hero-tags li { 
    font-size: 0.95rem; 
    font-weight: bold; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    padding: 8px 16px; 
    border: 2px solid #333333; 
    color: #ffffff; 
    border-radius: 50px; 
    background-color: #333333; 
}

/* Structural Page Sections */
.tta-section { 
    margin-bottom: 60px; 
}

.tta-section-title { 
    font-size: 2rem; 
    margin-top: 0; 
    margin-bottom: 30px; 
    padding-bottom: 15px; 
    border-bottom: 2px solid var(--border); 
    color: var(--text-main); 
    font-weight: bold; 
}

.tta-section-intro { 
    font-size: 1.35rem; 
    color: var(--text-muted); 
    margin-top: -15px; 
    margin-bottom: 30px; 
    max-width: 850px; 
}

/* Metadata Parameters Grid */
.overview-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); 
    gap: 15px; 
    margin-top: 30px; 
}

.overview-cell { 
    background: var(--card-bg); 
    border: 2px solid var(--border); 
    border-radius: 4px; 
    padding: 20px; 
}

.overview-cell .cell-label { 
    font-size: 0.95rem; 
    text-transform: uppercase; 
    color: var(--primary); 
    font-weight: bold; 
    display: block; 
    margin: 0 0 5px 0; 
    letter-spacing: 1px; 
}

.overview-cell .cell-value { 
    font-size: 1.25rem; 
    color: var(--text-main); 
    font-weight: bold; 
    margin: 0; 
}

/* Fluid Card Matrix Component */
.tta-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); 
    gap: 30px; 
}

.tta-card { 
    background: var(--card-bg); 
    border: 2px solid var(--border); 
    border-radius: 4px; 
    padding: 30px; 
    transition: transform 0.2s, border-color 0.2s; 
    display: flex; 
    flex-direction: column; 
}

.tta-card:hover, 
.tta-card:focus-within { 
    transform: translateY(-5px); 
    border-color: var(--primary); 
}

.tta-card-tag { 
    font-size: 0.9rem; 
    text-transform: uppercase; 
    font-weight: bold; 
    background-color: var(--primary); 
    color: #352646; 
    padding: 6px 16px; 
    border-radius: 50px; 
    display: inline-block; 
    align-self: flex-start; 
    margin: 0 0 20px 0; 
    letter-spacing: 1px; 
}

.tta-card-title { 
    font-size: 1.4rem; 
    margin-top: 0; 
    margin-bottom: 15px; 
    color: var(--text-main); 
    line-height: 1.4; 
    font-weight: bold; 
}

.tta-card-desc { 
    color: var(--text-muted); 
    font-size: 1.15rem; 
    flex-grow: 1; 
    margin: 0; 
}

.big-num { 
    font-size: 4rem; 
    color: var(--primary); 
    font-weight: bold; 
    margin: 0 0 10px 0; 
    line-height: 1; 
}

/* Custom Table-Free Fluid Two-Column Alignment Blocks */
.category-heading { 
    font-size: 1.6rem; 
    color: var(--text-main); 
    margin: 40px 0 20px 0; 
    font-weight: bold; 
}

.column-wrapper { 
    display: flex; 
    gap: 30px; 
    margin-bottom: 40px; 
}

.column-box { 
    flex: 1; 
    background: var(--card-bg); 
    border: 2px solid var(--border); 
    border-radius: 4px; 
    padding: 30px; 
    min-width: 0;
}

.column-box-title { 
    font-size: 1.2rem; 
    color: var(--primary); 
    margin: 0 0 20px 0; 
    padding-bottom: 12px; 
    border-bottom: 2px solid var(--border); 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    font-weight: bold; 
}

.column-list { 
    list-style: none; 
    padding: 0; 
    margin: 0; 
}

.column-list li { 
    color: var(--text-muted); 
    font-size: 1.2rem; 
    line-height: 1.5; 
    margin-bottom: 20px; 
    padding-left: 20px; 
    position: relative; 
}

.column-list li:last-child { 
    margin-bottom: 0; 
}

.column-list li::before { 
    content: '▪'; 
    position: absolute; 
    left: 0; 
    color: var(--primary); 
    font-size: 1.3rem; 
    line-height: 1.3; 
}

/* Strategic Text Instruction Layout Component */
.tta-instruction-card { 
    padding: 35px 40px; 
    margin: 50px 0; 
    background: var(--card-bg); 
    border-radius: 0 4px 4px 0; 
    border: 2px solid var(--border); 
    border-left: 6px solid var(--primary); 
}

.tta-instruction-card p { 
    font-size: 1.6rem; 
    font-weight: bold; 
    color: var(--text-main); 
    margin: 0; 
    line-height: 1.6; 
}

/* Output Deliverables Matrix */
.deliverables { 
    display: flex; 
    flex-wrap: wrap; 
    gap: 12px; 
    list-style: none; 
    padding: 0; 
    margin-top: 20px; 
}

.deliverables li { 
    background: var(--primary); 
    color: #352646; 
    font-size: 1.05rem; 
    font-weight: bold; 
    padding: 12px 24px; 
    border-radius: 4px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    text-align: center; 
}

/* ==========================================================================
   ACCESSIBLE HEADER SEARCH BAR ARCHITECTURE (Anti-Bleeding)
   ========================================================================== */
.tta-header-search {
    width: 100%;
    max-width: 350px;
    margin: 0;
}

/* Hides search labels visually but preserves structural metadata for screen reader nodes */
.tta-header-search .screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.tta-search-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    position: relative;
}

.tta-search-field {
    width: 100%;
    background-color: var(--card-bg);
    color: var(--text-main);
    border: 2px solid var(--border);
    border-radius: 4px;
    padding: 12px 48px 12px 16px;
    font-size: 1rem; /* Locked to 1rem to halt iOS layout scale zoom tracking bugs */
    transition: border-color 0.2s ease, outline 0.2s ease;
    margin: 0;
}

.tta-search-field::placeholder {
    color: var(--text-muted);
    opacity: 0.8;
}

.tta-search-field:focus {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-color: var(--primary);
}

.tta-search-submit {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: var(--primary);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background-color 0.2s ease;
}

.tta-search-submit:hover {
    background-color: rgba(137, 114, 158, 0.2);
}

.tta-search-submit:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    background-color: rgba(137, 114, 158, 0.2);
}

/* Motion Mitigation Overrides */
@media (prefers-reduced-motion: reduce) { 
    .tta-card, 
    .tta-card:hover, 
    .tta-wrapper p a,
    .tta-search-field, 
    .tta-search-submit { 
        transform: none !important;
        transition: none !important; 
        box-shadow: none !important;
    } 
}
/* ==========================================================================
   HOMEPAGE PROSE ALIGNMENT RESTORATION
   ========================================================================= */
body.home p,
body.home .tta-hero p,
body.home .tta-container p,
body.home .tta-section-intro {
    text-align: left !important;
    margin-left: 0 !important;
    margin-right: auto !important;
}