/* LA28 Sponsor Research */
/* Host City / Kindred Subjects */

:root {
    --text: #111827;
    --text-secondary: #6B7280;
    --text-muted: #9CA3AF;
    --bg: #FFFFFF;
    --bg-alt: #F9FAFB;
    --border: #E5E7EB;
    --radius: 8px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Typography */

h1, h2, h3, h4 {
    line-height: 1.3;
    font-weight: 600;
}

h2 {
    font-size: 1.4rem;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

h3 {
    font-size: 1.1rem;
    margin-top: 1.75rem;
    margin-bottom: 0.5rem;
}

h4 {
    font-size: 1rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

strong {
    font-weight: 600;
}

a {
    color: #2563EB;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

hr {
    border: none;
    border-top: 1px solid var(--border);
    margin: 2rem 0;
}

ul, ol {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

li {
    margin-bottom: 0.3rem;
}

li > ul, li > ol {
    margin-top: 0.3rem;
    margin-bottom: 0;
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    font-size: 0.9rem;
}

th, td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}

th {
    font-weight: 600;
    background: var(--bg-alt);
    white-space: nowrap;
}

/* === Index page === */

.site-header {
    padding: 3.5rem 2rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.site-title {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: var(--text);
}

.site-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
    font-weight: 400;
}

.site-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.75rem;
}

/* Tier sections */

.tier-section {
    padding: 2.5rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tier-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
    border-bottom: none;
    padding-bottom: 0;
    margin-top: 0;
}

.tier-count {
    color: var(--text-muted);
    font-weight: 400;
}

.tier-subtitle {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.tier-divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: 0 2rem;
    max-width: 1164px;
}

/* Card grid */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

/* Sponsor card */

.sponsor-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow 0.2s ease, transform 0.15s ease;
    text-decoration: none;
    color: inherit;
    display: block;
}

.sponsor-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.card-accent {
    height: 4px;
    transition: height 0.15s ease;
}

.sponsor-card:hover .card-accent {
    height: 6px;
}

.card-body {
    padding: 1.25rem;
}

.card-name {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.card-category {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
    margin-bottom: 0.75rem;
    display: block;
}

.card-excerpt {
    font-size: 0.875rem;
    color: #4B5563;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* === Sponsor page === */

.sponsor-nav {
    padding: 1.25rem 2rem 0.5rem;
    max-width: 900px;
    margin: 0 auto;
}

.sponsor-nav a {
    font-size: 0.875rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
}

.sponsor-nav a:hover {
    color: var(--text);
}

.sponsor-header {
    border-radius: 12px;
    padding: 2.5rem 2.5rem 2rem;
    margin: 0.75rem auto 2.5rem;
    max-width: 900px;
    color: #FFFFFF;
    position: relative;
    overflow: hidden;
}

.sponsor-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, transparent 60%);
    pointer-events: none;
}

.sponsor-header.dark-text {
    color: var(--text);
}

.sponsor-header.dark-text .sponsor-tier-badge {
    background: rgba(0, 0, 0, 0.1);
}

.sponsor-tier-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(255, 255, 255, 0.2);
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.sponsor-name {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 0.35rem;
    position: relative;
    z-index: 1;
}

.sponsor-category-label {
    font-size: 1rem;
    opacity: 0.8;
    font-weight: 400;
    position: relative;
    z-index: 1;
}

.sponsor-content {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 2.5rem 3rem;
}

/* Footer */

.site-footer {
    text-align: center;
    padding: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border);
    margin-top: 3rem;
}

/* Responsive */

@media (max-width: 768px) {
    .site-header {
        padding: 2.5rem 1.25rem 1.5rem;
    }

    .site-title {
        font-size: 1.6rem;
    }

    .tier-section {
        padding: 2rem 1.25rem;
    }

    .card-grid {
        grid-template-columns: 1fr;
    }

    .sponsor-header {
        padding: 2rem 1.5rem 1.5rem;
        border-radius: 0;
        margin-left: 0;
        margin-right: 0;
    }

    .sponsor-name {
        font-size: 1.5rem;
    }

    .sponsor-content {
        padding: 0 1.25rem 2rem;
    }

    .sponsor-nav {
        padding: 1rem 1.25rem 0.5rem;
    }

    table {
        font-size: 0.8rem;
    }

    th, td {
        padding: 0.4rem 0.5rem;
    }
}

@media (max-width: 480px) {
    .card-grid {
        grid-template-columns: 1fr;
    }
}

/* Print */

@media print {
    .sponsor-nav, .site-footer {
        display: none;
    }

    .sponsor-header {
        border-radius: 0;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }
}
