:root {
    --site-nav-surface: #1b2430;
    --site-nav-control: #141d27;
    --site-nav-line: #313d4b;
    --site-nav-ink: #e8edf4;
}

html[data-workspace-theme="light"] {
    color-scheme: light;
    --site-nav-surface: #fff;
    --site-nav-control: #f4f6fa;
    --site-nav-line: #e1e7ef;
    --site-nav-ink: #202936;
}

html[data-workspace-theme="dark"] {
    color-scheme: dark;
}

/* Shared navigation and theme controls are available on every page. */
#ori-header {
    position: relative;
    z-index: 20;
    padding: 12px clamp(16px, 5vw, 80px);
    border-bottom: 1px solid var(--site-nav-line);
    background: var(--site-nav-surface);
    box-shadow: 0 3px 16px rgba(10, 16, 24, .18);
}

#ori-header .ori-main-navigation li a {
    color: var(--site-nav-ink) !important;
    font-weight: 700;
}

#ori-header .ori-main-navigation li a:hover,
#ori-header .ori-main-navigation li a:focus-visible {
    color: #f28a24 !important;
}

#ori-header .ori-header-login-signup .dropdown > button {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin: 0;
    padding: 0 12px !important;
    border: 1px solid var(--site-nav-line);
    border-radius: 999px;
    background: var(--site-nav-control);
    color: var(--site-nav-ink) !important;
    letter-spacing: normal;
}

#ori-header .workspace-logout-form {
    margin: 0;
}

#ori-header .workspace-theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0 10px 0 0;
    padding: 0;
    border: 1px solid var(--site-nav-line);
    border-radius: 999px;
    background: var(--site-nav-control);
    color: var(--site-nav-ink);
    cursor: pointer;
    transition: border-color .16s ease, background-color .16s ease;
}

#ori-header .workspace-theme-toggle:hover {
    border-color: #f28a24;
}

#ori-header .workspace-theme-toggle i {
    color: #f28a24;
    font-size: 1rem;
}

#ori-header .ori-header-login-signup .workspace-logout-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    margin: 0;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: #ed7621;
    color: #fff;
    font-size: .82rem;
    font-weight: 750;
    letter-spacing: .06em;
    line-height: 1;
    white-space: nowrap;
    transition: background-color .16s ease, transform .16s ease;
}

#ori-header .ori-header-login-signup .workspace-logout-button:hover {
    background: #d96212;
    transform: translateY(-1px);
}

#ori-header .ori-header-login-signup .workspace-logout-button i {
    color: inherit;
    font-size: .92rem;
}

#ori-header .mobile_menu_content {
    background: var(--site-nav-surface);
}

#ori-header .mobile_menu_content .mobile-main-navigation .navbar-nav li a {
    color: var(--site-nav-ink);
}

#ori-header .mobile_menu_content .mobile-main-navigation .navbar-nav li a:hover,
#ori-header .mobile_menu_content .mobile-main-navigation .navbar-nav li a:focus-visible {
    color: #f28a24;
}

#ori-header .mobile_menu_button,
#ori-header .mobile_menu_close {
    color: var(--site-nav-ink);
}

#ori-header .mobile_menu_content .workspace-theme-toggle {
    margin: 0;
}

#ori-header button:focus-visible,
#ori-header a:focus-visible {
    outline: 3px solid rgba(242, 138, 36, .45);
    outline-offset: 2px;
}

/* Light theme for the public content sections; photographic hero art stays intact. */
html[data-workspace-theme="light"] body:not(.workspace-page) {
    color: #202936;
    background: #f4f6fa;
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-service-page-service {
    color: #202936;
    background-color: #f4f6fa;
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-breadcrumbs .ori-breadcrumb-content h1,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-breadcrumbs .ori-breadcrumb-content li {
    color: #202936;
    text-shadow: none;
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-breadcrumbs {
    background-image:
        radial-gradient(circle at 18% 48%, rgba(242, 138, 36, .18), transparent 34%),
        linear-gradient(115deg, rgba(248, 250, 253, .72), rgba(229, 236, 245, .75)),
        url("/assets/img/bg/bread-bg.png") !important;
    background-position: center, center, center;
    background-size: cover, cover, cover;
    background-repeat: no-repeat;
}

html[data-workspace-theme="light"] body:not(.workspace-page) .line_animation .line_area {
    border-right-color: rgba(32, 41, 54, .045);
}

html[data-workspace-theme="light"] body:not(.workspace-page) .line_animation .line_area::before {
    background-image: linear-gradient(0deg, rgba(32, 41, 54, .35), transparent);
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title h1,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title h2,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title h3,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title h4,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title h5,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title h6,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-price-plan .ori-inner-section-title .sub-title {
    color: #202936;
}

/* The API reference keeps several legacy dark-mode colors in its inline styles. */
html[data-workspace-theme="light"] body:not(.workspace-page) #api-sidebar .menu_tab {
    border-color: #e1e7ef;
    background: #fff;
    color: #4b5869 !important;
}

html[data-workspace-theme="light"] body:not(.workspace-page) #api-sidebar .menu_tab:hover,
html[data-workspace-theme="light"] body:not(.workspace-page) #api-sidebar .menu_tab:focus-visible {
    background: #edf2f7;
    color: #202936 !important;
}

html[data-workspace-theme="light"] body:not(.workspace-page) .nav-tabs .nav-link:not(.active) {
    color: #4b5869 !important;
}

html[data-workspace-theme="light"] body:not(.workspace-page) .nav-tabs .nav-link.active {
    color: #202936;
    background-color: #fff;
}

html[data-workspace-theme="light"] body:not(.workspace-page) .nav-code-link:not(.active) {
    border-color: #d5dde7;
    color: #4b5869;
}

html[data-workspace-theme="light"] body:not(.workspace-page) .nav-code-link.active {
    background-color: #e9edf3 !important;
    color: #202936;
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-service-page-service .ori-service-page-service-inner-item {
    background-color: #fff;
    box-shadow: 0 10px 30px rgba(30, 45, 65, .08);
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-service-page-service .ori-service-page-service-inner-item h3 a,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-service-page-service .ori-service-page-service-inner-item p,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play h1,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play h2,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play h3,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play h4,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play h5,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play h6,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play p,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-about-play li {
    color: #202936;
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-footer {
    color: #202936;
    background-color: #e9edf3;
}

html[data-workspace-theme="light"] body:not(.workspace-page) #ori-footer .ori-copyright-text,
html[data-workspace-theme="light"] body:not(.workspace-page) #ori-footer a {
    color: #4b5869;
}
