:root {
    --brand-blue: #0077b8;
    --brand-blue-dark: #005f95;
    --brand-blue-soft: #e7f4fb;
    --brand-green: #a8c957;
    --brand-green-dark: #7f9e35;
    --brand-green-soft: #edf5d6;
    --text: #202124;
    --muted: #5f6368;
    --line: #e5e7eb;
    --surface: #fff;
    --page: #f8f9fa;
    --nav-active: #edf5d6;
    --shadow: 0 1px 2px rgba(32,33,36,.08), 0 1px 3px 1px rgba(60,64,67,.08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
    background: var(--page);
}
a { color: inherit; }
button { font: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: 308px;
    background: #fff;
    border-right: 1px solid var(--line);
    position: fixed;
    inset: 0 auto 0 0;
    display: flex;
    flex-direction: column;
    z-index: 10;
}
.brand-row {
    height: 70px;
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--line);
}
.icon-button {
    border: 0;
    background: transparent;
    cursor: pointer;
}
.menu-toggle {
    display: none;
    font-size: 24px;
    color: #3c4043;
}
.brand-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    min-width: 0;
}
.brand-logo img {
    display: block;
    width: 230px;
    max-width: 100%;
    height: auto;
}
.side-nav { padding-top: 22px; }
.nav-item {
    height: 48px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 24px;
    text-decoration: none;
    color: #202124;
    border-radius: 0 24px 24px 0;
    margin-right: 24px;
    font-size: 15px;
}
.nav-item:hover { background: var(--brand-blue-soft); }
.nav-item.active {
    background: var(--nav-active);
    color: var(--brand-blue-dark);
    border-left: 6px solid var(--brand-green);
    padding-left: 18px;
    font-weight: 600;
}
.nav-icon {
    width: 18px;
    text-align: center;
    color: var(--brand-blue);
    font-size: 20px;
}
.side-nav hr { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.sidebar-footer {
    margin-top: auto;
    border-top: 1px solid var(--line);
    padding: 16px 24px;
    color: var(--muted);
    font-size: 14px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.sidebar-footer a { color: var(--brand-blue-dark); }
.main-content { margin-left: 308px; flex: 1; min-width: 0; }
.topbar {
    height: 70px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 24px 0 46px;
    position: sticky;
    top: 0;
    z-index: 5;
}
.topbar h1 { font-size: 20px; font-weight: 400; margin: 0; flex: 1; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}
.primary-button {
    background: var(--brand-green);
    color: #163500;
    box-shadow: 0 1px 2px rgba(44,70,35,.18);
}
.primary-button:hover { background: var(--brand-green-dark); color: #fff; }
.secondary-button {
    background: var(--brand-blue-soft);
    color: var(--brand-blue-dark);
}
.secondary-button:hover { background: #d5edf8; }
.home-grid {
    max-width: 1100px;
    margin: 38px auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    padding: 0 18px;
}
.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.hero-card {
    min-height: 360px;
    padding: 44px;
    background:
        radial-gradient(circle at 92% 18%, rgba(168,201,87,.32) 0 90px, transparent 92px),
        radial-gradient(circle at 82% 48%, rgba(0,119,184,.12) 0 150px, transparent 152px),
        #fff;
}
.eyebrow {
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.hero-card h2 {
    max-width: 760px;
    margin: 18px 0 18px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: 1.02;
    letter-spacing: -.04em;
    font-weight: 700;
}
.hero-card p {
    max-width: 720px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.6;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.summary-card,
.story-card,
.builds-card,
.ideas-card,
.resources-card { padding-bottom: 26px; }
.summary-card { padding: 28px 28px 70px; }
.summary-card h2 { margin: 0 0 12px; font-size: 24px; }
.summary-card p,
.card-title-row p,
.timeline-item p,
.idea-tile p,
.resource-list span {
    color: var(--muted);
    line-height: 1.58;
}
.view-report {
    position: absolute;
    left: 28px;
    bottom: 24px;
    color: var(--brand-blue-dark);
    text-decoration: none;
    font-size: 15px;
    font-weight: 700;
}
.card-title-row { padding: 28px 28px 8px; }
.card-title-row h2 { margin: 0; font-size: 24px; font-weight: 500; }
.card-title-row p { max-width: 820px; margin: 14px 0 0; }
.timeline { padding: 12px 28px 24px; }
.timeline-item {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 18px;
    padding: 22px 0;
    border-top: 1px solid #eef0f2;
}
.timeline-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 78px;
    height: 34px;
    border-radius: 999px;
    background: var(--brand-green-soft);
    color: var(--brand-blue-dark);
    font-weight: 700;
    font-size: 14px;
}
.timeline-item h3,
.idea-tile h3 { margin: 0 0 8px; font-size: 18px; }
.timeline-item p,
.idea-tile p { margin: 0; }
.idea-grid,
.build-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 28px 28px;
}
.idea-tile,
.build-tile {
    border: 1px solid #e7edf2;
    border-radius: 10px;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.idea-tile h3 { color: var(--brand-blue-dark); }
.build-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
}
.build-heading h3 {
    margin: 0;
    color: var(--brand-blue-dark);
    font-size: 18px;
}
.build-heading span {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 10px;
    border-radius: 999px;
    background: var(--brand-green-soft);
    color: var(--brand-blue-dark);
    font-size: 12px;
    font-weight: 700;
}
.build-tile strong {
    display: block;
    margin-bottom: 10px;
    color: #263238;
}
.build-tile p {
    color: var(--muted);
    line-height: 1.58;
    margin: 0 0 16px;
}
.build-tile a {
    color: var(--brand-blue-dark);
    font-weight: 700;
    text-decoration: none;
}
.build-tile a:hover { text-decoration: underline; }
.resource-list { padding: 14px 28px 28px; display: grid; gap: 10px; }
.resource-list a {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 18px 20px;
    border: 1px solid #e7edf2;
    border-radius: 10px;
    text-decoration: none;
    background: #fff;
}
.resource-list a:hover { border-color: var(--brand-blue); background: var(--brand-blue-soft); }
.resource-list strong { color: var(--text); }
.resource-list span { text-align: right; }
@media (max-width: 1100px) {
    .sidebar { transform: translateX(-100%); transition: transform .2s ease; }
    .sidebar.open { transform: translateX(0); }
    .main-content { margin-left: 0; }
    .menu-toggle { display: inline-flex; }
    .topbar { padding-left: 16px; }
    .home-grid { margin: 24px auto; }
}
@media (max-width: 720px) {
    .hero-card { padding: 30px 24px; }
    .idea-grid,
    .build-grid { grid-template-columns: 1fr; }
    .timeline-item { grid-template-columns: 1fr; gap: 10px; }
    .resource-list a { display: block; }
    .resource-list span { display: block; text-align: left; margin-top: 6px; }
}

/* Download-focused additions */
code {
    font-family: Consolas, Monaco, 'Courier New', monospace;
    font-size: .92em;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 2px 5px;
}
.stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 8px 0 18px;
}
.stat-grid div {
    border: 1px solid #e7edf2;
    border-radius: 10px;
    padding: 14px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.stat-grid strong {
    display: block;
    color: var(--brand-blue-dark);
    font-size: 22px;
    line-height: 1;
}
.stat-grid span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-top: 6px;
}
.download-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.download-tile { display: flex; flex-direction: column; }
.download-tile p { margin-bottom: 18px; }
.meta-list,
.checksum-list {
    margin: 0;
    display: grid;
    gap: 8px;
}
.meta-list { margin-top: auto; }
.meta-list div,
.checksum-list div {
    display: grid;
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}
.meta-list dt,
.checksum-list dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}
.meta-list dd,
.checksum-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.download-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 18px;
}
.code-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 28px 28px;
}
.code-grid > div {
    border: 1px solid #e7edf2;
    border-radius: 10px;
    padding: 20px;
    background: #fff;
}
.code-grid h3 { margin: 0 0 12px; color: var(--brand-blue-dark); }
.code-grid p { color: var(--muted); line-height: 1.58; margin: 12px 0 0; }
pre {
    margin: 0;
    overflow-x: auto;
    background: #0f172a;
    color: #f8fafc;
    border-radius: 10px;
    padding: 16px;
}
pre code {
    display: block;
    background: transparent;
    border: 0;
    color: inherit;
    padding: 0;
    font-size: 13px;
    line-height: 1.5;
}
.package-card { padding-bottom: 26px; }
.package-list {
    display: grid;
    gap: 14px;
    padding: 14px 28px 28px;
}
.package-item {
    border: 1px solid #e7edf2;
    border-radius: 12px;
    padding: 22px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    scroll-margin-top: 86px;
}
.package-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    border-bottom: 1px solid #eef0f2;
    padding-bottom: 18px;
    margin-bottom: 18px;
}
.package-head h3 { margin: 0 0 8px; color: var(--brand-blue-dark); }
.package-head p { margin: 0; color: var(--muted); line-height: 1.58; }
.package-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}
.package-columns h4 { margin: 0 0 10px; }
ul { margin: 0; padding-left: 20px; }
li { margin: 6px 0; color: #374151; }
.checksum-list {
    border-top: 1px solid #eef0f2;
    padding-top: 16px;
}
@media (max-width: 900px) {
    .download-grid,
    .code-grid,
    .package-columns { grid-template-columns: 1fr; }
    .package-head { display: block; }
    .package-head .primary-button { margin-top: 14px; }
}
@media (max-width: 520px) {
    .stat-grid { grid-template-columns: 1fr; }
    .meta-list div,
    .checksum-list div { grid-template-columns: 1fr; gap: 2px; }
}

/* Versioning, compliance and SEO/accessibility additions */
.version-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 28px 28px;
}
.version-filter {
    text-align: left;
    border: 1px solid #e7edf2;
    border-radius: 12px;
    background: #fff;
    padding: 18px 20px;
    cursor: pointer;
    box-shadow: none;
}
.version-filter:hover,
.version-filter.active {
    border-color: var(--brand-blue);
    background: var(--brand-blue-soft);
}
.version-filter strong,
.version-filter span,
.version-filter small { display: block; }
.version-filter strong { color: var(--brand-blue-dark); font-size: 18px; }
.version-filter span { color: var(--text); margin-top: 6px; font-weight: 700; }
.version-filter small { color: var(--muted); margin-top: 8px; line-height: 1.5; font-size: 14px; }
.version-badge {
    display: inline-flex;
    width: fit-content;
    margin: 0 0 12px;
    padding: 4px 9px;
    border-radius: 999px;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 12px;
    font-weight: 700;
}
.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 22px 24px 34px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    margin-top: 28px;
}
.site-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.site-footer a { color: var(--brand-blue-dark); text-decoration: none; font-weight: 700; white-space: nowrap; }
.site-footer a:hover { text-decoration: underline; }
.legal-shell {
    max-width: 920px;
    margin: 38px auto;
    padding: 0 18px;
}
.legal-card { padding: 34px; }
.legal-card h1 { margin: 0 0 12px; font-size: clamp(32px, 5vw, 48px); letter-spacing: -.03em; }
.legal-card h2 { margin: 30px 0 10px; color: var(--brand-blue-dark); }
.legal-card p,
.legal-card li { color: var(--muted); line-height: 1.7; }
.legal-card .updated { color: var(--brand-blue-dark); font-weight: 700; }
.legal-nav { display: flex; gap: 10px; flex-wrap: wrap; margin: 24px 0 0; }
.skip-link {
    position: absolute;
    left: -999px;
    top: 8px;
    background: #fff;
    color: var(--brand-blue-dark);
    padding: 8px 12px;
    border-radius: 8px;
    z-index: 99;
}
.skip-link:focus { left: 8px; }
@media (max-width: 720px) {
    .version-list { grid-template-columns: 1fr; }
    .legal-card { padding: 26px 22px; }
}

