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

body {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 13px;
    line-height: 1.4;
    color: #444;
    padding: 40px 20px;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
}

h1 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin-bottom: 4px;
}

.tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #888;
    margin-bottom: 24px;
    font-size: 14px;
}

a {
    color: #2a6496;
    text-decoration: underline;
    text-decoration-color: #c5d5e4;
    text-underline-offset: 2px;
}

a:hover {
    text-decoration-color: #2a6496;
}

/* Table styles */
table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 8px 12px 8px 0;
    font-weight: 500;
    font-size: 11px;
    color: #888;
    border-bottom: 2px solid #000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

td {
    padding: 10px 12px 10px 0;
    border-bottom: 1px solid #eee;
    font-size: 12px;
}

td:first-child {
    font-weight: 500;
}

td:first-child a {
    color: #000;
    text-decoration: none;
}

td:first-child a:hover {
    text-decoration: underline;
    text-decoration-color: #000;
}

/* Domain tags - V2 Muted Breakout */
.tag {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 3px;
    font-size: 11px;
    font-weight: 500;
    color: white;
}

.tag + .tag {
    margin-top: 4px;
}

.tag-code { background: #5a9ea6; }
.tag-robotics { background: #d97a4a; }
.tag-math { background: #6a5a8a; }
.tag-web { background: #4a8bb3; }
.tag-games { background: #6b4a7a; }
.tag-alignment { background: #7a6a8a; }
.tag-knowledge { background: #5a7a8b; }
.tag-varied { background: #8a7a6a; }
.tag-infra { background: #6a7a7a; }
.tag-enterprise { background: #7a6a5a; }
.tag-finance { background: #4a6a5a; }
.tag-science { background: #5a6a8a; }
.tag-ml { background: #6a5a6a; }
.tag-capabilities { background: #8a5a6a; }
.tag-chips { background: #7a5a5a; }
.tag-longhorizon { background: #5a6a7a; }
.tag-computeruse { background: #6a7a6a; }
.tag-design { background: #8a6a7a; }

/* Footer */
footer {
    margin-top: 32px;
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    color: #888;
}

footer a {
    color: #2a6496;
    text-decoration-color: #c5d5e4;
}

footer a:hover {
    text-decoration-color: #2a6496;
}

/* Company page styles - V6 Compact Card */
/* Same container width as homepage so left edge stays consistent */

/* Site header for company pages - matches homepage vertical spacing */
.site-header {
    margin-bottom: 24px;
}

.site-header h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.site-header .site-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #888;
    font-size: 14px;
    margin-top: 4px;
}

.site-header a {
    color: inherit;
    text-decoration: none;
}

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

/* Inline header variant (V4 - smaller) */
.site-header-inline {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 24px;
}

.site-header-inline h1,
.site-header-inline h2 {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #000;
    margin: 0;
}

.site-header-inline .site-tagline {
    font-family: 'IBM Plex Sans', sans-serif;
    color: #888;
    font-size: 11px;
}

.site-header-inline .sep {
    color: #ccc;
}

.site-header-inline a {
    color: inherit;
    text-decoration: none;
}

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

/* Draft notice */
.draft-notice {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    color: #666;
    background: #f8f8f8;
    padding: 10px 14px;
    border-radius: 4px;
    margin-bottom: 20px;
}

.draft-notice a {
    color: #2a6496;
}

.note {
    font-family: 'IBM Plex Sans', sans-serif;
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
}

/* Back link variant (V1) */
.back {
    display: block;
    color: #888;
    font-size: 12px;
    margin-bottom: 24px;
}

.card {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    max-width: 500px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.card-header h1 {
    margin: 0;
}

.card-tagline {
    color: #666;
    font-size: 13px;
    margin-top: 4px;
}

.card-body {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px solid #f5f5f5;
}

.row:last-child {
    border-bottom: none;
}

.row .label {
    color: #888;
}

.row .value {
    text-align: right;
}

.row .value a {
    color: #2a6496;
}

.row .value a:hover {
    text-decoration-color: #2a6496;
}

/* Responsive - V3 Two-Line Rows + Labels on mobile */
@media screen and (max-width: 768px) {
    body {
        padding: 20px 16px;
    }

    /* Hide table header on mobile */
    thead {
        display: none;
    }

    /* Transform table to block layout */
    table, tbody, tr, td {
        display: block;
    }

    /* Each row becomes a card */
    tr {
        background: white;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        padding: 10px 12px;
        margin-bottom: 12px;
        position: relative;
    }

    /* Reset td styles for card layout */
    td {
        padding: 0;
        border-bottom: none;
    }

    /* Company name - inline */
    td:first-child {
        font-size: 12px;
        font-weight: 500;
        margin-bottom: 4px;
        display: inline;
    }

    /* Domain tags - inline after name */
    td:nth-child(2) {
        display: inline;
        margin-left: 6px;
    }

    /* Website - top right */
    td:nth-child(4) {
        position: absolute;
        top: 10px;
        right: 12px;
        font-size: 11px;
    }

    /* Team background with label */
    td:nth-child(3) {
        display: block;
        font-size: 10px;
        color: #444;
        margin-top: 8px;
        margin-bottom: 2px;
    }
    td:nth-child(3)::before {
        content: "Team Background: ";
        color: #999;
    }

    /* Founders with label */
    td:nth-child(5) {
        display: block;
        font-size: 10px;
        color: #444;
    }
    td:nth-child(5)::before {
        content: "Active Founders: ";
        color: #999;
    }

    .tag {
        font-size: 10px;
        padding: 2px 6px;
    }

    .tag + .tag {
        margin-top: 0;
        margin-left: 4px;
    }
}
