 :root {
    --brand: #1677c8;
    --brand-dark: #0b5e9f;
    --ink: #1f2933;
    --muted: #52616b;
    --surface: #ffffff;
    --surface-muted: #f5f8fb;
    --border: #d6e1ea;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--ink);
    line-height: 1.6;
    background: var(--surface-muted);
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(220px, 1fr);
    grid-template-rows: 1fr auto; /* Content row expands, footer row stays compact */
    gap: 28px;
    min-height: 100vh;
    margin: 0;
    padding: 32px clamp(24px, 6vw, 80px);
    box-sizing: border-box;
}

.main-content {
    grid-column: 1;
    grid-row: 1;
    max-width: 940px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(31, 41, 51, 0.06);
    padding: clamp(28px, 4vw, 52px);
}

.side-bar {
    grid-column: 2;
    grid-row: 1;
    position: sticky;
    top: 32px;
    align-self: start;
    height: auto;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
}

h1 {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 2rem;
    color: #102a43;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    line-height: 1.2;
}

h1 img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

h3 {
    margin-top: 2.25rem;
    margin-bottom: 0.75rem;
    color: #102a43;
    font-size: 1.3rem;
}

p, ul {
    margin-top: 0;
    margin-bottom: 1rem;
}

a {
    color: var(--brand-dark);
    text-underline-offset: 0.16em;
}

a:hover {
    color: var(--brand);
}

a:focus-visible {
    outline: 3px solid #8bc5f1;
    outline-offset: 3px;
    border-radius: 2px;
}

.release-history {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.release-history th,
.release-history td {
    padding: 12px 14px;
    vertical-align: top;
    border-bottom: 1px solid var(--border);
}

.release-history th {
    background: #eaf4fb;
    color: #102a43;
}

.release-history tr:last-child td {
    border-bottom: 0;
}

.release-history li {
    list-style-type: none;
    padding-left: 0;
    margin-left: 0;
}

footer{
    grid-column: 1 / 3;
    grid-row: 2;
    color: var(--muted);
    border-top: 1px solid var(--border);
    padding-top: 18px;
}

footer a + a::before {
    content: "·";
    margin: 0 0.65rem;
    color: var(--muted);
}

.link-title{
    color: #102a43;
    font-size: 1.1rem;
    font-weight: 700;
}

.side-bar ul {
    padding-left: 1.1rem;
    margin: 0.8rem 0 0;
}

.limitation {
    font-weight: bold;
    font-style: italic;
}

li {
    margin-bottom: 0.55rem;
}

.browser-icon {
    width: 1rem;
    height: 1rem;
}

.inline-image-medium {
    width: auto;
    max-width: 100%; /* Ensures it doesn't overflow horizontally */
    max-height: 500px;
    height: 50vh; /* Sets height to 25% of viewport height */
    object-fit: contain; /* Maintains aspect ratio */
    display: block;
    margin: 10px 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--surface-muted);
}

@media (max-width: 820px) {
    body {
        display: block;
        padding: 20px;
    }

    .main-content,
    .side-bar {
        max-width: none;
    }

    .side-bar {
        position: static;
        margin-top: 20px;
    }

    footer {
        margin-top: 24px;
    }
}