/* Beginner FAQ for command line encoder packages */
.faq-card {
    scroll-margin-top: 86px;
}
.faq-intro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 0 28px 20px;
}
.faq-intro > div {
    border: 1px solid #e7edf2;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.faq-intro h3 {
    margin: 0 0 10px;
    color: var(--brand-blue-dark);
}
.faq-intro p {
    color: var(--muted);
    line-height: 1.65;
}
.faq-intro pre {
    margin: 12px 0;
}
.faq-list {
    display: grid;
    gap: 10px;
    padding: 0 28px 28px;
}
.faq-item {
    border: 1px solid #e7edf2;
    border-radius: 12px;
    background: #fff;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    padding: 16px 18px;
    color: var(--brand-blue-dark);
    font-weight: 800;
    list-style-position: inside;
}
.faq-item summary:hover {
    background: var(--brand-blue-soft);
}
.faq-item p {
    margin: 0;
    padding: 0 18px 18px;
    color: var(--muted);
    line-height: 1.65;
}
@media (max-width: 900px) {
    .faq-intro { grid-template-columns: 1fr; }
}


/* Online MP3 web encoder page */
.nav-item[href="/web-encoder/"] .nav-icon {
    font-size: 18px;
}
.summary-links {
    position: absolute;
    left: 28px;
    right: 28px;
    bottom: 22px;
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    align-items: center;
}
.summary-links .view-report {
    position: static;
    left: auto;
    bottom: auto;
}
.view-report-secondary {
    font-weight: 600;
    color: var(--muted);
}
.encoder-page-grid {
    max-width: 1060px;
}
.encoder-hero-card {
    min-height: 320px;
}
.encoder-title-row {
    padding-bottom: 0;
}
.encoder-inner {
    padding: 18px 28px 30px;
}
.drop-zone {
    display: grid;
    place-items: center;
    min-height: 150px;
    padding: 22px;
    border: 2px dashed #c9d6e2;
    border-radius: 14px;
    background: linear-gradient(180deg, #fff, #fbfdff);
    color: var(--brand-blue-dark);
    font-weight: 800;
    text-align: center;
    cursor: pointer;
}
.drop-zone:hover {
    border-color: var(--brand-blue);
    background: var(--brand-blue-soft);
}
.drop-zone input {
    width: 100%;
    max-width: 420px;
    margin-bottom: 12px;
}
.option-grid,
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 16px;
}
.option-grid label,
.form-grid label,
.full-width-field {
    display: grid;
    gap: 7px;
    color: #374151;
    font-weight: 700;
}
.option-grid input,
.option-grid select,
.form-grid input,
.form-grid select,
.full-width-field input,
.full-width-field textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #dbe3ea;
    border-radius: 9px;
    background: #fff;
    color: var(--text);
    font: inherit;
}
.full-width-field {
    margin-top: 14px;
}
.full-width-field textarea {
    min-height: 90px;
    resize: vertical;
}
.advanced-toggle,
.console-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 18px 0;
    color: var(--brand-blue-dark);
    font-weight: 800;
    cursor: pointer;
}
.advanced-panel[hidden] {
    display: none;
}
.advanced-panel {
    margin: 14px 0 22px;
    padding: 18px;
    border: 1px solid #e7edf2;
    border-radius: 14px;
    background: #fbfdff;
}
.advanced-panel h3 {
    margin: 22px 0 10px;
    color: var(--brand-blue-dark);
}
.advanced-panel h3:first-child {
    margin-top: 0;
}
.help-text {
    margin: 10px 0 0;
    color: var(--muted);
    line-height: 1.55;
}
.encode-button {
    margin-top: 8px;
    border: 0;
    cursor: pointer;
}
.encode-button:disabled {
    opacity: .65;
    cursor: not-allowed;
}
.encoder-status {
    color: var(--muted);
    font-weight: 700;
}
.conversion-progress {
    margin: 16px 0;
}
.progress-header {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    color: #374151;
    font-size: 14px;
    font-weight: 800;
}
.conversion-progress progress {
    width: 100%;
    height: 16px;
}
.advanced-console {
    margin-top: 12px;
    padding: 16px;
    max-height: 240px;
    overflow: auto;
    border-radius: 12px;
    background: #111827;
    color: #d1d5db;
    font: 13px/1.45 Consolas, Monaco, 'Courier New', monospace;
    white-space: pre-wrap;
}
#preview {
    display: block;
    width: 100%;
    margin-top: 16px;
}
#preview[hidden],
.download-link[hidden] {
    display: none;
}
.download-link {
    width: fit-content;
    margin-top: 14px;
}
.encoder-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: 28px;
}
.encoder-info-grid article {
    border: 1px solid #e7edf2;
    border-radius: 12px;
    padding: 20px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}
