:root {
    --tu-blue: #2F57B2;
}

body {
    margin: 0;
    font-family: system-ui, sans-serif;
    background: rgba(0, 84, 159, 0.05);
    color: #000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-header {
    flex-shrink: 0;
    background: var(--tu-blue);
    color: #fff;
    padding: 1.5rem 0;
}

.site-header-inner {
    width: min(1300px, calc(100% - 4rem));
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 0 2rem;
}

main {
    flex: 1;
    padding-bottom: 2rem;
    width: min(1200px, calc(100% - 4rem));
    margin: 0 auto;
}

.navbar {
    display: flex;
    justify-content: center;
    padding: 0;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    flex-direction: column;
    padding: 0.35rem 0.6rem;
    border: 2px solid #fff;
    border-radius: 8px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}

.nav-toggle:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
}

.nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.nav-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.nav-links li {
    display: inline;
}

.nav-title {
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: 0.4px;
    color: #fff;
    text-decoration: none;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.3rem;
    padding: 0.4rem;
    border: 2px solid transparent;
    border-radius: 6px;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-links a:hover {
    color: var(--tu-blue);
    background: #fff;
    border-color: #fff;
}

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

body p {
    font-size: 1.15rem;
    color: #333;
}

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 0 2rem;
    width: min(1200px, calc(100%-4rem));
    margin: 0 auto;
}
.footer-tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    padding: 1.5rem 2rem;
    width: min(1200px, calc(100%-4rem));
    margin: 0 auto;
}
.tile {
    background: white;
    border-top: 4px solid var(--tu-blue);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.tile.left-align-tile {
    text-align: left;
}

.legal-page.single-tile .tile {
    margin-top: 2rem;
}

.tile h2 {
    font-size: 2.5rem;
    margin: 0;
}

.metric-tile {
    animation: metricFloat 0.9s ease forwards;
    opacity: 0;
}

.metric-tile:nth-of-type(1) { animation-delay: 0.1s; }
.metric-tile:nth-of-type(2) { animation-delay: 0.2s; }
.metric-tile:nth-of-type(3) { animation-delay: 0.3s; }
.metric-tile:nth-of-type(4) { animation-delay: 0.4s; }

@keyframes metricFloat {
    0% {
        transform: translateY(20px) scale(0.98);
        opacity: 0;
        box-shadow: 0 0 0 rgba(0,0,0,0);
    }
    60% {
        transform: translateY(-6px) scale(1.02);
        opacity: 1;
        box-shadow: 0 18px 28px rgba(0, 84, 159, 0.18);
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
        box-shadow: 0 10px 20px rgba(0,0,0,0.08);
    }
}

.metric-hitlist {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.metric-hitlist-content {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.metric-hitlist-info {
    flex: 2 1 0;
    min-width: 0;
}

.metric-hitlist-overlap {
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-right: 2.25rem;
}

.metric-hitlist-wide {
    grid-column: 1 / -1;
}

.hitlist-action-group {
    margin-top: auto;
    display: flex;
    width: 100%;
}

.hitlist-action-group a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 2px solid var(--tu-blue);
    color: var(--tu-blue);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease;
    width: 100%;
    justify-content: center;
}

.hitlist-action-group a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.hitlist-action-group a:hover {
    background: var(--tu-blue);
    color: #fff;
}

.overlap-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.overlap-tile h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.overlap-metric-row {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    column-gap: 1.4rem;
    align-items: start;
}

.overlap-subtile {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.overlap-subtile-total {
    text-align: left;
    align-items: flex-start;
}

.overlap-subtile-overlap {
    text-align: center;
    align-items: center;
}

.hitlist-total {
    font-size: 2.4rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-align: left;
    color: var(--tu-blue);
    justify-self: start;
    margin-top: 1.5rem;
}

.overlap-metric-row .overlap-circle {
    width: 120px;
    height: 120px;
    justify-self: center;
}

.subtitle-left-aligned {
    text-align: left;
    align-self: stretch;
}

.hr-long,
.hr-long-topmargin {
    width: 100%;
    text-align: left;
    margin-left: 0;
    margin-top: -1rem;
}

.hr-long-topmargin {
    margin-top: 1rem;
}

.overlap-circle {
    width: 140px;
    height: 140px;
}

.overlap-circle svg {
    width: 100%;
    height: 100%;
}

.overlap-bg,
.overlap-progress {
    fill: none;
    stroke-width: 8;
}

.overlap-bg {
    stroke: rgba(0, 84, 159, 0.15);
}

.overlap-progress {
    stroke: var(--tu-blue);
    stroke-linecap: round;
    transform: rotate(-90deg);
    transform-origin: 50% 50%;
    stroke-dasharray: 0 999;
}

.overlap-circle text tspan {
    font-size: 1.6rem;
    fill: var(--tu-blue);
    font-weight: 600;
}

.overlap-caption {
    margin: 0 0 0.6rem;
}

.hitlist-action-group a svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
}

.hitlist-action-group a:hover {
    background: var(--tu-blue);
    color: #fff;
}

.metric-hitlist-info h2 {
    text-align: left;
}

.metric-hitlist-info h2 {
    text-align: left;
}


.hitlist-download:hover {
    background: var(--tu-blue);
    color: #fff;
}

.tile-plot-group,
.tile-plot-full {
    grid-column: 1 / -1;
    text-align: left;
}

.tile-plot-group h2 {
    font-size: 1.6rem;
    margin-bottom: 1.5rem;
}

.tile-row {
    grid-column: 1 / -1;
    display: grid;
    gap: 1.5rem;
}

.tile-row-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.tile-row-two-thirds {
    grid-template-columns: 2fr 1fr;
}

.tile-row-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tile-row-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 900px) {
    .tile-row-two {
        grid-template-columns: 1fr;
    }

    .tile-row-two-thirds {
        grid-template-columns: 1fr;
    }

    .tile-row-three {
        grid-template-columns: 1fr;
    }

    .tile-row-four {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .overlap-metric-row {
        grid-template-columns: 1fr;
        row-gap: 0.4rem;
    }

    .overlap-label-row,
    .overlap-values-row {
        grid-template-columns: 1fr;
    }

    .metric-hitlist-content {
        flex-direction: column;
        align-items: stretch;
    }

    .metric-hitlist-overlap {
        align-items: flex-start;
        text-align: left;
        margin-left: 0;
    }
}

@media (max-width: 600px) {
    .tile-row-four {
        grid-template-columns: 1fr;
    }
}

.tile-plot-half {
    text-align: left;
}

.tile-plot-half h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.plot-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.plot-row figure {
    margin: 0;
    text-align: center;
}

.plot-row img,
.tile-plot-full img,
.tile-plot-half img,
.plot-row iframe,
.tile-plot-full iframe,
.tile-plot-half iframe {
    width: 100%;
    border-radius: 12px;
}

.plot-embed {
    border: 0;
    display: block;
}

.plot-row figcaption {
    margin-top: 0.5rem;
    font-size: 1.15rem;
    color: #333;
}

.plot-metric-grid {
    margin-top: 1.5rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.plot-metric {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
}

.plot-metric h3 {
    font-size: 2rem;
    margin: 0;
}

.as-checker {
    margin-top: 2rem;
    /**border-top: 2px solid rgba(0, 84, 159, 0.1);**/
    padding-top: 1.5rem;
}

.as-checker-submit:hover {
    background: var(--tu-blue);
    color: #fff;
}

.as-checker-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.as-checker-form label {
    font-weight: 600;
}

.as-checker-form input {
    flex: 1;
    min-width: 140px;
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.2);
    font-size: 1rem;
}

.as-checker-submit {
    border: 2px solid var(--tu-blue);
    border-radius: 999px;
    padding: 0.5rem 1.4rem;
    background: transparent;
    color: var(--tu-blue);
    font-weight: 600;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.2s ease, color 0.2s ease;
}

.as-checker-result {
    margin: 1rem 0 0 0;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    font-weight: 600;
    display: none;
    background: #f4f6fa;
    border: 2px solid rgba(0,0,0,0.1);
    color: #333;
    width: 100%;
    box-sizing: border-box;
}

.as-checker-result.visible {
    display: flex;
}

.as-checker-result.affected {
    background: #ffe1e1;
    border: 2px solid #cc1f1f;
    color: #8b0000;
}

.as-checker-result.safe {
    background: #def7e0;
    border: 2px solid #1c7c3a;
    color: #0b4c20;
}

.as-checker-result.error {
    background: #fff3cd;
    border: 2px solid #e0a800;
    color: #7a5a00;
}

.tile-reference {
    grid-column: 1 / -1;
    text-align: left;
}

.logo-tile {
    padding: 1.5rem 2rem;
}

.logo-tile h3 {
    text-align: left;
    margin: 0 0 1rem;
}

.logo-grid + h3 {
    margin-top: 1.5rem;
}

.logo-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    gap: 1.5rem 2.5rem;
}

.logo-grid img {
    max-height: 80px;
    width: auto;
    max-width: 240px;
    object-fit: contain;
}

.logo-grid img.logo-small {
    max-height: 40px;
    max-width: 160px;
}

.logo-grid img.logo-medium{
    max-height: 60px;
    max-width: 160px;
}

.tile-reference h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
}

