/* Service details have one padded reading surface. Keep ID selectors out of
   shared :is() rules: their specificity previously re-created nested cards. */
body.rahaf-public-ui #main .services-editorial .services-section-index > div {
    gap: 8px;
}
body.rahaf-public-ui #main .services-editorial .services-section-index a {
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid var(--rf-line-strong);
    border-radius: 14px;
    background: #fffefb;
    color: var(--rf-deep);
    line-height: 1.5;
}
body.rahaf-public-ui #main .services-editorial .services-section-index a:hover,
body.rahaf-public-ui #main .services-editorial .services-section-index a:focus-visible {
    color: var(--rf-brand);
    border-color: var(--rf-brand);
    background: var(--rf-brand-soft);
}

/* One reading surface for related service details, with sections separated inside it. */
body.rahaf-public-ui #main .services-editorial .catalog-detail-content {
    min-width: 0;
    padding: clamp(22px, 2.5vw, 32px);
    border: 1px solid var(--rf-line);
    border-radius: 24px;
    background: #fffefb;
}
body.rahaf-public-ui #main .services-editorial .catalog-detail-content > .catalog-prose {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.rahaf-public-ui #main .services-editorial .catalog-prose h2 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
}
body.rahaf-public-ui #main .services-editorial .catalog-prose > p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.8;
}
body.rahaf-public-ui #main .services-editorial .catalog-detail-content > .catalog-prose + .catalog-prose {
    margin-top: 22px;
    padding-top: 22px;
    border-top: 1px solid var(--rf-line);
}

/* Secondary actions use the same 48px glass pill as the client app. */
body.rahaf-public-ui #main .services-editorial :is(
    .catalog-detail-footer .lens-public-link,
    .catalog-session-notes > .lens-public-link
) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 20px;
    border: 1px solid var(--rf-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 #fff;
    color: var(--rf-deep);
    font-size: .9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
body.rahaf-public-ui #main .services-editorial :is(
    .catalog-detail-footer .lens-public-link,
    .catalog-session-notes > .lens-public-link
):is(:hover, :focus-visible) {
    border-color: var(--rf-brand);
    background: var(--rf-brand-soft);
}
body.rahaf-public-ui #main .services-editorial :is(
    .catalog-detail-footer .lens-public-link,
    .catalog-session-notes > .lens-public-link
) .icon {
    transform: none;
}

/* Workshop tabs are navigation, kept separate from the padded tab panel. */
body.rahaf-public-ui #main .workshop-editorial .workshop-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
    border: 0;
}
body.rahaf-public-ui #main .workshop-editorial .workshop-tabs > a {
    flex: 0 1 auto;
    min-height: 48px;
    padding: 10px 19px;
    border: 1px solid var(--rf-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    color: var(--rf-muted);
    line-height: 1.5;
}
body.rahaf-public-ui #main .workshop-editorial .workshop-tabs > a[aria-selected="true"] {
    border-color: var(--rf-line-strong);
    background: var(--rf-brand-soft);
    color: var(--rf-deep);
    font-weight: 600;
}
body.rahaf-public-ui #main .workshop-editorial .workshop-tabs[data-tabs-enhanced]::after {
    content: none;
}
body.rahaf-public-ui #main .workshop-editorial .workshop-panel {
    min-width: 0;
    padding: clamp(22px, 2.5vw, 32px);
    border: 1px solid var(--rf-line);
    border-radius: 24px;
    background: rgba(255, 255, 255, .88);
}
body.rahaf-public-ui #main .workshop-editorial .workshop-topics > li {
    padding-block: 18px;
}
body.rahaf-public-ui #main .workshop-editorial .workshop-consultations {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 48px;
    padding: 10px 20px;
    border: 1px solid var(--rf-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, .82);
    color: var(--rf-deep);
    font-weight: 600;
    text-decoration: none;
}
body.rahaf-public-ui #main .workshop-editorial .workshop-consultations .icon {
    transform: none;
}

/* The short consultation chooser uses the same app choice and action shapes. */
body.rahaf-public-ui #main .v13-service-chooser .choice-row {
    min-height: 56px;
    padding: 13px 17px;
    border: 1px solid var(--rf-line-strong);
    border-radius: 18px;
    background: rgba(255, 255, 255, .85);
}
body.rahaf-public-ui #main .v13-service-chooser .choice-row:has(input:checked) {
    border-color: var(--rf-brand);
    background: var(--rf-brand-soft);
}
body.rahaf-public-ui #main .v13-service-chooser .button {
    min-height: 50px;
    border-radius: 999px;
}

/* The deletion information has no policy index column. Give its long copy a
   readable width instead of leaving the unused grid column empty. */
body.rahaf-public-ui #main .lens-account-deletion :is(
    .lens-breadcrumb,
    .lens-policy-opening,
    .lens-policy-layout
) {
    max-width: 880px;
    margin-inline: auto;
}
body.rahaf-public-ui #main .lens-account-deletion .lens-policy-layout {
    display: block;
}

@media (max-width: 600px) {
    body.rahaf-public-ui #main .workshop-editorial .workshop-tabs {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.rahaf-public-ui #main .workshop-editorial .workshop-tabs > a {
        min-width: 0;
        padding-inline: 10px;
    }
    body.rahaf-public-ui #main .services-editorial .catalog-detail-footer {
        align-items: stretch;
    }
    body.rahaf-public-ui #main .services-editorial .catalog-detail-footer .lens-public-link {
        width: 100%;
    }
}
