/* Article hero section */
.article-hero__title {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 800;
    letter-spacing: -.02em;
    line-height: 1.1;
    margin: 0 0 14px;
}

.article-hero__desc {
    font-size: 18px;
    color: var(--sam-brown-dark);
    max-width: 520px;
    margin: 0 0 28px;
}

/* Table of contents */
.article-toc {
    background: var(--surface-raised);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--s-4) var(--s-5);
}

/* Article footer with CTAs */
.article-footer {
    padding: var(--s-5) 0;
    border-top: 1px solid var(--sam-light);
    margin-top: var(--s-5);
    display: flex;
    gap: var(--s-3);
    flex-wrap: wrap;
}

/* Scoped to .text-article to avoid affecting header/footer */
.text-article h1 {
    font-size: 36px;
    font-weight: 800;
    letter-spacing: -.02em;
    margin: 0 0 8px
}

.text-article .updated {
    font-size: var(--text-sm);
    color: var(--sam-medium);
    margin: 0 0 40px
}

.text-article h2 {
    font-size: 19px;
    font-weight: 800;
    margin: 36px 0 10px;
    padding-top: 36px;
    border-top: 1px solid var(--sam-light);
    scroll-margin-top: 80px;
}

.text-article h2:first-of-type {
    border-top: none;
    margin-top: 0
}

.text-article h3 {
    font-size: 16px;
    font-weight: 700;
    margin: 20px 0 8px
}

.text-article p {
    color: var(--sam-brown-dark);
    line-height: 1.75;
    margin: 0 0 14px;
    font-size: 15.5px
}

.text-article ol,
.text-article ul {
    color: var(--sam-brown-dark);
    line-height: 1.75;
    margin: 0 0 14px;
    padding-left: 24px;
    font-size: 15.5px
}

.text-article li {
    margin-bottom: 6px
}

/* Text links within article content - excludes buttons */
.text-article p a,
.text-article li a,
.text-article td a {
    color: var(--color-action);
    font-weight: 600
}

.text-article p a:hover,
.text-article li a:hover,
.text-article td a:hover {
    color: var(--color-action-hover)
}

.text-article table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0;
    font-size: 14px
}

.text-article th,
.text-article td {
    text-align: left;
    padding: 10px 12px;
    border-bottom: 1px solid var(--sam-light);
    vertical-align: top
}

.text-article th {
    font-weight: 700;
    background: var(--sam-brown-light);
    color: var(--sam-dark)
}

.text-article td:first-child {
    font-family: var(--font-mono);
    font-size: 12.5px;
    color: var(--sam-dark);
    white-space: nowrap
}

.text-article--no-mono td:first-child {
    font-family: inherit;
    font-size: inherit;
    white-space: normal
}

.cookie-card {
    background: var(--sam-brown-light);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin: 28px 0;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: center
}

.cookie-card h3 {
    font-size: 17px;
    font-weight: 800;
    margin: 0 0 6px
}

.cookie-card p {
    margin: 0;
    font-size: 14px;
    color: var(--sam-brown-dark)
}

.cookie-card .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 0;
    border-radius: var(--radius-pill);
    padding: 12px 22px;
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    background: var(--sam-dark);
    color: #fff;
    text-decoration: none;
    white-space: nowrap
}

.cookie-card .btn:hover {
    background: color-mix(in oklab, var(--sam-dark) 90%, white)
}

@media (max-width: 640px) {
    .text-article table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch
    }
}

@media (max-width: 768px) {
    .text-article h1 {
        font-size: 28px
    }

    .cookie-card {
        grid-template-columns: 1fr
    }
}
