@font-face {
  font-family: 'Source Serif Pro';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/fonts/source-serif-pro/SourceSerifPro-Regular.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif Pro';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('vendor/fonts/source-serif-pro/SourceSerifPro-Italic.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif Pro';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('vendor/fonts/source-serif-pro/SourceSerifPro-SemiBold.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif Pro';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('vendor/fonts/source-serif-pro/SourceSerifPro-SemiBoldItalic.woff2') format('woff2');
}

@font-face {
  font-family: 'Source Serif Pro';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('vendor/fonts/source-serif-pro/SourceSerifPro-Bold.woff2') format('woff2');
}

body {
    font-family: 'Source Serif Pro', 'Georgia', 'Times New Roman', serif;
    line-height: 1.8;
    margin: 0;
    padding: 0;
    background-color: #fafafa;
    color: #333;
}

.content a,
.content a:visited,
.content a:hover,
.content a:active,
.content a:focus {
    color: #0000EE;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    background: white;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.header {
    background: #2c3e50;
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.header h1 {
    font-size: 2.5em;
    margin: 0;
    font-weight: 300;
    line-height: 1.2;
}

.header .subtitle {
    font-size: 1.2em;
    margin-top: 20px;
    opacity: 0.9;
    font-style: italic;
}

.content {
    padding: 40px;
    max-width: 800px;
    margin: 0 auto;
}

.toc {
    background: #f8f9fa;
    padding: 30px;
    border-left: 4px solid #3498db;
    margin: 30px 0;
}

.toc h2 {
    margin-top: 0;
    color: #2c3e50;
}

.toc ul {
    list-style: none;
    padding-left: 0;
}

.toc li {
    margin: 8px 0;
}

.toc a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.toc a:visited,
.toc a:active,
.toc a:focus,
.toc a:hover {
    color: #3498db;
}

.toc a:hover {
    text-decoration: underline;
}

.section {
    margin: 50px 0;
    page-break-inside: avoid;
}

.section h2 {
    color: #2c3e50;
    font-size: 2em;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 30px;
}

.section h3 {
    color: #34495e;
    font-size: 1.5em;
    margin-top: 40px;
    margin-bottom: 20px;
}

.section h4 {
    color: #333;
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.dashboard-container {
    margin: 30px auto;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    width: 800px;
    max-width: 100%;
}

.dashboard-header {
    background: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid #e0e0e0;
}

.dashboard-header h4 {
    margin: 0;
    color: #2c3e50;
    font-size: 1.1em;
}

.tableau-embed {
    width: 100%;
    height: 600px;
    border: none;
}

.methodology {
    background: #ecf0f1;
    padding: 25px;
    border-radius: 8px;
    margin: 25px 0;
}

.methodology h3 {
    color: #333;
    font-size: 1.2em;
    margin-top: 30px;
    margin-bottom: 15px;
}

.school-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin: 30px 0;
}

/* Center Curtis profile when grid has 2 columns */
@media (min-width: 660px) {
    .school-grid .school-card:nth-child(5) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
        transition: all 0.3s ease;
    }
}

@media (max-width: 659px) {
    .school-grid .school-card:nth-child(5) {
        grid-column: auto;
        max-width: none;
        margin: 0;
        transition: all 0.3s ease;
    }
}

.school-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
}

.school-card h4 {
    background: #34495e;
    color: white;
    margin: 0;
    padding: 15px;
    font-size: 1.1em;
}

.school-card h4 a,
.school-card h4 a:visited,
.school-card h4 a:active,
.school-card h4 a:focus {
    color: white !important;
    text-decoration: none;
}

.school-card h4 a:hover {
    color: white !important;
    text-decoration: underline;
    text-decoration-color: white;
}

.overture {
    font-size: 1.1em;
    line-height: 1.9;
    text-align: left;
    margin: 30px 0;
}

.key-findings {
    background: #e8f5e8;
    border-left: 4px solid #27ae60;
    padding: 20px;
    margin: 25px 0;
}

.key-findings h3 {
    color: #333;
    font-size: 1.2em;
    margin-top: 0;
    margin-bottom: 15px;
}

.methodology ul li,
.key-findings ul li,
.section > ul > li {
    margin-bottom: 1em;
}

.methodology ul li:last-child,
.key-findings ul li:last-child,
.section > ul > li:last-child {
    margin-bottom: 0;
}

