/* F204: product bindings for the approved RunLine website design.
   Keep existing account selectors and their authentication/error states. */
body.web-public,
body.web-account,
body.web-auth {
    --cream: #fff;
    --ink: #090f37;
    --signal: #1975c8;
    --accent: #1975c8;
    --accent-text: #155c9e;
    --hairline: #dfe6ef;
    --surface: #fff;
    --text-soft: #5b647a;
    --readw: 480px;
    --r-lg: 12px;
    background: #fff;
    color: #090f37;
}
html:has(body:is(.web-public, .web-account, .web-auth)) {
    --nav-h: 88px;
}
html:has(body:is(.web-public, .web-account, .web-auth)) {
    scroll-padding-top: calc(var(--nav-h, 88px) + 12px);
}
:where(body.web-public, body.web-account, body.web-auth) .store-link {
    padding-bottom: 40px;
}

:where(body.web-public, body.web-account, body.web-auth) .main-header.nav {
    padding: 0;
    height: 88px;
    background: #fffffff2;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .nav__menu {
    padding: 0;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .nav__cta {
    display: flex;
    gap: 10px;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .nav__lang-link {
    font: inherit;
    font-size: 12px;
    letter-spacing: 0;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .brand
    img {
    width: 105px;
    height: 60px;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .main-nav
    a {
    border: 0;
    padding: 10px 0;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .main-nav
    a[aria-current='page'] {
    color: #155c9e;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .header-actions
    .btn {
    white-space: nowrap;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .mobile-menu {
    height: auto;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .mobile-menu[hidden] {
    display: none;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .mobile-menu.open {
    display: grid;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .mobile-menu
    a {
    min-height: 44px;
    display: flex;
    align-items: center;
}
:where(body.web-public, body.web-account, body.web-auth)
    .main-header
    .mobile-menu
    button {
    text-align: left;
}

:where(body.web-public, body.web-account, body.web-auth) .btn.btn--primary,
:where(body.web-public, body.web-account, body.web-auth) .btn.btn--accent {
    background: #1975c8;
    color: #fff;
    border-color: #1975c8;
}
:where(body.web-public, body.web-account, body.web-auth)
    .btn.btn--primary:hover,
:where(body.web-public, body.web-account, body.web-auth)
    .btn.btn--accent:hover {
    background: #145fa5;
    border-color: #145fa5;
}
:where(body.web-public, body.web-account, body.web-auth) .btn.btn--outline {
    background: transparent;
    border-color: #d8e0eb;
    color: #090f37;
}
:where(body.web-public, body.web-account, body.web-auth)
    .btn.btn--outline:hover {
    background: #edf4fb;
}
:where(body.web-public, body.web-account, body.web-auth) .btn.btn--text {
    background: transparent;
    color: #155c9e;
    padding-inline: 8px;
    box-shadow: none;
}
:where(body.web-public, body.web-account, body.web-auth) .btn.btn--lg {
    min-height: 54px;
}
:where(body.web-public, body.web-account, body.web-auth) .btn[hidden],
:where(body.web-public, body.web-account, body.web-auth) [hidden] {
    display: none !important;
}

.web-account .account-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 1fr);
    min-height: calc(100vh - 88px);
}
.web-account .account-sidebar {
    position: sticky;
    top: 88px;
    height: calc(100dvh - 88px);
    border-right: 1px solid #e1e7ef;
    background: #fff;
    padding: 30px 18px 20px;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
:where(body.web-public, body.web-account, body.web-auth)
    .account-sidebar
    .sidebar-label {
    padding: 0 14px;
    margin: 0 0 14px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #69738a;
}
:where(body.web-public, body.web-account, body.web-auth) .account-sidebar nav {
    display: grid;
    gap: 5px;
}
:where(body.web-public, body.web-account, body.web-auth) .account-sidebar a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 45px;
    padding: 11px 14px;
    border-radius: 7px;
    color: #536079;
    font-size: 13px;
    font-weight: 600;
}
:where(body.web-public, body.web-account, body.web-auth)
    .account-sidebar
    a:hover {
    background: #f3f6fa;
    color: #090f37;
}
:where(body.web-public, body.web-account, body.web-auth)
    .account-sidebar
    a[aria-current='page'] {
    background: #eaf3fc;
    color: #155c9e;
}
:where(body.web-public, body.web-account, body.web-auth)
    .account-sidebar
    .icon {
    width: 19px;
    height: 19px;
    flex: none;
}
:where(body.web-public, body.web-account, body.web-auth)
    .account-sidebar
    .sidebar-bottom {
    margin-top: auto;
    border-top: 1px solid #e4e9f1;
    padding-top: 18px;
}
:where(body.web-public, body.web-account, body.web-auth)
    .account-sidebar
    .sidebar-bottom
    button {
    width: 100%;
    justify-content: flex-start;
    font-size: 12px;
}
.web-account .account-layout > main {
    width: 100%;
    min-width: 0;
    background: #f7f9fc;
}
.web-account .account {
    padding: 42px clamp(20px, 4vw, 55px) 72px;
}
.web-account .account--wide {
    max-width: none;
}
.web-account .account__inner {
    max-width: 1080px;
}
.web-account .account__inner h1,
.web-account .dash__head h1 {
    font-size: clamp(30px, 3.3vw, 43px);
    line-height: 1.12;
    letter-spacing: -0.035em;
}
.web-account .account__inner h2 {
    letter-spacing: -0.02em;
}
.web-account .home-kicker,
.web-auth .home-kicker {
    font-size: 10px;
    font-weight: 700;
    color: var(--blue-text, #115d9f);
    letter-spacing: 0.15em;
}
.web-account .account__form,
.web-account .dash__panel,
.web-account .setup__card,
.web-account .account__list-item {
    background: #fff;
    border-color: #e0e7ef;
    border-radius: 11px;
}
.web-account .dash {
    max-width: 1080px;
    margin-inline: auto;
}
.web-account .dash__grid {
    gap: 22px;
}
.web-account .dash__panel {
    padding: 25px;
}
.web-account .setup-wrap {
    margin-block: 28px;
}
.web-account .setup {
    gap: 15px;
}
.web-account .setup__card h2 {
    font-size: 17px;
}
.web-account .setup__card p {
    font-size: 13px;
}
:where(body.web-public, body.web-account, body.web-auth) .account__label {
    font: inherit;
    font-size: 13px;
    font-weight: 650;
    letter-spacing: 0;
    text-transform: none;
}
:where(body.web-public, body.web-account, body.web-auth) .account__field input,
:where(body.web-public, body.web-account, body.web-auth) .account__field select,
:where(body.web-public, body.web-account, body.web-auth)
    .account__field
    textarea {
    min-height: 48px;
    border-radius: 7px;
    font: inherit;
    font-size: 14px;
    border-color: #ccd7e5;
    background: #fff;
    color: #090f37;
}
:where(body.web-public, body.web-account, body.web-auth) .account__hint {
    font-size: 13px;
    color: #5b647a;
    line-height: 1.6;
}
:where(body.web-public, body.web-account, body.web-auth)
    .account__exchange-hint {
    opacity: 1;
    color: #536079;
}
:where(body.web-public, body.web-account, body.web-auth) .account__facts dt {
    font-family: inherit;
    font-size: 12px;
    letter-spacing: 0;
}
:where(body.web-public, body.web-account, body.web-auth) .overview-checks {
    margin-block: 25px;
}
:where(body.web-public, body.web-account, body.web-auth) .overview-checks-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
}
:where(body.web-public, body.web-account, body.web-auth) .overview-checks h2 {
    font-size: 22px;
}
:where(body.web-public, body.web-account, body.web-auth) .overview-checks ul {
    list-style: none;
    padding: 0;
    margin-block: 15px 0;
}
:where(body.web-public, body.web-account, body.web-auth) .overview-checks li a {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 13px 0;
    border-top: 1px solid #e2e8f0;
    font-size: 14px;
    color: #155c9e;
}
:where(body.web-public, body.web-account, body.web-auth)
    .overview-checks
    li
    span {
    color: #59657a;
    font-size: 12px;
}
:where(body.web-public, body.web-account, body.web-auth) .crcd-reference .page {
    width: 100%;
    padding: 20px 0;
}
:where(body.web-public, body.web-account, body.web-auth)
    .crcd-reference
    .doc-item
    h2 {
    font-size: 24px;
}
:where(body.web-public, body.web-account, body.web-auth)
    .crcd-reference
    .doc-toc {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
:where(body.web-public, body.web-account, body.web-auth)
    .image-example
    .home-wrap {
    padding: 20px 0;
}
:where(body.web-public, body.web-account, body.web-auth)
    .image-example
    .pimport-samples {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
:where(body.web-public, body.web-account, body.web-auth) .image-example figure {
    margin: 0;
}
:where(body.web-public, body.web-account, body.web-auth)
    .image-example
    figcaption {
    font-size: 12px;
    color: #59657a;
    margin-top: 12px;
}
.web-account .footer {
    padding-left: 248px;
}
.web-account .footer .wrap {
    padding-inline: 40px;
}

.web-auth > main {
    min-height: calc(100vh - 88px);
}
.web-auth .auth-product-layout {
    width: min(1050px, calc(100% - 64px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    align-items: start;
    gap: clamp(50px, 7vw, 110px);
    padding-block: 65px 85px;
}
.web-auth .account {
    padding: 0;
}
.web-auth .account__inner {
    max-width: none;
}
.web-auth .account__inner h1 {
    font-size: 37px;
    letter-spacing: -0.04em;
}
.web-auth .account__inner .account__form {
    border: 0;
    padding: 0;
    border-radius: 0;
}
.web-auth .account__form {
    gap: 21px;
}
.web-auth .account__lede {
    margin-bottom: 28px;
    font-size: 14px;
}
.web-auth .auth-product-aside {
    background: #edf4fb;
    border-radius: 13px;
    padding: 34px;
    margin-top: 8px;
}
.web-auth .auth-product-aside h2 {
    font-size: 32px;
    line-height: 1.12;
    margin: 14px 0 18px;
    letter-spacing: -0.04em;
}
.web-auth .auth-product-aside p {
    font-size: 14px;
    color: #536079;
    line-height: 1.7;
}
.web-auth .auth-product-aside img {
    margin-top: 25px;
    border-radius: 7px;
    background: #fff;
    width: 100%;
}
.web-auth .auth-product-aside ul {
    display: grid;
    gap: 11px;
    margin: 25px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    font-weight: 600;
}
.web-auth .auth-product-aside li::before {
    content: '✓';
    color: var(--blue-text, #115d9f);
    margin-right: 10px;
}
.web-auth .register {
    padding: 0;
}
.web-auth .register__layout {
    display: block;
}
.web-auth .register__aside {
    display: none;
}
.web-auth .register__card {
    border: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
}
.web-auth .register__head h1 {
    font-size: 37px;
}
.web-auth .register__steps {
    display: none;
}
.web-auth .register__form {
    padding: 0;
}

:where(body.web-public, body.web-account, body.web-auth) .website-video {
    width: min(960px, calc(100% - 36px));
    padding: 16px;
    border-radius: 14px;
}
:where(body.web-public, body.web-account, body.web-auth)
    .website-video
    > button {
    margin: 0 0 12px auto;
    display: flex;
    font-size: 27px;
}
:where(body.web-public, body.web-account, body.web-auth) .website-video video {
    display: block;
    width: 100%;
    max-height: 72vh;
    border-radius: 8px;
    background: #090f37;
}
.web-public .footer img,
.web-auth .footer img,
.web-account .footer img {
    width: 85px;
    height: 48px;
}
.web-public .legal {
    max-width: 880px;
    margin: 0 auto;
    padding-block: 60px 80px;
}
.web-public .legal h1 {
    font-size: clamp(33px, 5vw, 56px);
    letter-spacing: -0.035em;
}
.web-public .legal h2 {
    font-size: 24px;
    margin-top: 38px;
}
.web-public .legal p,
.web-public .legal li {
    font-size: 15px;
    line-height: 1.85;
    color: #4d5870;
}

@media (min-width: 961px) {
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .mobile-menu.open {
        display: none;
    }
}
@media (max-width: 1050px) {
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .main-nav {
        gap: 20px;
        margin-left: 0;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .header-inner {
        gap: 15px;
    }
    .web-account .account-layout {
        grid-template-columns: 210px minmax(0, 1fr);
    }
    .web-account .footer {
        padding-left: 210px;
    }
    .web-account .account {
        padding-inline: 26px;
    }
}
@media (max-width: 960px) {
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .main-nav {
        display: none;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .menu-button {
        display: inline-flex;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .header-inner {
        width: calc(100% - 40px);
    }
    .web-account .account-layout {
        display: block;
    }
    .web-account .account-sidebar {
        display: none;
    }
    .web-account .footer {
        padding-left: 0;
    }
    .web-auth .auth-product-layout {
        width: min(520px, calc(100% - 40px));
        display: block;
        padding-top: 40px;
    }
    .web-auth .auth-product-aside {
        margin-top: 40px;
    }
}
@media (max-width: 560px) {
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .header-actions
        .nav__cta {
        display: none;
    }
    :where(body.web-public, body.web-account, body.web-auth) .main-header.nav {
        height: 76px;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .brand
        img {
        width: 85px;
        height: 50px;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .header-actions {
        gap: 5px;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .header-actions
        .btn {
        padding: 10px 11px;
        min-height: 44px;
        font-size: 11px;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .login-link {
        display: none;
    }
    :where(body.web-public, body.web-account, body.web-auth)
        .main-header
        .lang-button {
        padding: 8px;
    }
    .web-account .account {
        padding: 28px 20px 52px;
    }
    .web-account .footer .wrap {
        padding-inline: 0;
    }
    .web-auth .auth-product-layout {
        padding-block: 34px 55px;
    }
    .web-public .legal {
        padding: 36px 20px 55px;
    }
}
@media print {
    :where(body.web-public, body.web-account, body.web-auth) .main-header,
    :where(body.web-public, body.web-account, body.web-auth) .account-sidebar,
    :where(body.web-public, body.web-account, body.web-auth) .footer {
        display: none !important;
    }
    .web-account .account-layout {
        display: block;
    }
    .web-account .account-layout > main {
        background: #fff;
    }
}

/* F204 library: genuine metadata cards, with a single on-demand preview. */
.web-account .library-help {
    margin: 0 0 24px;
    color: var(--muted);
    font-size: 13px;
}
.web-account .library-help summary {
    cursor: pointer;
    min-height: 44px;
    display: flex;
    align-items: center;
}
.web-account .library-help .page-teaser {
    margin-block: 10px;
}
.web-account .library-views {
    display: flex;
    gap: 4px;
    justify-content: flex-end;
    margin-block: -4px 10px;
}
.web-account .library-views button {
    font-size: 12px;
    min-height: 44px;
    border: 1px solid transparent;
}
.web-account .library-views [aria-pressed='true'] {
    border-color: #cfdeed;
    background: #eaf3fc;
    color: #115d9f;
}
.web-account [data-courses-view-mode='cards'] {
    display: block;
    border: 0;
    background: none;
    box-shadow: none;
}
.web-account [data-courses-view-mode='cards'] thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
}
.web-account [data-courses-view-mode='cards'] tbody {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.web-account [data-courses-view-mode='cards'] .account__course-row {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid #dfe6ef;
    border-radius: 11px;
    background: #fff;
    box-shadow: 0 3px 12px #090f3703;
    transition:
        border-color 0.2s,
        box-shadow 0.2s;
}
.web-account [data-courses-view-mode='cards'] .account__course-row:hover,
.web-account
    [data-courses-view-mode='cards']
    .account__course-row:focus-visible {
    border-color: #9abbdc;
    box-shadow: 0 8px 24px #090f370b;
    outline-offset: 3px;
}
.web-account [data-courses-view-mode='cards'] .account__course-row td {
    display: block;
    padding: 0;
    border: 0;
    font-size: 12px;
    color: #626d80;
    white-space: normal;
    overflow-wrap: anywhere;
}
.web-account
    [data-courses-view-mode='cards']
    .account__course-row
    td:first-child {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.45;
    color: #090f37;
    min-height: 70px;
    padding: 0 18px 16px 0;
    position: relative;
}
.web-account
    [data-courses-view-mode='cards']
    .account__course-row
    td:first-child::after {
    content: '↗';
    position: absolute;
    right: 0;
    top: 0;
    color: #115d9f;
}
.web-account [data-courses-view-mode='cards'] .account__course-row td + td {
    margin-top: 5px;
}
.web-account
    [data-courses-view-mode='cards']
    .account__course-row
    td[data-label]
    + td[data-label]::before {
    content: attr(data-label) ': ';
    content: attr(data-label) ': ' / '';
    display: inline;
    font-size: 11px;
    font-weight: 400;
    color: #626d80;
}
.web-account [data-courses-view-mode='cards'] .account__course-row.is-expanded {
    grid-column: 1 / -1;
    border-color: #1975c8;
    background: #edf5fc;
}
.web-account [data-courses-view-mode='cards'] .is-expanded td:first-child {
    min-height: auto;
    padding-bottom: 4px;
}
.web-account [data-courses-view-mode='cards'] .account__preview-row {
    display: block;
    grid-column: 1 / -1;
    border: 1px solid #dfe6ef;
    border-radius: 11px;
    padding: 20px;
    background: #fff;
}
.web-account [data-courses-view-mode='cards'] .account__preview-row > td {
    display: block;
    padding: 0;
    border: 0;
    width: 100%;
}
@media (max-width: 1199px) {
    .web-account [data-courses-view-mode='cards'] tbody {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 599px) {
    .web-account [data-courses-view-mode='cards'] tbody {
        grid-template-columns: minmax(0, 1fr);
    }
    .web-account
        [data-courses-view-mode='cards']
        .account__course-row
        td:first-child {
        min-height: auto;
        padding-bottom: 12px;
    }
}

.web-account [data-account-stage][data-state='error'] .dash__body,
.web-account [data-account-stage][data-state='error'] .account__loading {
    display: none;
}

.web-account .library-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
}
.web-account .library-toolbar .account__search {
    flex: 1;
    margin: 0;
}
.web-account .library-toolbar .library-views {
    flex: none;
    margin: 0;
}
.web-account [data-courses-window] {
    background: transparent;
    border: 0;
    color: #59657a;
    font-size: 12px;
    padding: 0;
    margin-block: 0 18px;
}
.web-account [data-account-courses] .account__pagination {
    margin-block: 16px;
}
.web-account [data-account-courses] > .library-help {
    margin-top: 25px;
}
.web-account [data-account-courses][data-state='loading']::before {
    content: none;
}
.web-account [data-account-courses] .courses-loading {
    display: none;
    color: #59657a;
    padding-block: 24px;
}
.web-account [data-account-courses][data-state='loading'] .courses-loading {
    display: block;
}
@media (max-width: 479px) {
    .web-account .library-toolbar {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
    }
}

.web-account [data-courses-retry] {
    display: none;
}
.web-account [data-account-courses][data-state='error'] [data-courses-retry] {
    display: inline-flex;
}

.web-account .library-toolbar {
    flex-wrap: wrap;
}
.web-account .library-toolbar .account__search {
    flex: 1 1 220px;
    min-width: 0;
}
.web-account .library-filters {
    display: flex;
    flex: 1 1 310px;
    align-items: end;
    flex-wrap: wrap;
    gap: 8px;
}
.web-account .library-filters label {
    flex: 1;
    min-width: 0;
    display: grid;
    gap: 4px;
    color: #536079;
    font-size: 11px;
}
.web-account .library-filters select {
    min-height: 44px;
    width: 100%;
    max-width: 100%;
    background: #fff;
    border: 1px solid #cfdae7;
    border-radius: 7px;
    padding: 10px 8px;
    font: inherit;
    font-size: 12px;
    color: #39465f;
}
.web-account .library-filters [data-courses-reset] {
    display: none;
    min-height: 44px;
    font-size: 12px;
}
.web-account .has-filters [data-courses-reset] {
    display: inline-flex;
}
.web-account .course-source {
    display: block;
    width: fit-content;
    padding: 3px 7px;
    margin-top: 10px;
    border-radius: 4px;
    background: #edf4fb;
    color: #385d83;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
}
.web-account .settings-details {
    margin-block: 14px 24px;
    color: #536079;
    font-size: 13px;
    line-height: 1.6;
}
.web-account .settings-details summary {
    min-height: 44px;
    display: flex;
    align-items: center;
    cursor: pointer;
}
.web-account .settings-details summary::before {
    content: '+';
    margin-right: 9px;
    color: #115d9f;
}
.web-account .settings-details[open] summary::before {
    content: '−';
}
.web-account .dashboard-actions {
    margin-block: 24px 18px;
}
@media (max-width: 479px) {
    .web-account .library-toolbar .library-filters,
    .web-account .library-toolbar .account__search {
        flex: auto;
        width: 100%;
    }
}

:where(body.web-public, body.web-account, body.web-auth) .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
