/* Worked-example specification page */

.example-inputs {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--text-sm);
    margin-top: var(--space-4);
}

.example-inputs th,
.example-inputs td {
    text-align: left;
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--gray-200);
    vertical-align: top;
}

.example-inputs th {
    width: 30%;
    min-width: 150px;
    color: var(--gray-500);
    font-weight: 600;
    white-space: nowrap;
}

.example-inputs td {
    color: var(--gray-800);
}

.example-spec-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
    margin-bottom: var(--space-5);
}

.example-spec {
    background: var(--gray-900);
    color: #e2e8f0;
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    line-height: 1.7;
    max-height: 30rem;
    overflow: auto;
    white-space: pre;
    tab-size: 2;
    margin: 0;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

@media (max-width: 640px) {
    .example-spec-head { align-items: stretch; }
    .example-spec-head .btn { width: 100%; }
    .example-inputs th { width: 40%; white-space: normal; }
}