.data-source {
    font-size: 0.9em;
    color: #7f8c8d;
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.code-section {
    margin-top: 20px;
    border: 1px solid #3c4043;
    border-radius: 6px;
    background: #2d2d2d;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.code-section summary {
    padding: 12px 16px;
    background: #393939;
    border-bottom: 1px solid #3c4043;
    cursor: pointer;
    font-weight: 500;
    color: #ffffff;
    border-radius: 6px 6px 0 0;
    transition: background-color 0.2s ease;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.code-section summary:hover {
    background: #444444;
}

.code-section[open] summary {
    border-radius: 6px 6px 0 0;
}

.code-section pre {
    margin: 0;
    padding: 0;
    background: #2d2d2d !important;
    border-radius: 0 0 6px 6px;
    overflow-x: auto;
}

.code-section pre[class*="language-"] {
    background: #2d2d2d !important;
    margin: 0;
    padding: 16px;
    border-radius: 0 0 6px 6px;
}

.code-section code {
    font-family: 'Fira Code', 'Monaco', 'Menlo', 'Ubuntu Mono', 'Consolas', monospace;
    font-size: 0.85em;
    line-height: 1.5;
}

.copy-button {
    background: none;
    border: 1px solid #666;
    border-radius: 4px;
    color: #ffffff;
    cursor: pointer;
    padding: 6px 8px;
    font-size: 12px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 4px;
}

.copy-button:hover {
    background: #555;
    border-color: #888;
}

.copy-button.copied {
    background: #27ae60;
    border-color: #27ae60;
}

.copy-icon {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

/* Footer Styles */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 40px;
    text-align: center;
}

.footer-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (min-width: 640px) {
    .footer-content {
        flex-direction: row;
        gap: 16px;
    }
    
    .footer-center {
        order: 2;
    }
    
    .socials {
        order: 3;
    }
}

.footer-left {
    text-align: center;
}

@media (min-width: 640px) {
    .footer-left {
        text-align: left;
    }
}


.back-to-top {
    color: white;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    padding: 8px 16px;
    border: 1.5px solid white;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.back-to-top:hover {
    color: #2c3e50;
    background: white;
    transform: translateY(-2px);
}

.copyright {
    margin: 0;
    color: white;
    font-size: 0.9em;
}

.socials {
    display: flex;
    gap: 16px;
}

.social-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    padding: 4px;
}

.social-icon:hover {
    color: white;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.social-icon svg {
    width: 100%;
    height: 100%;
}

/* Hold card shape until Tableau viz renders */
.tableauPlaceholder {
    min-height: 627px;
    z-index: 0;
}

/* Tableau viz renders on top of the placeholder */
.tableauPlaceholder .tableauViz {
    position: relative;
    z-index: 1;
}

/* Static image sits behind the viz as a background placeholder */
.tableauPlaceholder .mobile-static-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 0;
    border-radius: 0 0 8px 8px;
}

.tableauPlaceholder .mobile-static-image img {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
}

/* Landscape phones: remove fixed min-height since Tableau never loads */
@media (max-height: 500px) and (orientation: landscape) {
    .tableauPlaceholder {
        min-height: auto;
    }
}

/* Mobile Optimizations */
@media (max-width: 640px) {
    .footer-center {
        order: 3;
    }
}

@media (max-width: 450px) {
    body {
        font-size: 0.9em;
        line-height: 1.6;
    }
    
    .header {
        padding: 40px 20px;
    }
    
    .header h1 {
        font-size: 2em;
    }
    
    .header .subtitle {
        font-size: 1.1em;
    }
    
    .content {
        padding: 20px;
    }
    
    .section h2 {
        font-size: 1.6em;
    }
    
    .section h3 {
        font-size: 1.3em;
    }
    
    .section h4 {
        font-size: 1.1em;
    }
    
    .toc {
        padding: 20px;
    }
    
    .methodology {
        padding: 20px;
    }
    
    .key-findings {
        padding: 15px;
    }
    
    /* Hide dashboards on mobile */
    .tableauViz,
    .tableauViz-pending {
        display: none !important;
    }
    
    /* Show static images on mobile */
    .mobile-static-image {
        display: block !important;
        height: 627px;
        overflow: auto;
        border-radius: 0 0 8px 8px;
    }
    
    .mobile-static-image img {
        width: auto;
        height: auto;
        min-width: 800px;
        display: block;
        border-radius: 0;
    }
}