/* Audio Length Checker — page styles (uses the --vs-* tokens from /assets/styles.css). */

.vs-alc-hero {
    padding: 40px 0 28px;
}

.vs-alc-crumbs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 0.85rem;
    color: var(--vs-text-muted);
}

.vs-alc-crumbs a {
    color: var(--vs-gold);
    font-weight: 500;
}

.vs-alc-crumbs a:hover {
    color: var(--vs-gold-hover);
}

.vs-alc-intro {
    max-width: 640px;
    margin: 18px auto 0;
    font-size: 1.08rem;
    line-height: 1.7;
    color: var(--vs-text);
}

.vs-alc-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.vs-alc-badges li {
    padding: 6px 14px;
    border: 1px solid var(--vs-border);
    border-radius: 999px;
    background: var(--vs-surface);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--vs-navy);
}

.vs-alc-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* --- Tool card --- */

.vs-alc-tool {
    padding: 0 0 56px;
}

.vs-alc-wrap {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.vs-alc-card {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 28px;
    background: var(--vs-surface);
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius);
    box-shadow: var(--vs-shadow);
}

.vs-alc-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 36px 20px;
    border: 2px dashed var(--vs-border);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-bg);
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.vs-alc-drop.is-dragging {
    border-color: var(--vs-gold);
    background: var(--vs-gold-glow);
}

.vs-alc-file {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    padding: 14px 28px;
    border-radius: 14px;
    background: var(--vs-navy);
    color: #FFFFFF;
    font-size: 1.05rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, box-shadow 0.2s ease;
}

.vs-alc-file:hover,
.vs-alc-file:focus-within {
    background: var(--vs-navy-deep);
}

.vs-alc-file:focus-within {
    box-shadow: 0 0 0 3px var(--vs-gold-glow), 0 0 0 1.5px var(--vs-gold);
}

.vs-alc-file input {
    position: absolute;
    inset: 0;
    width: 100%;
    opacity: 0;
    cursor: pointer;
}

.vs-alc-drop-hint {
    margin: 0;
    font-size: 0.88rem;
    color: var(--vs-text-muted);
}

.vs-alc-status {
    margin: 0;
    min-height: 1.5em;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--vs-navy);
}

/* --- Results table --- */

.vs-alc-results {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.vs-alc-results[hidden] {
    display: none;
}

.vs-alc-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.vs-alc-table thead th {
    padding: 8px 12px;
    border-bottom: 1.5px solid var(--vs-border);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-align: left;
    text-transform: uppercase;
    color: var(--vs-text-muted);
}

.vs-alc-table td,
.vs-alc-table tbody th,
.vs-alc-table tfoot th {
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.vs-alc-main td {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.vs-alc-name {
    font-weight: 600;
    color: var(--vs-navy);
    overflow-wrap: anywhere;
}

.vs-alc-item + .vs-alc-item .vs-alc-main > * {
    border-top: 1px solid var(--vs-border);
}

.vs-alc-item[data-state="pending"] .vs-alc-main td:nth-child(2) {
    color: var(--vs-text-muted);
}

.vs-alc-fits td {
    padding-top: 0;
    font-size: 0.85rem;
    color: var(--vs-text-muted);
}

.vs-alc-item[data-state="error"] .vs-alc-fits td {
    color: #B42318;
}

.vs-alc-fits-label {
    margin-right: 8px;
    font-weight: 600;
    color: var(--vs-navy);
}

.vs-alc-fit-list {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
    vertical-align: middle;
}

.vs-alc-fit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 10px;
    border-radius: 999px;
    font-weight: 500;
    white-space: nowrap;
}

.vs-alc-fit.is-yes {
    background: #E7F6EC;
    color: #146C34;
}

.vs-alc-fit.is-no {
    background: #FDECEA;
    color: #B42318;
}

.vs-alc-fit-mark {
    font-weight: 700;
}

.vs-alc-table tfoot th,
.vs-alc-table tfoot td {
    border-top: 1.5px solid var(--vs-navy);
    font-weight: 700;
    color: var(--vs-navy);
    font-variant-numeric: tabular-nums;
}

.vs-alc-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.vs-alc-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    border: 1.5px solid var(--vs-border);
    border-radius: 10px;
    background: var(--vs-surface);
    color: var(--vs-navy);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.vs-alc-chip:hover {
    border-color: var(--vs-gold);
    color: var(--vs-gold-hover);
}

.vs-alc-chip:disabled {
    opacity: 0.45;
    cursor: default;
    border-color: var(--vs-border);
    color: var(--vs-navy);
}

.vs-alc-chip--quiet {
    border-color: transparent;
    background: transparent;
    color: var(--vs-text-muted);
}

.vs-alc-noscript {
    margin: 0;
    padding: 14px 16px;
    border-left: 3px solid var(--vs-gold);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-gold-glow);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* --- Limits and sources --- */

.vs-alc-limits {
    padding: 14px 16px;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-warm);
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--vs-text);
}

