/* UBA content pages (issue #165). Page-scoped styles for the static
   SEO/answer articles under /usable-browser-agent/... per the approved design
   (design/DESIGN-uba-content-pages.md). Uses only existing shared.css
   variables; no shared portfolio stylesheet, no selector overrides. */

.uba-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 3rem 1.5rem 1rem;
    color: var(--dark-gray);
    line-height: 1.7;
}

.uba-article h1 {
    font-size: 2rem;
    line-height: 1.25;
    margin: 0 0 1rem;
}

.uba-article h2 {
    font-size: 1.4rem;
    line-height: 1.3;
    margin: 2.25rem 0 0.75rem;
}

.uba-article p {
    margin: 0 0 1rem;
}

.uba-article ul,
.uba-article ol {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
}

.uba-article li {
    margin-bottom: 0.5rem;
}

.uba-article dl {
    margin: 0 0 1rem;
}

.uba-article dt {
    font-weight: 600;
    margin-top: 1rem;
}

.uba-article dd {
    margin: 0.25rem 0 0;
}

.uba-article a {
    color: var(--primary-dark);
}

.uba-article a:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
    border-radius: 2px;
}

.uba-lede {
    font-size: 1.125rem;
    color: var(--gray-accessible);
}

/* Comparison table. The wrapper is the keyboard-reachable scroll region
   (tabindex="0" + role="region" + aria-labelledby in markup) so the table can
   scroll horizontally on narrow viewports without clipping (WCAG 2.1.1). */
.uba-table-wrap {
    overflow-x: auto;
    margin: 0 0 1rem;
}

.uba-table-wrap:focus-visible {
    outline: 2px solid var(--primary-blue);
    outline-offset: 3px;
    border-radius: 4px;
}

.uba-table {
    border-collapse: collapse;
    width: 100%;
    min-width: 640px;
    font-size: 0.95rem;
}

.uba-table caption {
    caption-side: top;
    text-align: left;
    font-weight: 600;
    padding-bottom: 0.5rem;
}

.uba-table th,
.uba-table td {
    border: 1px solid var(--light-gray);
    padding: 0.6rem 0.75rem;
    text-align: left;
    vertical-align: top;
}

.uba-table thead th {
    background: var(--off-white);
}

.uba-table tbody th {
    font-weight: 600;
    background: var(--off-white);
}

.uba-steps {
    padding-left: 1.5rem;
}

.uba-steps li {
    margin-bottom: 0.75rem;
}

.uba-article-about {
    max-width: 720px;
    margin: 2rem auto 0;
    padding: 1.5rem 1.5rem 0;
    border-top: 1px solid var(--light-gray);
    color: var(--gray-accessible);
    line-height: 1.7;
}

.uba-cta-note {
    margin: 0.75rem 0 0;
    color: var(--gray-accessible);
}

.uba-related {
    max-width: 720px;
    margin: 0 auto;
    padding: 1rem 1.5rem 2rem;
    line-height: 1.7;
}

.uba-related h2 {
    font-size: 1.2rem;
    margin: 0 0 0.5rem;
    color: var(--dark-gray);
}

.uba-related ul {
    margin: 0;
    padding-left: 1.5rem;
}

.uba-related a {
    color: var(--primary-dark);
}
