body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    margin: 2rem;
    padding-left: 175px;
    background: #f7f8fa;
    color: #555;
}

.page-header {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10;
}

.page-logo {
    height: 48px;
    width: auto;
}

h1 {
    margin-bottom: 1.5rem;
}

.releases-grid {
    display: grid;
    gap: 1.5rem;
}

.release-card {
    background: white;
    border-radius: 10px;
    padding: 1rem 1.25rem 1.25rem 1.25rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    position: relative;
}

.version {
    font-size: 1.8rem;
    font-weight: 800;
}

.header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.title {
    font-weight: 600;
    color: #0366d6;
}

.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 6px;
    font-weight: 600;
    color: white;
    margin-left: 0.5rem;
}

.badge.release {
    background: #1f883d;
}

.badge.prerelease {
    background: #d1242f;
}

.download a {
    text-decoration: none;
    color: #0366d6;
    font-weight: 600;
}

.digest {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    word-break: break-all;
}

.info-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    column-gap: 0.6rem;
    align-items: baseline;
    margin-bottom: 0.4rem;
}

.label {
    text-align: left;
    white-space: nowrap;
}

.download {
    margin-top: 0.5rem;
}

.copy-sha-btn {
    font-size: 0.75rem;
    padding: 0.15rem 0.4rem;
    border-radius: 6px;
    border: 1px solid #ccc;
    cursor: pointer;
    background: #f6f8fa;
}

.copy-sha-btn:hover {
    background: #eef1f4;
}

.build-time {
    font-size: 0.8em;
    margin-top: 1em;
}

/* Inline expandable release notes */

.notes-toggle {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    user-select: none;
}

/* Title: normal text, not clickable-looking */
.notes-title {
    font-weight: 600;
}

/* The (Show)/(Hide) control */
.notes-state {
    display: inline-flex;
    font-size: 0.8rem;
    align-items: center;
    gap: 0.25rem;
    color: #0366d6;
    cursor: pointer;
    font-weight: 500;
}

/* Hover underline ONLY on the text, not the chevron */
.notes-state .state-text:hover {
    text-decoration: underline;
}

/* Chevron icon */
.notes-state .chevron {
    transform: rotate(-90deg);
    display: inline-block;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
    text-decoration: none;
    /* ensure never underlined */
}

/* Rotate when open */
.notes-toggle.open .chevron {
    transform: rotate(0deg);
}

/* Notes panel */
.release-notes {
    margin: 0.5rem 0;
    padding: 0.75rem 1rem;
    border: 1px solid #d0d7de;
    border-radius: 6px;
    font-size: 0.85rem;
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.release-notes.open {
    display: block;
}

/* Inline code */
code {
    background: #f0f0f0;
    color: #24292f;
    padding: 0.15em 0.3em;
    border-radius: 4px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85em;
}

/* Code blocks */
pre {
    background: #f0f0f0;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    margin: 0.75rem 0;
}

pre code {
    background: none;
    /* prevent double background */
    padding: 0;
    font-size: 0.85rem;
    line-height: 1.45;
}