/* General content pages (privacy, terms, customer pages): a sticky white "On this page" card beside an 800px reading
 * column; tables, the thank-you confirmation card and the 404 cards. */
.ocf-standard-grid {
    display: grid;
    grid-template-columns: minmax(0, 260px) minmax(0, 800px);
    gap: clamp(32px, 4vw, 56px);
    align-items: start;
}

.ocf-standard-single { max-width: var(--ocf-content-width); margin-inline: auto; }

.ocf-standard-grid .ocf-article-aside { position: sticky; top: var(--lisbon-sticky-top); }

.ocf-article-toc__nav {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}

.ocf-article-toc__nav a {
    color: var(--ocf-body);
    font-size: calc(var(--font-body-size) * 0.88);
    line-height: 1.35;
}

.ocf-article-toc__nav a:first-child { color: var(--ocf-heading); font-weight: var(--font-weight-semibold); }
.ocf-article-toc__nav a:hover { color: var(--ocf-link); }

.ocf-standard-page__content {
    font-size: calc(var(--font-body-size) * 1.03);
    line-height: 1.7;
}

.ocf-standard-page__content h2 {
    margin: calc(var(--ocf-grid-gap) * 1.5) 0 calc(var(--ocf-grid-gap) * 0.6);
    font-size: clamp(26px, 2.4vw, 32px);
    line-height: 1.12;
}

.ocf-standard-page__content > h2:first-child,
.ocf-standard-page__content > :first-child h2:first-child { margin-top: 0; }

.prose table {
    width: 100%;
    margin-block: var(--ocf-grid-gap);
    overflow: hidden;
    border-collapse: collapse;
    border-radius: 16px;
    background: var(--lisbon-card);
}

.prose td,
.prose th {
    padding: 14px 18px;
    border-bottom: 1px solid var(--ocf-border);
    text-align: left;
}

.prose th {
    background: var(--lisbon-band);
    color: var(--ocf-heading-alt);
    font-size: var(--ocf-font-small-size);
}

/* Thank-you page: a plain white band with the confirmation centered (check badge, title, message, home button and the
 * call link); How We Work follows. */
.ocf-thank-you-band {
    background: var(--lisbon-card);
    padding-block: clamp(72px, 9vw, 128px);
}

.ocf-thank-you-band .ocf-standard-single,
.ocf-thank-you-band .ocf-standard-page__content { max-width: 640px; margin-inline: auto; }

.ocf-thank-you-band .ocf-standard-page__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
    text-align: center;
}

.ocf-thank-you-band .ocf-thank-you {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding-block: 0; /* the plugin's runtime CSS pads the block for themes without a card */
}

.ocf-thank-you-band .ocf-standard-page__content > * + * { margin-top: 0; }

.ocf-thank-you-band .ocf-thank-you::before {
    content: "";
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
    border-radius: var(--radius-full);
    background:
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'><path d='M20 6 9 17l-5-5'/></svg>") center / 26px no-repeat,
        var(--ocf-primary);
}

.ocf-thank-you-band .ocf-thank-you__title {
    margin: 0;
    color: var(--ocf-heading);
    font-family: var(--ocf-font-heading), system-ui, sans-serif;
    font-size: clamp(34px, 3.8vw, 52px);
    font-weight: var(--ocf-font-h1-weight, 800);
    letter-spacing: var(--lisbon-h1-track);
    line-height: 1;
}

.ocf-thank-you-band .ocf-thank-you__message {
    max-width: 480px;
    margin: 0;
    color: var(--ocf-body);
    font-size: calc(var(--font-body-size) * 1.06);
}

.ocf-thank-you-band .ocf-thank-you__home { margin-top: 12px; }

.ocf-thank-you-band .page-content-body a.ocf-thank-you__home[href] { color: var(--ocf-primary-contrast); text-decoration: none; }

.ocf-thank-you-band .page-content-body a.lisbon-call[href]:not(.btn-primary):not(.btn-secondary) {
    margin-top: 18px;
    color: var(--ocf-heading);
    text-decoration: none;
}

.ocf-thank-you__call svg { width: 18px; height: 18px; }

/* 404: three white route cards under the section heading. */
.ocf-not-found-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ocf-grid-gap);
}

.ocf-not-found-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 32px;
    border-radius: var(--card-radius);
    background: var(--lisbon-card);
    color: var(--ocf-body);
    transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.ocf-not-found-card:hover { transform: var(--card-transform-hover); box-shadow: var(--card-shadow-hover); }
.ocf-not-found-card h3 { font-size: clamp(22px, 1.8vw, 26px); }
.ocf-not-found-card p { font-size: calc(var(--font-body-size) * 0.94); line-height: 1.55; }
.ocf-not-found-card .ocf-text-link { margin-top: auto; padding-top: 4px; }

@media (max-width: 1023px) {
    .ocf-standard-grid { grid-template-columns: minmax(0, 1fr); }
    .ocf-standard-grid .ocf-article-aside { position: static; }
    .ocf-not-found-cards { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 767px) {
    .prose td,
    .prose th { padding: 10px 12px; }
}