.tile-reference .reference-entry {
    background: #eff1f5;
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.tile-reference pre {
    background: transparent;
    color: var(--tu-blue);
    border-radius: 8px;
    padding: 0;
    margin: 0;
    flex: 1;
    overflow-x: auto;
}

.copy-reference {
    border: 2px solid var(--tu-blue);
    color: var(--tu-blue);
    background: #fff;
    border-radius: 999px;
    padding: 0.4rem 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-weight: 600;
}

.copy-reference svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
}

.copy-reference:hover {
    background: var(--tu-blue);
    color: #fff;
}

.tile-plot-full h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}
.charts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    padding: 2rem;
}

.chart-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    border-top: 4px solid var(--tu-blue);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
}

.chart-card h3 {
    color: #000;
}

.artifact-hero {
    max-width: 900px;
    margin: 3rem auto 2rem;
    padding: 0 2rem;
    text-align: center;
}

.artifact-icon-row {
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.artifact-icon-row .artifact-icon {
    margin-bottom: 0;
    height: 90px;
}

.artifact-badge-panel {
    background: #fff;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
    border: none;
    box-shadow: none;
    height: 90px;
    padding: 0 1rem;
    flex-wrap: nowrap;
}

.artifact-badge-panel img {
    max-width: 70px;
    max-height: 70px;
}

.artifact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 3rem;
}

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

