﻿/* TSIS Public Website - Institutional Styles */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #F7F5EF;
    color: #1C252B;
    line-height: 1.65;
}

a {
    color: inherit;
}

.site-header {
    background-color: #6E83A0;
    color: #FFFFFF;
    padding: 30px 8% 26px;
    border-bottom: 1px solid #D6C57C;
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    min-height: 145px;
}

.brand-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-title-line {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.brand-wordmark-inline {
    display: block;
    width: 165px;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-legal-name {
    display: block;
    color: #FFFFFF;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-tagline {
    margin: 9px 0 0 180px;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 600;
}

.brand-logo-large {
    display: block;
    width: 155px;
    height: 155px;
    object-fit: contain;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;

    transform: translate(-12px, -14px);
}

.site-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #D6C57C;
}

.site-nav a {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    margin-right: 28px;
    margin-bottom: 10px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
    border-bottom-color: #FFFFFF;
}





main {
    width: min(1120px, 86%);
    margin: 0 auto;
}

.hero {
    padding: 110px 0 85px;
}

.hero h1 {
    max-width: 850px;
    margin: 0 0 24px;
    font-size: clamp(2.5rem, 6vw, 4.4rem);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.hero p {
    max-width: 780px;
    margin: 0;
    font-size: 1.16rem;
}

.content-section {
    background-color: #FFFFFF;
    margin-bottom: 34px;
    padding: 54px 58px;
    border: 1px solid #D8D2C6; border-top: 3px solid #D6C57C;
    box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.content-section h2 {
    margin: 0 0 22px;
    font-size: 1.75rem;
}

.content-section p {
    max-width: 780px; line-height: 1.65;
    margin: 0 0 18px;
}

.content-section p:last-child {
    margin-bottom: 0;
}

#contact a {
    text-decoration: underline;
}

.site-footer {
    margin-top: 80px;
    background-color: #5E728B;
    color: #ffffff;
    padding: 34px 8%;
}

.site-footer p {
    max-width: 1180px;
    margin: 0 auto;
}

@media (max-width: 760px) {
    .site-header {
    background-color: #6E83A0;
    color: #FFFFFF;
    padding: 30px 8% 26px;
    border-bottom: 1px solid #D6C57C;
}

.site-header-inner {
    max-width: 1180px;
    margin: 0 auto;
}

.brand-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 42px;
    min-height: 145px;
}

.brand-copy {
    flex: 1 1 auto;
    min-width: 0;
}

.brand-title-line {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: nowrap;
}

.brand-wordmark-inline {
    display: block;
    width: 165px;
    height: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

.brand-legal-name {
    display: block;
    color: #FFFFFF;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    white-space: nowrap;
}

.brand-tagline {
    margin: 9px 0 0 180px;
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 600;
}

.brand-logo-large {
    display: block;
    width: 155px;
    height: 155px;
    object-fit: contain;
    flex: 0 0 auto;
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;

    transform: translate(-12px, -14px);
}

.site-nav {
    max-width: 1180px;
    margin: 0 auto;
    padding-top: 20px;
    border-top: 1px solid #D6C57C;
}

.site-nav a {
    display: inline-block;
    color: #FFFFFF;
    text-decoration: none;
    margin-right: 28px;
    margin-bottom: 10px;
    padding: 4px 0;
    border-bottom: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
    border-bottom-color: #FFFFFF;
}





    main {
        width: 90%;
    }

    .hero {
        padding: 70px 0 50px;
    }

.content-section {
    padding: 32px 26px;
}
}






.tashri-wordmark {
    display: block;
    width: 145px;
    height: auto;
    margin-top: 10px;
    object-fit: contain;
}




/* TSIS deliberate 6 + 6 institutional navigation */
.site-nav-row {
    display: grid;
    grid-template-columns: repeat(6, max-content);
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.site-nav-row + .site-nav-row {
    margin-top: 12px;
}

.site-nav-row a {
    margin-right: 0;
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .site-nav-row {
        grid-template-columns: repeat(3, max-content);
        row-gap: 12px;
    }
}

@media (max-width: 600px) {
    .site-nav-row {
        grid-template-columns: repeat(2, max-content);
    }
}


/* =========================================================
   TSIS FINAL MOBILE HEADER CORRECTION
   Founder-approved desktop baseline remains unchanged.
   ========================================================= */

@media (max-width: 760px) {

    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }

    .site-header {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 28px 18px 24px;
    }

    .site-header-inner {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        box-sizing: border-box;
    }

    .brand-row {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        width: 100%;
        min-height: 0;
        gap: 14px;
    }

    .brand-copy {
        width: 100%;
        min-width: 0;
        text-align: center;
    }

    .brand-title-line {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        flex-wrap: wrap;
    }

    .brand-wordmark-inline {
        display: block;
        width: 140px;
        max-width: 55vw;
        height: auto;
        margin: 0 auto;
        flex: 0 0 auto;
    }

    .brand-legal-name {
        display: block;
        width: 100%;
        max-width: 100%;
        font-size: 1.55rem;
        line-height: 1.2;
        text-align: center;
        white-space: normal;
        overflow-wrap: anywhere;
    }

    .brand-tagline {
        margin: 8px 0 0;
        font-size: 1rem;
        text-align: center;
    }

    .brand-logo-large {
        display: block;
        width: 112px;
        height: 112px;
        margin: 0 auto;
        transform: none;
        flex: 0 0 auto;
    }

    .site-nav {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding-top: 16px;
    }

    .site-nav-row {
        width: 100%;
        max-width: 100%;
    }

    .site-nav-row a {
        margin: 0;
        white-space: normal;
    }
}

@media (max-width: 600px) {

    .site-nav-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        column-gap: 18px;
        row-gap: 12px;
    }

    .brand-legal-name {
        font-size: 1.4rem;
    }
}