.encoder-info-grid h2 {
    margin: 0 0 10px;
    color: var(--brand-blue-dark);
}
.encoder-info-grid p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}
@media (max-width: 720px) {
    .summary-links {
        position: static;
        margin-top: 18px;
    }
    .summary-card {
        padding-bottom: 28px;
    }
    .encoder-inner,
    .encoder-info-grid {
        padding: 22px;
    }
    .encoder-info-grid {
        grid-template-columns: 1fr;
    }
    .top-actions {
        gap: 8px;
    }
}


.encoder-version-note {
    margin-top: 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 0.85rem;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(245, 158, 11, 0.28);
    color: #92400e;
}

.encoder-version-note strong {
    color: inherit;
}


/* VBR / cVBR comparison page */
.nav-item[href="/cvbr-comparison/"] .nav-icon {
    background: #eef2ff;
    color: #3730a3;
}
.comparison-grid {
    display: grid;
    gap: 24px;
}
.comparison-hero {
    min-height: auto;
}
.comparison-callout {
    border-left: 4px solid var(--brand-blue);
}
.definition-list {
    display: grid;
    gap: 14px;
}
.definition-list div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}
.definition-list div:last-child { border-bottom: 0; }
.definition-list span { color: var(--muted); }
.table-scroll {
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 16px;
}
.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 980px;
    font-size: 0.92rem;
}
.comparison-table th,
.comparison-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.comparison-table thead th {
    background: #f8fafc;
    color: var(--muted);
    font-weight: 700;
}
.comparison-table tbody tr:last-child td { border-bottom: 0; }
.warning-cell {
    color: #991b1b;
    font-weight: 800;
}
.ok-cell {
    color: #166534;
    font-weight: 800;
}
.insight-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}
.insight-grid article {
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fbfdff;
}
.insight-grid h3 {
    margin: 0 0 8px;
    font-size: 1rem;
}
.command-block {
    overflow-x: auto;
    padding: 18px;
    border-radius: 16px;
    background: #111827;
    color: #e5e7eb;
    font: 0.9rem/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
.command-block code { color: inherit; background: transparent; padding: 0; }
@media (max-width: 760px) {
    .definition-list div { grid-template-columns: 1fr; gap: 6px; }
    .insight-grid { grid-template-columns: 1fr; }
}


/* cVBR comparison page refinements */
.comparison-grid,
.comparison-grid * {
    box-sizing: border-box;
}

.comparison-hero .hero-actions {
    flex-wrap: wrap;
}

.results-card .card-title-row {
    padding-bottom: 18px;
}

.table-scroll {
    width: 100%;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.comparison-table code,
.command-block code {
    white-space: pre-wrap;
    word-break: break-word;
}

.comparison-table td,
.comparison-table th {
    overflow-wrap: anywhere;
}

.insight-grid article,
.definition-list div {
    min-width: 0;
}

@media (max-width: 760px) {
    .comparison-table {
        min-width: 760px;
        font-size: 0.85rem;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px 11px;
    }

    .command-block {
        font-size: 0.82rem;
        padding: 14px;
    }
}


/* cVBR comparison page spacing fix - p6 */
.comparison-page .card:not(.hero-card),
.comparison-page .comparison-card,
.comparison-page .comparison-callout,
.comparison-page .results-card {
    padding: 1.75rem;
}

.comparison-page .results-card {
    padding: 0;
}

.comparison-page .results-card .card-title-row {
    padding: 1.75rem 1.75rem 1rem;
}

.comparison-page .results-card .table-scroll {
    margin: 0 1.75rem 1.75rem;
    width: calc(100% - 3.5rem);
}

.comparison-page .card:not(.hero-card) h2,
.comparison-page .comparison-callout h2,
.comparison-page .results-card h2 {
    margin-top: 0;
}

.comparison-page .card:not(.hero-card) p,
.comparison-page .comparison-callout p,
.comparison-page .results-card p {
    max-width: 78rem;
}

.comparison-page .comparison-callout {
    border-left: 4px solid var(--brand-blue);
}

.comparison-page .comparison-callout p:last-child,
.comparison-page .card:not(.hero-card) p:last-child,
.comparison-page .results-card p:last-child {
    margin-bottom: 0;
}

.comparison-page .command-block,
.comparison-page pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

@media (max-width: 720px) {
    .comparison-page .card:not(.hero-card),
    .comparison-page .comparison-card,
    .comparison-page .comparison-callout {
        padding: 1.1rem;
    }

    .comparison-page .results-card .card-title-row {
        padding: 1.1rem 1.1rem 0.85rem;
    }

    .comparison-page .results-card .table-scroll {
        margin: 0 1.1rem 1.1rem;
        width: calc(100% - 2.2rem);
    }
}


/* cVBR comparison page compact tables - p7 */
.comparison-page .comparison-table {
    font-size: 0.875rem;
    line-height: 1.32;
    min-width: 840px;
}

.comparison-page .comparison-table th,
.comparison-page .comparison-table td {
    padding: 0.45rem 0.55rem;
}

.comparison-page .comparison-table thead th {
    font-size: 0.76rem;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.comparison-page .comparison-table code {
    font-size: 0.82em;
    padding: 0.08rem 0.22rem;
    border-radius: 0.35rem;
}

.comparison-page .table-scroll {
    border-radius: 12px;
}

.comparison-page .results-card .card-title-row {
    padding-bottom: 0.75rem;
}

@media (max-width: 760px) {
    .comparison-page .comparison-table {
        min-width: 720px;
        font-size: 0.82rem;
    }

    .comparison-page .comparison-table th,
    .comparison-page .comparison-table td {
        padding: 0.4rem 0.48rem;
    }
}


/* cVBR comparison page width alignment - p8
   Match the contained card width used by the other main pages. */
.comparison-page .comparison-grid {
    max-width: 1100px;
    margin: 38px auto;
    padding: 0 18px;
    gap: 16px;
}

.comparison-page .comparison-hero {
    width: 100%;
}

.comparison-page .card {
    width: 100%;
}

@media (max-width: 900px) {
    .comparison-page .comparison-grid {
        margin: 24px auto;
        padding: 0 14px;
    }
}


/* EAC LAME guide page - p10
   Match the stable contained-card layout and compact spacing used by the rest of the site. */
.eac-guide-page .eac-guide-grid {
    max-width: 1100px;
    margin: 38px auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.eac-guide-page .eac-hero {
    width: 100%;
}

.eac-guide-page .card {
    width: 100%;
}

.eac-guide-page .card:not(.hero-card),
.eac-guide-page .eac-card,
.eac-guide-page .eac-callout,
.eac-guide-page .results-card {
    padding: 28px;
}

.eac-guide-page .card h2 {
    margin-top: 0;
}

.eac-guide-page .card p:last-child,
.eac-guide-page .eac-callout p:last-child,
.eac-guide-page .eac-card p:last-child {
    margin-bottom: 0;
}

.eac-guide-page .results-card .card-title-row {
    padding: 0 0 16px;
}

.eac-guide-page .results-card .card-title-row h2 {
    margin-top: 0;
}

.eac-guide-page .results-card .table-scroll {
    margin: 0;
    width: 100%;
    overflow-x: auto;
}

.eac-callout {
    border-left: 4px solid var(--brand-blue);
}

.compact-definitions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0;
}

.compact-definitions div {
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fbfdff;
}

.compact-definitions dt {
    font-weight: 800;
    color: var(--text);
    margin-bottom: 5px;
}

.compact-definitions dd {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}

.note-text {
    color: var(--muted);
    line-height: 1.58;
}

.eac-command-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.35;
}

.eac-command-table th,
.eac-command-table td {
    padding: 0.55rem 0.65rem;
    vertical-align: top;
}

.eac-command-table th {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eac-command-table td:nth-child(2) code {
    white-space: nowrap;
}

.eac-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 16px;
    margin-top: 18px;
}

.eac-step {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: #fbfdff;
}

.eac-step a {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    padding: 0;
}

.eac-step img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
}

.eac-step figcaption {
    padding: 14px 15px 16px;
    color: var(--muted);
    line-height: 1.45;
}

.eac-step figcaption span {
    display: block;
    color: var(--brand-blue-dark);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.eac-step figcaption strong {
    display: block;
    color: var(--text);
    margin-bottom: 5px;
}

.eac-guide-page .insight-grid article {
    padding: 16px;
}

.eac-faq-list {
    margin-top: 8px;
}

@media (max-width: 900px) {
    .eac-guide-page .eac-guide-grid {
        margin: 24px auto;
        padding: 0 14px;
    }

    .eac-steps,
    .compact-definitions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .eac-guide-page .card:not(.hero-card),
    .eac-guide-page .eac-card,
    .eac-guide-page .eac-callout,
    .eac-guide-page .results-card {
        padding: 1.1rem;
    }

    .eac-command-table {
        min-width: 700px;
        font-size: 0.84rem;
    }

    .eac-command-table th,
    .eac-command-table td {
        padding: 0.45rem 0.52rem;
    }
}


/* EAC guide screenshot/card spacing - p12
   Adds breathing room around thumbnails so rounded cards do not visually crop them.
   Also keeps the contained pages very slightly wider for tables. */
.eac-guide-page .eac-step a {
    padding: 10px 12px;
}

.eac-guide-page .eac-step img {
    border-radius: 10px;
}

@media (max-width: 720px) {
    .eac-guide-page .eac-step a {
        padding: 8px;
    }
}

/* p13 grouped sidebar navigation */
.side-nav .nav-section-label {
    display: block;
    margin: 1rem 0 0.35rem;
    padding: 0 1.15rem;
    font-size: 0.68rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.side-nav .nav-section-label:first-child {
    margin-top: 0.35rem;
}

.side-nav .nav-section-label + .nav-item {
    margin-top: 0.1rem;
}

@media (max-width: 920px) {
    .side-nav .nav-section-label {
        padding: 0 1rem;
    }
}


/* LAME command line examples page - p14 */
.command-page .command-grid {
    max-width: 1100px;
    margin: 38px auto;
    padding: 0 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
}

.command-page .card {
    width: 100%;
}

.command-page .card:not(.hero-card),
.command-page .command-callout,
.command-page .results-card,
.command-page .related-card {
    padding: 28px;
}

.command-page .card h2 {
    margin-top: 0;
}

.command-page .card p:last-child,
.command-page .command-callout p:last-child {
    margin-bottom: 0;
}

.command-callout {
    border-left: 4px solid var(--brand-blue);
}

.command-block {
    margin: 0.85rem 0 1rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8fbff;
    color: var(--text);
    overflow-x: auto;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.command-block code {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.command-example-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
    font-size: 0.92rem;
    line-height: 1.35;
}

.command-example-table th,
.command-example-table td {
    padding: 0.55rem 0.65rem;
    vertical-align: top;
}

.command-example-table th {
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.command-example-table td:nth-child(2) code {
    white-space: nowrap;
}

.command-page .insight-grid article {
    padding: 16px;
}

.related-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.related-links a {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 0.8rem;
    background: #fbfdff;
    font-weight: 700;
    color: var(--brand-blue-dark);
    text-decoration: none;
}

.related-links a:hover {
    border-color: var(--brand-blue);
    color: var(--brand-blue);
}

@media (max-width: 900px) {
    .command-page .command-grid {
        margin: 24px auto;
        padding: 0 14px;
    }
}

@media (max-width: 720px) {
    .command-page .card:not(.hero-card),
    .command-page .command-callout,
    .command-page .results-card,
    .command-page .related-card {
        padding: 1.1rem;
    }

    .command-example-table {
        min-width: 720px;
        font-size: 0.84rem;
    }

    .command-example-table th,
    .command-example-table td {
        padding: 0.45rem 0.52rem;
    }
}

/* Site-wide card title-row bottom padding fix - p23
   Cards that contain only a .card-title-row need normal bottom padding.
   This fixes text appearing too close to the rounded card edge on guide/info cards. */
.card > .card-title-row:last-child {
    padding-bottom: 28px;
}

.card > .card-title-row p:last-child,
.card > .card-title-row ul:last-child,
.card > .card-title-row ol:last-child {
    margin-bottom: 0;
}

@media (max-width: 720px) {
    .card > .card-title-row:last-child {
        padding-bottom: 22px;
    }
}

/* Site-wide layout polish - p24
   Improves logo spacing, mobile sidebar behaviour, and web encoder card controls. */
.brand-row {
    min-height: 88px;
    height: 88px;
    justify-content: center;
    padding: 12px 20px;
}

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

.brand-logo img {
    width: min(230px, 100%);
    height: auto;
}

.side-nav {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-bottom: 18px;
}

.sidebar-footer {
    flex-shrink: 0;
}

@media (max-width: 1100px) {
    .sidebar {
        width: min(308px, 88vw);
        height: 100dvh;
        max-height: 100dvh;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
        z-index: 30;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    .topbar {
        z-index: 20;
    }

    .menu-toggle {
        min-width: 44px;
        min-height: 44px;
        align-items: center;
        justify-content: center;
        border-radius: 999px;
    }

    .menu-toggle:hover,
    .menu-toggle:focus-visible {
        background: var(--brand-blue-soft);
        outline: none;
    }
}

@media (max-width: 720px) {
    .brand-row {
        min-height: 82px;
        height: 82px;
    }

    .brand-logo img {
        width: min(220px, 100%);
    }

    .topbar {
        gap: 10px;
        padding-right: 14px;
    }

    .topbar h1 {
        font-size: 18px;
        line-height: 1.2;
    }
}

.encoder-version-note {
    width: 100%;
    max-width: none;
    margin: 1rem 0 0;
    padding: 1.05rem 1.2rem;
    line-height: 1.62;
}

.drop-zone input[type="file"] {
    display: block;
    width: auto;
    max-width: 100%;
    margin: 0 auto 12px;
    text-align: center;
}

.drop-zone input[type="file"]::file-selector-button {
    margin: 0 auto;
}

@media (max-width: 520px) {
    .drop-zone {
        padding: 24px 16px;
    }
}


/* Site-wide layout polish - p25
   Screenshot follow-up: stronger logo alignment, robust mobile drawer, and encoder file chooser layout. */
.sidebar {
    overflow: hidden;
}

.brand-row {
    height: 98px;
    min-height: 98px;
    padding: 16px 20px 14px;
    justify-content: center;
    align-items: center;
}

.brand-logo {
    width: 100%;
    min-height: 64px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.brand-logo img {
    width: min(248px, 100%);
    max-height: 64px;
    object-fit: contain;
}

.side-nav {
    min-height: 0;
    flex: 1 1 auto;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-gutter: stable;
    overscroll-behavior: contain;
    padding-top: 18px;
    padding-bottom: 18px;
}

.sidebar-footer {
    flex: 0 0 auto;
}

@media (max-width: 1100px) {
    .sidebar {
        width: min(324px, 92vw);
        height: 100vh;
        height: 100dvh;
        max-height: 100dvh;
        transform: translateX(-105%);
        transition: transform .22s ease;
        box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
        z-index: 40;
    }

    .sidebar.open {
        transform: translateX(0);
    }

    body.nav-open {
        overflow: hidden;
    }

    body.nav-open .app-shell::before {
        content: "";
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.28);
        z-index: 35;
    }

    .brand-row {
        height: 92px;
        min-height: 92px;
    }

    .side-nav {
        padding-top: 14px;
    }

    .sidebar-footer {
        max-height: 25vh;
        overflow-y: auto;
        padding: 12px 20px;
    }
}

@media (max-width: 720px) {
    .brand-row {
        height: 88px;
        min-height: 88px;
    }

    .brand-logo img {
        width: min(232px, 100%);
        max-height: 58px;
    }
}

@media (max-height: 650px) and (max-width: 1100px) {
    .sidebar-footer {
        display: none;
    }
}

.encoder-version-note {
    display: block;
    width: 100%;
    max-width: none !important;
    margin: 1.05rem 0 0 !important;
    padding: 1.2rem 1.35rem;
    min-height: 86px;
    border-radius: 14px;
    line-height: 1.65;
    font-size: 1rem;
}

.drop-zone {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    min-height: 158px;
}

.drop-zone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.file-picker-button,
.file-picker-filename,
.drop-zone-label {
    pointer-events: none;
}

.file-picker-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--brand-blue);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 1px 2px rgba(32,33,36,.12);
}

.file-picker-filename {
    max-width: min(520px, 92%);
    color: var(--muted);
    font-size: .94rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.drop-zone-label {
    margin-top: 4px;
    color: var(--brand-blue-dark);
    font-weight: 800;
}


.breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 18px;
    color: var(--muted);
    font-size: 14px;
}
.breadcrumbs a { color: var(--brand-blue-dark); font-weight: 700; text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .breadcrumb-current { color: #334155; font-weight: 700; }
.chart-read-note,
.table-note {
    margin: 10px 0 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    color: #475569;
    font-size: 14px;
    line-height: 1.55;
}
.faq-list details {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #fff;
    padding: 14px 16px;
    margin: 10px 0;
}
.faq-list summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--brand-blue-dark);
}
.faq-list p { margin: 10px 0 0; }
@media (max-width: 720px) {
    .site-footer { justify-content: flex-start; }
    .site-footer nav { gap: 8px 12px; }
}


/* Labs layout fixes - p42
   Keep lab breadcrumbs/FAQ aligned with the study card column and restore the
   standard footer rhythm used by the main study pages. */
.vbr-study-page .labs-breadcrumbs {
    width: min(1100px, calc(100% - 36px));
    margin: 18px auto 0;
    padding: 0;
    gap: 8px;
}

.vbr-study-page .comparison-grid > .faq-list {
    width: 100%;
    padding: 28px;
}

.vbr-study-page .comparison-grid > .faq-list h2 {
    margin-top: 0;
}

.vbr-study-page .comparison-grid > .faq-list details:first-of-type {
    margin-top: 14px;
}

.vbr-study-page .comparison-grid > .faq-list details:last-child {
    margin-bottom: 0;
}

@media (max-width: 900px) {
    .vbr-study-page .labs-breadcrumbs {
        width: min(1100px, calc(100% - 28px));
        margin-top: 14px;
    }}

@media (max-width: 720px) {
    .vbr-study-page .comparison-grid > .faq-list {
        padding: 22px;
    }}


/* Labs frequency page structural guard - p43 */
.vbr-study-page .comparison-grid > .comparison-hero,
.vbr-study-page .comparison-grid > .card {
    min-width: 0;
}
.vbr-study-page .topbar .note {
    display: none;
}



/* Consistent footer wrapping for site pages */
.site-footer nav a[href="/labs/"] { white-space: nowrap; }




/* Footer placement consistency
   Home already places the footer inside the 1100px home grid. Study, lab and
   legal pages place it directly under .main-content, so constrain those direct
   footers to the same content width instead of letting them stretch to the full
   sidebar-adjusted canvas. */
.main-content > .site-footer {
    max-width: 1100px;
    margin: 28px auto 34px;
    padding-left: 18px;
    padding-right: 18px;
    width: calc(100% - 36px);
}

@media (max-width: 720px) {
    .main-content > .site-footer {
        width: calc(100% - 28px);
        padding-left: 0;
        padding-right: 0;
    }
}



.download-intent-helper {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 80;
    width: min(360px, calc(100vw - 2rem));
    padding: 1rem;
    border-radius: 18px;
    background: rgba(17, 24, 39, 0.97);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.download-intent-helper[hidden] {
    display: none;
}

.download-intent-helper strong {
    display: block;
    padding-right: 1.6rem;
    font-size: 1rem;
}

.download-intent-helper p {
    margin: 0.45rem 0 0.9rem;
    color: rgba(255, 255, 255, 0.86);
    font-size: 0.95rem;
    line-height: 1.45;
}

.download-intent-helper__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.download-intent-helper__actions .primary-button,
.download-intent-helper__actions .secondary-button {
    padding: 0.6rem 0.75rem;
    font-size: 0.92rem;
}

.download-intent-helper__close {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: inherit;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
}

.download-intent-helper__close:hover,
.download-intent-helper__close:focus-visible {
    background: rgba(255, 255, 255, 0.12);
    outline: none;
}

@media (max-width: 560px) {
    .download-intent-helper {
        right: 0.75rem;
        bottom: 0.75rem;
        width: calc(100vw - 1.5rem);
    }

    .download-intent-helper__actions {
        display: grid;
    }
}


.web-encoder-curiosity {
    margin-top: 1.25rem;
}

.web-encoder-curiosity p:last-child {
    margin-bottom: 0;
}

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

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


.web-encoder-curiosity {
    margin-top: 18px;
}

.web-encoder-curiosity .card-title-row {
    padding-bottom: 28px;
}

.web-encoder-curiosity__action {
    margin-top: 18px;
}


.web-encoder-comparison-page .comparison-callout,
.web-encoder-comparison-page .split-card {
    padding: 28px;
}

.web-encoder-comparison-page .study-table .table-scroll {
    padding: 0 20px 24px;
}

.web-encoder-comparison-page .comparison-note {
    margin: -6px 28px 28px;
    color: var(--muted);
    line-height: 1.65;
}

.web-encoder-comparison-page .split-card ul {
    margin-bottom: 0;
}

.web-encoder-comparison-page .split-card h2 {
    margin-top: 0;
}

.web-encoder-comparison-page .comparison-callout p:last-child {
    margin-bottom: 0;
}




.web-encoder-comparison-page .study-table .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.web-encoder-comparison-page .study-table table {
    border-collapse: separate;
    border-spacing: 0;
    line-height: 1.38;
}

.web-encoder-comparison-page .study-table th,
.web-encoder-comparison-page .study-table td {
    padding: 0.75rem 0.9rem;
    vertical-align: top;
    border-bottom: 1px solid #eef0f2;
}

.web-encoder-comparison-page .study-table tbody tr:last-child td {
    border-bottom: 0;
}

.web-encoder-comparison-page .study-table th {
    color: var(--brand-blue-dark);
    font-weight: 700;
}

.web-comparison-summary-table {
    min-width: 940px;
    table-layout: fixed;
}

.web-comparison-summary-table th:nth-child(1),
.web-comparison-summary-table td:nth-child(1) {
    width: 105px;
    font-weight: 700;
}

.web-comparison-summary-table th:nth-child(2),
.web-comparison-summary-table td:nth-child(2),
.web-comparison-summary-table th:nth-child(3),
.web-comparison-summary-table td:nth-child(3) {
    width: 108px;
    white-space: nowrap;
}

.web-comparison-summary-table th:nth-child(4),
.web-comparison-summary-table td:nth-child(4) {
    width: 38%;
}

.web-comparison-summary-table th:nth-child(5),
.web-comparison-summary-table td:nth-child(5) {
    width: 30%;
}

.web-comparison-frequency-table {
    min-width: 760px;
}

.web-comparison-frequency-table th,
.web-comparison-frequency-table td {
    white-space: nowrap;
}

.web-comparison-frequency-table th:first-child,
.web-comparison-frequency-table td:first-child {
    min-width: 105px;
    font-weight: 700;
}

@media (max-width: 760px) {
    .web-comparison-summary-table {
        min-width: 880px;
    }

    .web-comparison-frequency-table {
        min-width: 720px;
    }
}


/* Web encoder comparison page spacing polish */
.web-encoder-comparison-page .study-table .card-title-row {
    padding-bottom: 16px;
}

.web-encoder-comparison-page .study-table .table-scroll {
    padding-top: 4px;
}

.web-encoder-comparison-page .comparison-note {
    margin-top: 0.85rem;
    padding-top: 0.35rem;
}

.web-encoder-comparison-page .split-card {
    gap: 3rem;
    align-items: start;
}

.web-encoder-comparison-page .split-card > div {
    min-width: 0;
}

.web-encoder-comparison-page .split-card h2 {
    margin-bottom: 1rem;
    line-height: 1.18;
}

.web-encoder-comparison-page .split-card ul {
    padding-left: 1.15rem;
}

.web-encoder-comparison-page .split-card li {
    margin: 0 0 0.7rem;
    line-height: 1.48;
}

.web-encoder-comparison-page .split-card li:last-child {
    margin-bottom: 0;
}

.web-encoder-comparison-page .comparison-callout {
    line-height: 1.62;
}

.web-encoder-comparison-page .comparison-callout h2 {
    margin-top: 0;
}

.web-encoder-comparison-page .comparison-callout p {
    max-width: 920px;
}

@media (max-width: 980px) {
    .web-encoder-comparison-page .split-card {
        gap: 2rem;
    }
}

@media (max-width: 760px) {
    .web-encoder-comparison-page .split-card {
        gap: 1.5rem;
    }
}


.web-encoder-comparison-page .comparison-listening-note {
    background: rgba(0, 119, 184, 0.06);
    border-left: 4px solid var(--brand-blue);
    border-radius: 10px;
    padding: 0.9rem 1rem;
}

.web-encoder-comparison-page .encoder-confidence-card {
    border-left: 4px solid var(--brand-green);
}


/* Footer restoration pass 20260621footerfix1: keep the 2026-06-18 footer layout stable. */
.site-footer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px 22px;
    padding: 22px 24px 34px;
    color: var(--muted);
    font-size: 14px;
    border-top: 1px solid rgba(15, 23, 42, .08);
    margin-top: 28px;
}
.site-footer nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 16px;
}
.site-footer a {
    color: var(--brand-blue-dark);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}
.site-footer a:hover { text-decoration: underline; }


.footer-company-line {
    display: inline-block;
    max-width: 100%;
    line-height: 1.6;
}

/* Historic release archive */
.release-archive-page .release-archive-grid {
    gap: 18px;
}

.release-archive-hero {
    min-height: 330px;
}

.release-archive-hero h2 {
    max-width: 820px;
    font-size: clamp(32px, 4.5vw, 52px);
}

.release-archive-intro {
    display: grid;
    grid-template-columns: minmax(240px, .8fr) minmax(0, 1.2fr);
    gap: 32px;
    align-items: center;
    padding: 28px;
    border-left: 4px solid var(--brand-blue);
}

.release-archive-intro h2 {
    margin: 8px 0 0;
    font-size: 24px;
    font-weight: 600;
}

.release-archive-intro p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.release-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    scroll-margin-top: 88px;
}

.release-card {
    display: flex;
    min-width: 0;
    min-height: 300px;
    flex-direction: column;
    padding: 0;
    overflow: hidden;
}

.release-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(135deg, var(--brand-blue-soft), #fff 72%);
}

.release-version {
    color: var(--brand-blue-dark);
    font-size: 18px;
    font-weight: 800;
}

.release-type {
    padding: 5px 10px;
    border: 1px solid rgba(127, 158, 53, .35);
    border-radius: 999px;
    background: var(--brand-green-soft);
    color: #526b1f;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.release-card-body {
    flex: 1;
    padding: 24px 22px 20px;
}

.release-card-body h2 {
    margin: 0 0 12px;
    color: var(--text);
    font-size: 21px;
    line-height: 1.25;
}

.release-card-body p {
    margin: 0;
    color: var(--muted);
    line-height: 1.62;
}

.release-card-footer {
    padding: 0 22px 22px;
}

.release-card-footer .primary-button {
    width: 100%;
}

@media (max-width: 820px) {
    .release-card-grid,
    .release-archive-intro {
        grid-template-columns: 1fr;
    }

    .release-archive-intro {
        gap: 14px;
    }
}

@media (max-width: 520px) {
    .release-archive-hero h2 {
        font-size: 32px;
    }

    .release-card-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }
}

/* Historical release detail refinements 20260714historical3 */
.vbr-study-page .branch-profile-card {
    overflow: hidden;
}
.vbr-study-page .branch-profile-card .card-title-row {
    padding-bottom: 20px;
    border-bottom: 1px solid #e7edf2;
    background: linear-gradient(180deg, rgba(0, 119, 184, .055), rgba(255, 255, 255, 0));
}
.vbr-study-page .branch-profile-card .card-title-row .eyebrow {
    margin-bottom: 10px;
}
.vbr-study-page .branch-profile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin: 0;
    padding: 22px 28px;
}
.vbr-study-page .branch-profile-item {
    min-width: 0;
    padding: 20px;
    border: 1px solid #e1e9ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
}
.vbr-study-page .branch-profile-item dt {
    margin: 0 0 9px;
    color: var(--brand-blue-dark);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.vbr-study-page .branch-profile-item dd {
    margin: 0;
    color: #374151;
    line-height: 1.65;
}
.vbr-study-page .branch-profile-highlight {
    border-color: rgba(0, 119, 184, .28);
    box-shadow: inset 4px 0 0 var(--brand-blue);
}
.vbr-study-page .branch-profile-note {
    margin: 0 28px 28px;
    padding: 16px 18px;
    border: 1px solid #dfe8ee;
    border-radius: 10px;
    background: #f7fafc;
}
.vbr-study-page .branch-profile-note strong {
    display: block;
    margin-bottom: 4px;
    color: var(--brand-blue-dark);
}
.vbr-study-page .branch-profile-note p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}
.vbr-study-page .measurement-link-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 28px 28px;
}
.vbr-study-page .measurement-link-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 22px;
    border: 1px solid #e1e9ef;
    border-radius: 12px;
    background: linear-gradient(180deg, #fff, #f8fbfd);
}
.vbr-study-page .measurement-link-card h3 {
    margin: 0 0 8px;
    color: var(--brand-blue-dark);
}
.vbr-study-page .measurement-link-card p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.6;
}
.vbr-study-page .measurement-link-card .secondary-button {
    align-self: flex-start;
    margin-top: auto;
}
@media (max-width: 900px) {
    .vbr-study-page .branch-profile-grid { grid-template-columns: 1fr; }
    .vbr-study-page .measurement-link-grid { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
    .vbr-study-page .branch-profile-grid,
    .vbr-study-page .measurement-link-grid { padding-left: 18px; padding-right: 18px; }
    .vbr-study-page .branch-profile-note { margin-left: 18px; margin-right: 18px; }
}


/* VBR performance study refinements */
.vbr-performance-page .comparison-table thead th {
    text-transform: none;
    letter-spacing: normal;
}

.vbr-performance-page .measured-data-card {
    padding: clamp(22px, 3vw, 32px);
}

.vbr-performance-page .measured-data-card h2 {
    margin-bottom: 16px;
}

.vbr-performance-page .measured-data-card .hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 0 0 18px;
}