.vs-alc-limits-title {
    margin: 0 0 6px;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--vs-navy);
}

.vs-alc-limits ul {
    margin: 0 0 6px;
    padding-left: 18px;
}

.vs-alc-limits p {
    margin: 0;
    color: var(--vs-text-muted);
}

.vs-alc-limits a {
    color: var(--vs-gold-hover);
    text-decoration: underline;
}

/* --- CTA under the result --- */

.vs-alc-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 28px auto 0;
    max-width: 640px;
    text-align: center;
}

.vs-alc-cta p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.65;
    color: var(--vs-text);
}

/* --- Related links --- */

.vs-alc-related {
    display: grid;
    gap: 12px;
    padding: 0;
    list-style: none;
}

.vs-alc-related li {
    margin: 0;
    padding: 16px 18px;
    border: 1px solid var(--vs-border);
    border-radius: var(--vs-radius-sm);
    background: var(--vs-surface);
}

.vs-alc-related li::before {
    display: none;
}

/* Phones: each file becomes a card with labelled values instead of a wide table. */
@media (max-width: 640px) {
    .vs-alc-hero { padding: 28px 0 20px; }
    .vs-alc-wrap { padding: 0 16px; }
    .vs-alc-card { padding: 16px; gap: 14px; }
    .vs-alc-drop { padding: 24px 14px; }
    .vs-alc-file { width: 100%; }
    .vs-alc-cta .vs-btn-primary { width: 100%; justify-content: center; }

    .vs-alc-table thead { display: none; }
    .vs-alc-table,
    .vs-alc-table tbody,
    .vs-alc-table tfoot,
    .vs-alc-table tr { display: block; width: 100%; }

    .vs-alc-item,
    .vs-alc-table tfoot tr {
        padding: 12px 0;
    }

    .vs-alc-item + .vs-alc-item { border-top: 1px solid var(--vs-border); }
    .vs-alc-item + .vs-alc-item .vs-alc-main > * { border-top: 0; }

    .vs-alc-table .vs-alc-main,
    .vs-alc-table tfoot tr {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px 10px;
    }

    .vs-alc-main th,
    .vs-alc-table tfoot th { grid-column: 1 / -1; }

    .vs-alc-table td,
    .vs-alc-table tbody th,
    .vs-alc-table tfoot th { display: block; padding: 0; }

    .vs-alc-main td::before,
    .vs-alc-table tfoot td::before {
        content: attr(data-label);
        display: block;
        font-size: 0.7rem;
        font-weight: 600;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        color: var(--vs-text-muted);
    }

    .vs-alc-fits td { padding-top: 10px; }
    .vs-alc-fits-label { display: block; margin-bottom: 6px; }

    .vs-alc-table tfoot th,
    .vs-alc-table tfoot td { border-top: 0; }
    .vs-alc-table tfoot tr { border-top: 1.5px solid var(--vs-navy); }
    .vs-alc-table tfoot td:last-child { display: none; }

    .vs-alc-chip { flex: 1; }
}