.artifact-tile {
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top: 4px solid var(--tu-blue);
}

.artifact-tile-full {
    grid-column: 1 / -1;
}

.artifact-tile-horizontal {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.artifact-tile-horizontal .artifact-icon {
    margin-bottom: 0;
    flex-shrink: 0;
}

.artifact-tile-horizontal .artifact-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    width: 100%;
}

.artifact-tile-horizontal h2 {
    margin-top: 0;
}

.heading-centered {
    text-align: center;
}

@media (max-width: 600px) {
    .artifact-tile-horizontal {
        flex-direction: column;
        align-items: flex-start;
    }

    .artifact-tile-horizontal .artifact-icon {
        margin-bottom: 0.75rem;
    }
}

.artifact-tile h2 {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

.artifact-tile ul {
    padding-left: 1.2rem;
}

.artifact-icon {
    width: 90px;
    height: 90px;
    border-radius: 20px;
    background: rgba(0, 84, 159, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.artifact-icon img {
    max-width: 70px;
    max-height: 70px;
}

.contact-hero {
    margin: 1.2rem auto 0.8rem;
    padding: 0 2rem;
}

.contact-hero-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.3rem 2rem;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top: 4px solid var(--tu-blue);
    text-align: center;
}

.contact-hero-card h1 {
    font-size: 2.5rem;
    margin-bottom: 0rem;
    margin-top: 0rem;
}

.contact-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    padding: 0 2rem 3rem;
}

@media (max-width: 960px) {
    .contact-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

.contact-card {
    background: #fff;
    border-radius: 18px;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    border-top: 4px solid var(--tu-blue);
}

.contact-headshot {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(0, 84, 159, 0.2);
    margin-bottom: 1rem;
}

.contact-role {
    margin: 0.2rem 0 0.8rem;
    font-weight: 600;
    color: var(--tu-blue);
}

.contact-mail {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    border: 2px solid var(--tu-blue);
    color: var(--tu-blue);
    text-decoration: none;
    font-weight: 600;
}

.contact-mail:hover {
    background: var(--tu-blue);
    color: #fff;
}

.site-footer {
    background: #fff;
    text-align: center;
    padding: 1.5rem 1rem;
    border-top: 1px solid rgba(0, 84, 159, 0.2);
    flex-shrink: 0;
}

.site-footer a {
    color: var(--tu-blue);
    text-decoration: none;
    font-weight: 600;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 700px) {
    .site-header-inner {
        flex-direction: column;
        text-align: center;
    }

    .navbar {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 900px) {
    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .navbar {
        flex-basis: 100%;
        width: 100%;
        justify-content: center;
    }

    .nav-links {
        display: none;
        flex-direction: column;
        align-items: center;
        gap: 0.5rem;
        width: 100%;
        margin-top: 0.75rem;
    }

    .site-header.nav-open .nav-links {
        display: flex;
    }
}