.vbr-performance-page .measured-data-card .chart-note {
    margin: 0;
}


/* Compact, optional package verification information */
.package-summary {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    overflow-wrap: anywhere;
}
.verification-details {
    margin-top: 16px;
    border-top: 1px solid #eef0f2;
    padding-top: 14px;
}
.verification-details summary {
    width: fit-content;
    color: var(--brand-blue-dark);
    font-weight: 700;
    cursor: pointer;
    user-select: none;
}
.verification-details summary:hover { text-decoration: underline; }
.verification-details[open] summary { margin-bottom: 14px; }
.verification-details .checksum-list {
    border-top: 0;
    padding-top: 0;
}
.verification-details .chart-note { margin: 14px 0 0; }
.package-basic-details { margin-bottom: 0; }


/* Legacy DLL migration note */
.legacy-dll-note {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, .72fr);
    gap: 20px;
    margin: 24px 0;
    padding: 20px 22px;
    border: 1px solid var(--border-color, #d8dee8);
    border-radius: 14px;
    background: var(--surface-soft, #f7f9fc);
}
.legacy-dll-note h2,
.legacy-dll-note h3 {
    margin: 0 0 7px;
    font-size: 1.05rem;
}
.legacy-dll-note p { margin: 0; }
.legacy-dll-note__fallback {
    padding-left: 20px;
    border-left: 1px solid var(--border-color, #d8dee8);
}
.legacy-dll-note--compact {
    display: block;
    margin: 0 0 20px;
    padding: 16px 18px;
}
@media (max-width: 760px) {
    .legacy-dll-note { grid-template-columns: 1fr; }
    .legacy-dll-note__fallback {
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid var(--border-color, #d8dee8);
    }
}


/* Compact and consistent spacing for /lame-x.x/ release pages */
.historical-release-page .comparison-grid {
    gap: 14px;
}

.historical-release-page .comparison-hero {
    padding: 34px;
}

/* Structured release cards already provide their own internal spacing. */
.historical-release-page .branch-profile-card,
.historical-release-page .package-card,
.historical-release-page .release-measurements-card {
    padding: 0;
}

.historical-release-page .card-title-row {
    padding: 22px 22px 6px;
}

.historical-release-page .branch-profile-grid {
    gap: 12px;
    padding: 18px 22px;
}

.historical-release-page .branch-profile-item {
    padding: 16px;
}

.historical-release-page .branch-profile-note {
    margin: 0 22px 22px;
    padding: 14px 16px;
}

.historical-release-page .package-card {
    padding-bottom: 0;
}

.historical-release-page .package-list {
    gap: 12px;
    padding: 12px 22px 22px;
}

.historical-release-page .package-item {
    padding: 18px;
}

.historical-release-page .package-head {
    gap: 16px;
    padding-bottom: 14px;
    margin-bottom: 14px;
}

.historical-release-page .measurement-link-grid {
    gap: 12px;
    padding: 12px 22px 22px;
}

.historical-release-page .measurement-link-card {
    padding: 18px;
}

.historical-release-page .release-navigation-card {
    padding: 22px;
}

.historical-release-page .release-navigation-card .package-head {
    padding-bottom: 12px;
    margin-bottom: 14px;
}

@media (max-width: 720px) {
    .historical-release-page .comparison-hero {
        padding: 26px 20px;
    }

    .historical-release-page .card-title-row {
        padding: 20px 18px 5px;
    }

    .historical-release-page .branch-profile-grid,
    .historical-release-page .package-list,
    .historical-release-page .measurement-link-grid {
        padding-left: 18px;
        padding-right: 18px;
    }

    .historical-release-page .branch-profile-note {
        margin-left: 18px;
        margin-right: 18px;
    }

    .historical-release-page .release-navigation-card {
        padding: 18px;
    }
}


/* Specialist CUDA release */
.specialist-release-card {
    border-color: rgba(118, 146, 255, 0.3);
    background: linear-gradient(145deg, rgba(118, 146, 255, 0.07), transparent 48%), var(--card-bg, #fff);
}
.specialist-release-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(250px, 0.7fr);
    gap: 24px;
    padding: 8px 22px 4px;
}
.specialist-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}
.specialist-badges span {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border: 1px solid rgba(118, 146, 255, 0.36);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.specialist-meta { margin: 0; }
.specialist-actions { padding: 14px 22px 22px; }
/* CUDA specialist card within Downloads by build type */
.specialist-download-tile {
    border-color: rgba(118, 146, 255, 0.34);
    background: linear-gradient(145deg, rgba(118, 146, 255, 0.08), transparent 52%), var(--card-bg, #fff);
}
.specialist-download-tile .build-heading span {
    border-color: rgba(118, 146, 255, 0.42);
}
.specialist-download-tile .chart-note {
    margin-top: 0;
}



/* CUDA documentation page — use the same card rhythm as the current-build page. */
.cuda-page .cuda-page-grid {
    align-content: start;
}

.cuda-page .cuda-breadcrumbs {
    margin: 0 0 -2px;
    padding: 0 2px;
}

.cuda-page .comparison-hero {
    min-height: auto;
}

.cuda-page .card:not(.hero-card) {
    padding: 0;
}

.cuda-page .card-title-row {
    padding: 28px 28px 8px;
}

.cuda-page .compact-definitions {
    padding: 4px 28px 10px;
}

.cuda-page .cuda-download-panel .download-actions {
    margin: 0;
    padding: 8px 28px 28px;
}

.cuda-page .table-scroll {
    width: auto;
    margin: 10px 28px 0;
    border: 1px solid #e7edf2;
    border-radius: 10px;
}

.cuda-page .support-table {
    min-width: 740px;
    font-size: 0.9rem;
}

.cuda-page .support-table th,
.cuda-page .support-table td {
    padding: 0.65rem 0.75rem;
}

.cuda-page .support-table code {
    white-space: nowrap;
}

.cuda-page .chart-note {
    margin: 0;
    padding: 14px 28px 28px;
}

.cuda-page .cuda-feature-grid,
.cuda-page .compatibility-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 14px 28px 28px;
}

.cuda-page .cuda-feature-item,
.cuda-page .compatibility-item {
    padding: 20px;
    border: 1px solid #e7edf2;
    border-radius: 10px;
    background: linear-gradient(180deg, #fff, #fbfdff);
}

.cuda-page .cuda-feature-item h3,
.cuda-page .compatibility-item h3 {
    margin: 0 0 8px;
    color: var(--brand-blue-dark);
    font-size: 18px;
}

.cuda-page .cuda-feature-item p,
.cuda-page .compatibility-item p {
    margin: 0;
    color: var(--muted);
    line-height: 1.58;
}

.cuda-page .code-grid {
    padding: 14px 28px 28px;
}

@media (max-width: 760px) {
    .cuda-page .cuda-feature-grid,
    .cuda-page .compatibility-grid {
        grid-template-columns: 1fr;
        padding: 12px 18px 20px;
    }

    .cuda-page .card-title-row {
        padding: 20px 18px 6px;
    }

    .cuda-page .compact-definitions {
        padding: 2px 18px 8px;
    }

    .cuda-page .cuda-download-panel .download-actions {
        padding: 8px 18px 20px;
    }

    .cuda-page .table-scroll {
        margin: 8px 18px 0;
    }

    .cuda-page .chart-note {
        padding: 12px 18px 20px;
    }

    .cuda-page .code-grid {
        padding: 12px 18px 20px;
    }
}


/* Personalized Exact Audio Copy setup guide */
.eac-setup-presets{display:flex;flex-wrap:wrap;gap:8px;padding:8px 28px 22px}
.eac-setup-preset{border:1px solid var(--line);background:#fff;color:var(--text);border-radius:999px;padding:9px 14px;cursor:pointer;font-weight:700}
.eac-setup-preset:hover,.eac-setup-preset.active{border-color:var(--brand-blue);background:var(--brand-blue-soft);color:var(--brand-blue-dark)}
.eac-window{width:min(100%,622px);min-height:566px;margin:0 auto;background:#f7f7f7;color:#111;border:1px solid #8a8a8a;border-radius:10px;overflow:hidden;box-shadow:0 24px 58px rgba(0,0,0,.24);font:12px "Segoe UI",Tahoma,Arial,sans-serif}
.eac-titlebar{height:33px;padding:0 5px 0 4px;display:flex;align-items:center;justify-content:space-between;background:#fafafa}
.eac-titlebar strong{font-size:12px;font-weight:400}
.eac-title-controls{display:flex;align-items:stretch;height:100%;margin-right:-5px}
.eac-title-controls span{width:46px;display:grid;place-items:center;font-size:16px;color:#111}
.eac-title-controls span:last-child{font-size:22px;font-weight:300}
.eac-menu-tabs{height:22px;display:flex;align-items:end;gap:0;padding:0 7px;background:#f4f4f4;border-bottom:1px solid #d8d8d8;overflow:hidden;white-space:nowrap}
.eac-menu-tabs span{height:21px;padding:2px 7px 3px;border:1px solid transparent;border-bottom:0;font-size:12px;line-height:17px}
.eac-menu-tabs .selected{background:#fff;border-color:#d0d0d0;position:relative;top:1px}
.eac-panel{min-height:475px;padding:49px 56px 24px;background:#fafafa;border-left:7px solid #f4f4f4;border-right:7px solid #f4f4f4}
.eac-check,.eac-radio{display:flex;align-items:center;gap:6px;color:#111;line-height:18px}
.eac-panel input[type="checkbox"],.eac-panel input[type="radio"]{width:14px;height:14px;margin:0;accent-color:#0078d4}
.top-check{margin-bottom:14px}
.eac-form-grid{display:grid;grid-template-columns:181px minmax(0,1fr);column-gap:13px;row-gap:10px;align-items:center}
.eac-form-grid>label{font-size:12px;white-space:nowrap}
.muted-eac-label{color:#999}
.eac-full-label{grid-column:1/-1;margin-top:1px;margin-bottom:-5px}
.eac-panel input[type="text"],.eac-panel select{box-sizing:border-box;width:100%;height:21px;border:1px solid #c7c7c7;background:#fff;color:#111;border-radius:2px;padding:1px 4px;font:12px "Segoe UI",Tahoma,Arial,sans-serif}
.eac-panel select:disabled,.eac-panel input[readonly]{opacity:1;color:#111;-webkit-text-fill-color:#111}
.eac-panel .short-field{width:75px;color:#888;-webkit-text-fill-color:#888;background:#f6f6f6}
.eac-program-row{grid-column:1/-1;display:grid;grid-template-columns:minmax(0,1fr) 103px;gap:17px;margin-bottom:1px}
.eac-copy-field{position:relative;min-width:0}
.eac-copy-field input{padding-right:43px!important}
.eac-inline-copy{position:absolute;top:1px;right:1px;height:19px;min-width:39px;padding:0 6px;border:0;border-left:1px solid #d3d3d3;border-radius:0 2px 2px 0;background:linear-gradient(#fff,#f3f3f3);color:#444;font:11px "Segoe UI",Tahoma,Arial,sans-serif;line-height:18px;cursor:pointer}
.eac-inline-copy:hover{background:#eaf3fb;color:#111}
.eac-button{min-height:24px;border:1px solid #b7b7b7;border-radius:4px;background:linear-gradient(#fff,#f5f5f5);color:#111;padding:2px 12px;font:12px "Segoe UI",Tahoma,Arial,sans-serif}
.eac-button:disabled{opacity:1;color:#222}
.eac-lower{display:grid;grid-template-columns:1fr 174px;gap:54px;margin-top:14px}
.eac-option-column{display:grid;gap:7px;align-content:start}
.quality-options{padding-top:1px}
.test-button{width:149px;min-height:25px;margin-top:12px;justify-self:start}
.eac-dialog-footer{height:38px;padding:0 7px;border-top:1px solid #e6e6e6;background:#f7f7f7;display:flex;justify-content:flex-end;align-items:center;gap:8px}
.eac-dialog-footer .eac-button{width:74px;min-height:24px}
.eac-dialog-footer .eac-ok{border-color:#0078d4;box-shadow:inset 0 0 0 1px #fff}
.setup-status{max-width:622px;margin:16px auto 28px;padding:12px 14px;border-radius:8px;background:#fff4d6;color:#6a4b00;line-height:1.5}
.setup-status.good{background:var(--brand-green-soft);color:#37510d}
@media(max-width:760px){
    .eac-setup-presets{padding-left:20px;padding-right:20px}
    .eac-window{min-height:0}
    .eac-panel{min-height:0;padding:28px 20px 30px;border-left-width:0;border-right-width:0}
    .eac-menu-tabs{overflow-x:auto;height:auto;min-height:23px}
    .eac-form-grid{grid-template-columns:1fr;gap:6px}
    .eac-form-grid>label{margin-top:8px;white-space:normal}
    .eac-full-label{grid-column:auto;margin-bottom:0}
    .eac-program-row{grid-column:auto;grid-template-columns:1fr auto;gap:8px}
    .eac-lower{grid-template-columns:1fr;gap:16px}
}


/* Exact Audio Copy helper in downloads */
.eac-download-helper{
    margin:0 28px 24px;
    padding:18px 20px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
    border:1px solid var(--line);
    border-radius:12px;
    background:#fbfcfd;
}
.eac-download-helper h3{
    margin:4px 0 6px;
}
.eac-download-helper p{
    margin:0;
    max-width:720px;
    color:var(--muted);
    line-height:1.55;
}
.eac-download-helper__actions{
    display:flex;
    flex-wrap:wrap;
    gap:9px;
    flex:0 0 auto;
}
@media(max-width:760px){
    .eac-download-helper{
        margin-left:20px;
        margin-right:20px;
        align-items:flex-start;
        flex-direction:column;
    }
}

/* Simple LAME for Windows guide */
.easy-windows-grid{display:grid;gap:22px;padding:28px;max-width:1060px;margin:0 auto}
.easy-windows-hero{text-align:center;padding:42px 34px}
.easy-windows-hero h2{font-size:clamp(30px,4vw,46px);margin:8px 0 12px}
.easy-windows-hero p{max-width:660px;margin-left:auto;margin-right:auto;font-size:18px;line-height:1.55}
.easy-download-button{font-size:18px;padding:13px 22px}
.easy-small-note{font-size:14px!important;color:var(--muted);margin-top:12px!important}
.easy-step-card{padding:26px;display:grid;grid-template-columns:54px 1fr;gap:10px 18px;align-items:start}
.easy-step-number{width:44px;height:44px;border-radius:50%;display:grid;place-items:center;background:var(--brand-green-soft);font-weight:800;font-size:20px;color:#38550d;grid-row:1}
.easy-step-copy{grid-column:2}
.easy-step-copy h2{margin:0 0 7px}
.easy-step-copy p{margin:0;color:var(--muted);font-size:17px;line-height:1.55}
.easy-guide-image{grid-column:1/-1;display:block;width:min(100%,499px);height:auto;margin:12px auto 0;border:1px solid var(--line);border-radius:12px;box-shadow:0 10px 30px rgba(20,32,45,.08)}
.easy-eac-card{display:block}
.easy-eac-card>.easy-step-number{display:grid;float:left;margin-right:18px}
.easy-eac-card>.easy-step-copy{min-height:54px}
.easy-eac-window{clear:both;margin:24px auto 0}
.easy-eac-note{max-width:622px;margin:14px auto 0;padding:14px 16px;border-radius:9px;background:var(--brand-green-soft);line-height:1.5}
.easy-eac-note p{margin:4px 0 0}
.easy-finish-card,.easy-faq-card{padding:26px}
.easy-finish-card>p{font-size:17px;line-height:1.55;color:var(--muted)}
@media(max-width:760px){
 .easy-windows-grid{padding:18px;gap:16px}
 .easy-windows-hero{padding:30px 20px}
 .easy-step-card{padding:20px;grid-template-columns:44px 1fr;gap:8px 12px}
 .easy-step-copy p,.easy-finish-card>p{font-size:16px}
 .easy-eac-card>.easy-step-number{float:none;margin:0 0 10px}
 .easy-eac-window{margin-top:18px}
}


/* FFmpeg LAME Shim: align results-card headings with card content.
   results-card already has 28px padding via .command-page, so do not
   add a second 28px horizontal inset on its nested title row. */
.command-page .results-card > .card-title-row {
    padding: 0 0 18px;
}

/* Keep the shared footer aligned on standalone policy pages too. */
body > .site-footer {
    max-width: 920px;
    width: calc(100% - 36px);
    margin: 28px auto 34px;
}
@media (max-width: 720px) {
    body > .site-footer { width: calc(100% - 28px); }
}
