:root {
    --bg: #f5f6f8;
    --surface: rgba(255, 255, 255, 0.9);
    --surface-elevated: #ffffff;
    --text: #111827;
    --muted: #4b5563;
    --line: #d9dee8;
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    --focus: #2563eb;
    --font-size-base: clamp(1rem, 0.95rem + 0.28vw, 1.125rem);
    --font-size-small: clamp(0.9rem, 0.86rem + 0.12vw, 0.98rem);
    --font-size-h1: clamp(1.7rem, 1.5rem + 1.2vw, 2.6rem);
    --touch-target: 44px;
}

:root[data-theme='dark'] {
    --bg: #141414;
    --surface: #1c1c1c;
    --surface-elevated: #242424;
    --text: #f2f2f2;
    --muted: #b3b3b3;
    --line: #353535;
    --shadow: 0 10px 28px rgba(0, 0, 0, 0.4);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

html {
    font-size: 100%;
}

body {
    font-family: 'Noto Sans', sans-serif;
    font-size: var(--font-size-base);
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    font-size: var(--font-size-h1);
}

p,
li,
dd,
dt {
    font-size: 1em;
}

.skip-link {
    position: fixed;
    left: 0.75rem;
    top: 0.75rem;
    z-index: 1000;
    border-radius: 0.5rem;
    background: var(--text);
    color: var(--bg);
    padding: 0.6rem 0.85rem;
    font-size: var(--font-size-small);
    font-weight: 700;
    transform: translateY(-180%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bg) 70%, transparent);
}

.menu-toggle span {
    width: 24px;
    height: 3px;
    background: var(--text);
    border-radius: 99px;
}

.site-header .menu-toggle,
.site-header .mobile-account-toggle {
    width: 2.25rem !important;
    height: 2.25rem !important;
    min-width: 2.25rem !important;
    min-height: 2.25rem !important;
    padding: 0 !important;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1 / 1;
    line-height: 1;
}

.site-header .menu-toggle span {
    width: 14px;
    height: 2px;
}

.mobile-header-actions {
    justify-self: end;
}

.mobile-account-toggle {
    font-weight: 700;
    color: var(--text);
}

.mobile-account-icon {
    font-size: 1.35rem;
    line-height: 1;
}

.site-header .mobile-account-icon {
    width: 1.1rem;
    height: 1.1rem;
    display: block;
    flex: 0 0 auto;
}

.mobile-account-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
}

.mobile-account-modules .moduletable,
.mobile-account-modules .module {
    margin: 0;
}

.mobile-account-modules .mod-menu,
.mobile-account-modules ul.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.5rem;
}

.mobile-account-modules .mod-menu > li,
.mobile-account-modules ul.menu > li {
    margin: 0;
}

.mobile-account-modules .mod-menu > li > a,
.mobile-account-modules .mod-menu > li > span,
.mobile-account-modules ul.menu > li > a,
.mobile-account-modules ul.menu > li > span {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface);
    color: var(--text);
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.mobile-account-modules .mod-menu > li.active > a,
.mobile-account-modules ul.menu > li.current > a {
    border-color: color-mix(in srgb, var(--text) 22%, var(--line));
}

.mobile-account-modules .mod-menu > li > a:hover,
.mobile-account-modules ul.menu > li > a:hover {
    background: color-mix(in srgb, var(--surface) 80%, var(--text) 8%);
}

.desktop-menu-item.is-active > a {
    color: var(--text);
}

.desktop-menu-item > a {
    font-size: var(--font-size-small);
    min-height: var(--touch-target);
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.desktop-menu-item.has-children::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 12px;
}

.desktop-submenu-wrap > .desktop-menu-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.desktop-submenu-wrap .desktop-menu-item {
    width: 100%;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.desktop-menu-item.has-children:hover > .desktop-submenu-wrap,
.desktop-menu-item.has-children:focus-within > .desktop-submenu-wrap {
    display: block;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 2000;
    pointer-events: none;
}

.mobile-menu-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.42);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(96vw, 500px);
    height: 100%;
    background: var(--bg);
    border-left: 1px solid var(--line);
    transform: translateX(100%);
    transition: transform 0.28s ease;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
}

.mobile-menu-panel-head,
.mobile-menu-level-head {
    background: var(--bg);
    width: 100%;
}

.mobile-close,
.mobile-parent-label {
    visibility: visible !important;
    opacity: 1 !important;
}

.mobile-theme-toggle,
.mobile-close {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
    border-radius: 999px;
    padding: 0.55rem 0.95rem;
    gap: 0.5rem;
    font-size: 1rem;
}

.mobile-btn-icon {
    font-size: 1.2em;
    line-height: 1;
}

.mobile-btn-text {
    font-size: 0.95em;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.mobile-menu-content {
    position: relative;
    min-height: 0;
    overflow: hidden;
}

.mobile-menu-level-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    column-gap: 0.75rem;
}

.mobile-back {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.mobile-back[hidden] {
    display: inline-flex !important;
    visibility: hidden;
}

.mobile-parent-label {
    justify-self: center;
    text-align: center;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
}

.mobile-head-spacer {
    justify-self: end;
    width: 6rem;
    height: 1px;
}

.mobile-menu.is-open {
    pointer-events: auto;
}

.mobile-menu.is-open .mobile-menu-overlay {
    opacity: 1;
}

.mobile-menu.is-open .mobile-menu-panel {
    transform: translateX(0);
}

.mobile-menu-list {
    list-style: none;
    margin: 0;
    padding: 0.5rem 0;
}

.mobile-menu-item-link,
.mobile-submenu-open {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.25rem;
    color: var(--text);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
    font: inherit;
    font-size: clamp(1.05rem, 1rem + 0.5vw, 1.2rem);
    line-height: 1.45;
    cursor: pointer;
    min-height: calc(var(--touch-target) + 8px);
}

.mobile-menu-item-link:hover,
.mobile-submenu-open:hover {
    background: rgba(127, 127, 127, 0.08);
}

.mobile-menu-pane {
    position: absolute;
    inset: 0;
    background: var(--bg);
    transition: transform 0.25s ease;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-pane.enter-from-right {
    transform: translateX(100%);
}

.mobile-menu-pane.enter-from-left {
    transform: translateX(-100%);
}

.mobile-menu-pane.active {
    transform: translateX(0);
}

.mobile-menu-pane.exit-to-left {
    transform: translateX(-28%);
}

.mobile-menu-pane.exit-to-right {
    transform: translateX(100%);
}

.mobile-account {
    position: fixed;
    inset: 0;
    z-index: 2050;
    pointer-events: none;
}

.mobile-account-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.24s ease;
}

.mobile-account-panel {
    position: absolute;
    right: 0;
    left: 0;
    bottom: 0;
    margin: 0 auto;
    width: min(100%, 42rem);
    max-height: min(78vh, 32rem);
    overflow-y: auto;
    background: var(--bg);
    border-top: 1px solid var(--line);
    border-radius: 1.4rem 1.4rem 0 0;
    transform: translateY(100%);
    transition: transform 0.28s ease;
}

.mobile-account.is-open {
    pointer-events: auto;
}

.mobile-account.is-open .mobile-account-overlay {
    opacity: 1;
}

.mobile-account.is-open .mobile-account-panel {
    transform: translateY(0);
}

.mobile-account-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.mobile-account-title {
    font-size: 1.1rem;
}

.mobile-account-close {
    min-height: var(--touch-target);
    min-width: var(--touch-target);
}

.mobile-account-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
}

.mobile-account-user-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    font-size: 1rem;
    font-weight: 700;
}

.mobile-account-user-name {
    min-width: 0;
    font-size: 1rem;
    font-weight: 600;
    overflow-wrap: anywhere;
}

.mobile-account-links {
    display: grid;
    gap: 0.5rem;
}

.mobile-account-link {
    display: block;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface);
    color: var(--text);
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
}

.mobile-account-link.is-danger {
    border-color: color-mix(in srgb, #b91c1c 35%, var(--line));
}

.mobile-account-link:hover {
    background: color-mix(in srgb, var(--surface) 80%, var(--text) 8%);
}

.back-to-top {
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.back-to-top.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

@media (min-width: 1024px) {
    .mobile-account-toggle,
    .mobile-header-actions {
        display: none !important;
    }

}

.blog-item-title .item-title,
.blog-item-title h2 {
    margin: 0;
    font-size: clamp(1.35rem, 1.2rem + 0.5vw, 1.7rem);
    line-height: 1.25;
}

.blog-item-title a,
.com-content-featured h2 a {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: color-mix(in oklab, var(--text) 35%, transparent);
    text-underline-offset: 0.14em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.blog-item-title a:hover,
.blog-item-title a:focus-visible,
.com-content-featured h2 a:hover,
.com-content-featured h2 a:focus-visible {
    color: var(--accent);
    text-decoration-color: currentColor;
}

.ap-article-hit-area {
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.ap-article-hit-area:hover {
    background: color-mix(in oklab, var(--surface-elevated) 88%, #ffffff);
    box-shadow: 0 14px 30px -26px rgba(15, 23, 42, 0.42);
}

.ap-article-hit-area:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.com-content-article__body,
.com-content-category-blog,
.com-content-featured,
.com-content-category {
    font-size: 1em;
}

.com-content-article article,
.com-content-category-blog article,
.com-content-featured article,
.com-content-category section,
.com-content-categories section {
    background: var(--surface-elevated);
}

.com-content-article__body {
    max-width: 72ch;
}

body.menu-open {
    overflow: hidden;
}

.ap-users-view {
    font-size: 1em;
}

.ap-osm-view {
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface-elevated);
    padding: 1.1rem;
    box-shadow: var(--shadow);
}

.ap-osm-view .osm-page-title {
    margin: 0 0 1rem;
    font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.9rem);
    line-height: 1.25;
}

.ap-osm-view .osm-message,
.ap-osm-view .osm-description,
.ap-osm-view .text-info {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    padding: 0.85rem 0.95rem;
    background: var(--surface);
    margin: 0 0 0.95rem;
}

.ap-osm-view form {
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: var(--surface);
    padding: 0.95rem;
    margin-top: 0.95rem;
}

.ap-osm-view #osm-profile-page > form {
    margin-top: 0;
}

.ap-osm-view .ap-osm-profile-fields {
    display: grid;
    gap: 0.25rem;
}

.ap-osm-view joomla-tab {
    display: block;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface);
    overflow: hidden;
}

.ap-osm-view joomla-tab > div[role='tablist'] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.6rem;
    border-bottom: 1px solid var(--line);
    background: var(--surface-elevated);
}

.ap-osm-view joomla-tab > div[role='tablist'] > button[role='tab'] {
    appearance: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    min-height: var(--touch-target);
    padding: 0.45rem 0.95rem;
    font: inherit;
    font-size: 0.94rem;
    font-weight: 700;
    line-height: 1.2;
}

.ap-osm-view joomla-tab > div[role='tablist'] > button[role='tab'][aria-selected='true'] {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.ap-osm-view joomla-tab > button[aria-controls] {
    appearance: none;
    width: 100%;
    min-height: var(--touch-target);
    padding: 0.7rem 0.9rem;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font: inherit;
    font-size: 0.96rem;
    font-weight: 700;
    text-align: left;
}

.ap-osm-view joomla-tab > button[aria-controls][aria-expanded='true'],
.ap-osm-view joomla-tab > button[aria-controls][aria-selected='true'] {
    background: color-mix(in srgb, var(--surface) 78%, var(--text) 8%);
}

.ap-osm-view joomla-tab > button[aria-controls] .accordion-title {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.7rem;
}

.ap-osm-view joomla-tab > joomla-tab-element {
    padding: 0.75rem;
    background: var(--surface);
}

.ap-osm-view .nav-tabs,
.ap-osm-view .tab-list,
.ap-osm-view [role='tablist'] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    border-bottom: 1px solid var(--line);
    margin: 0 0 0.95rem;
    padding: 0 0 0.65rem;
}

.ap-osm-view .tab-content {
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface);
    padding: 0.8rem;
}

.ap-osm-view .tab-content > .tab-pane,
.ap-osm-view .tab-content > .active,
.ap-osm-view .tab-pane.active {
    background: transparent;
}

.ap-osm-view .nav-tabs li,
.ap-osm-view .tab-list li {
    list-style: none;
    margin: 0;
}

.ap-osm-view .nav-tabs a,
.ap-osm-view .nav-tabs button,
.ap-osm-view .nav-tabs .nav-link,
.ap-osm-view .tab-list a,
.ap-osm-view [role='tab'],
.ap-osm-view [aria-selected='true'] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    padding: 0.5rem 0.95rem;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}

.ap-osm-view .nav-tabs .active a,
.ap-osm-view .nav-tabs .active button,
.ap-osm-view .nav-tabs .nav-link.active,
.ap-osm-view [role='tab'][aria-selected='true'],
.ap-osm-view [role='tab'].active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.ap-osm-view .control-group,
.ap-osm-view .mb-3,
.ap-osm-view .form-group {
    margin-bottom: 0.95rem;
}

.ap-osm-view .control-label,
.ap-osm-view label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.95em;
    font-weight: 600;
}

.ap-osm-view .controls {
    min-width: 0;
}

.ap-osm-view .password-group,
.ap-osm-view .input-group {
    width: 100%;
    max-width: 100%;
}

.ap-osm-view .input-group,
.ap-osm-view .password-group .input-group {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap !important;
}

.ap-osm-view .password-group .form-control,
.ap-osm-view .input-group > .form-control {
    flex: 1 1 auto;
    min-width: 0;
}

.ap-osm-view .password-group .input-password-toggle,
.ap-osm-view .input-group > .btn {
    flex: 0 0 auto;
}

.ap-osm-view input[type='text'],
.ap-osm-view input[type='email'],
.ap-osm-view input[type='password'],
.ap-osm-view input[type='tel'],
.ap-osm-view input[type='url'],
.ap-osm-view input[type='number'],
.ap-osm-view input[type='date'],
.ap-osm-view input[type='search'],
.ap-osm-view textarea,
.ap-osm-view select,
.ap-osm-view .form-control,
.ap-osm-view .inputbox {
    width: 100%;
    min-height: var(--touch-target);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface-elevated);
    color: var(--text);
    padding: 0.72rem 0.85rem;
    font: inherit;
    line-height: 1.4;
}

.ap-osm-view textarea {
    min-height: 7rem;
    resize: vertical;
}

.ap-osm-view input:focus,
.ap-osm-view textarea:focus,
.ap-osm-view select:focus {
    outline: 3px solid color-mix(in srgb, var(--focus) 46%, transparent);
    outline-offset: 0;
    border-color: var(--focus);
}

.ap-osm-view .btn,
.ap-osm-view .btn-primary,
.ap-osm-view .form-actions input[type='submit'],
.ap-osm-view .osm-taskbar a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    border-radius: 999px;
    border: 1px solid var(--text);
    background: var(--text);
    color: var(--bg);
    padding: 0.66rem 1.15rem;
    font-size: 0.98em;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

.ap-osm-view .form-actions {
    margin-top: 0.95rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ap-osm-view .osm-taskbar ul {
    list-style: none;
    padding: 0;
    margin: 0.95rem 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.ap-osm-view .osm-upgrade-options {
    list-style: none;
    margin: 0.95rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.ap-osm-view .osm-upgrade-option {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface);
    padding: 0.75rem 0.9rem;
}

.ap-osm-view .osm-upgrade-option input[type='radio'] {
    width: 1.15rem;
    height: 1.15rem;
    margin: 0.2rem 0.65rem 0 0;
    vertical-align: top;
    accent-color: var(--focus);
}

.ap-osm-view .osm-upgrade-option label {
    display: inline;
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: var(--text);
    font-weight: 500;
}

.ap-osm-view .osm-upgrade-option input[type='radio']:checked + label {
    font-weight: 700;
}

.ap-osm-view .osm-upgrade-option:has(input[type='radio']:checked) {
    border-color: color-mix(in srgb, var(--focus) 55%, var(--line));
    background: color-mix(in srgb, var(--surface) 84%, var(--focus) 8%);
}

.ap-osm-view .osm-tabs,
.ap-osm-view .nav-tabs {
    border-bottom: 1px solid var(--line);
    margin-bottom: 0.9rem;
}

.ap-osm-view table {
    width: 100%;
    border-collapse: collapse;
}

.ap-osm-view .ap-osm-table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    background: var(--surface-elevated);
}

.ap-osm-view .ap-osm-table {
    min-width: 40rem;
    margin: 0;
    background: transparent;
}

.ap-osm-view th,
.ap-osm-view td {
    border-bottom: 1px solid var(--line);
    padding: 0.72rem 0.6rem;
    text-align: left;
    vertical-align: top;
}

.ap-osm-view th {
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 700;
}

.ap-osm-view td {
    font-size: 0.98rem;
}

.ap-osm-view .text-error {
    color: #b91c1c;
}

.ap-osm-view .ap-status-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 0.58rem;
    padding: 0.2rem 0.55rem;
    font-size: 0.86rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.ap-osm-view .ap-status-pill.is-active {
    background: #e9f8ef;
    border-color: #9ed9b0;
    color: #166534;
}

.ap-osm-view .ap-status-pill.is-expired {
    background: #fdecec;
    border-color: #f0b0b0;
    color: #991b1b;
}

.ap-osm-view .ap-status-pill.is-pending {
    background: #fff6dd;
    border-color: #e9d28d;
    color: #854d0e;
}

.ap-osm-view .ap-status-pill.is-cancelled,
.ap-osm-view .ap-status-pill.is-neutral {
    background: #f2f4f7;
    border-color: #ccd3dd;
    color: #334155;
}

.ap-osm-view .pagination {
    margin-top: 0.95rem;
}

:root[data-theme='dark'] .ap-osm-view,
:root[data-theme='dark'] .ap-osm-view form,
:root[data-theme='dark'] .ap-osm-view .osm-message,
:root[data-theme='dark'] .ap-osm-view .osm-description,
:root[data-theme='dark'] .ap-osm-view .text-info,
:root[data-theme='dark'] .ap-osm-view .ap-osm-table-wrap,
:root[data-theme='dark'] .ap-osm-view .tab-content,
:root[data-theme='dark'] .ap-osm-view .tab-content > .tab-pane,
:root[data-theme='dark'] .ap-osm-view .tab-content > .active,
:root[data-theme='dark'] .ap-osm-view .tab-pane.active {
    background: var(--surface) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}

:root[data-theme='dark'] .ap-osm-view .ap-osm-table,
:root[data-theme='dark'] .ap-osm-view table,
:root[data-theme='dark'] .ap-osm-view table th,
:root[data-theme='dark'] .ap-osm-view table td {
    background: transparent !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

:root[data-theme='dark'] .ap-osm-view table.table-striped tbody tr:nth-of-type(odd),
:root[data-theme='dark'] .ap-osm-view table.table-striped > tbody > tr:nth-of-type(odd),
:root[data-theme='dark'] .ap-osm-view .table-striped tbody tr:nth-of-type(odd) {
    background: color-mix(in srgb, var(--surface) 82%, #ffffff 6%) !important;
}

:root[data-theme='dark'] .ap-osm-view table.table-striped tbody tr:nth-of-type(even),
:root[data-theme='dark'] .ap-osm-view table.table-striped > tbody > tr:nth-of-type(even),
:root[data-theme='dark'] .ap-osm-view .table-striped tbody tr:nth-of-type(even) {
    background: color-mix(in srgb, var(--surface) 92%, #000000 8%) !important;
}

:root[data-theme='dark'] .ap-osm-view .nav-tabs a,
:root[data-theme='dark'] .ap-osm-view .nav-tabs button,
:root[data-theme='dark'] .ap-osm-view .nav-tabs .nav-link,
:root[data-theme='dark'] .ap-osm-view .tab-list a,
:root[data-theme='dark'] .ap-osm-view [role='tab'] {
    background: color-mix(in srgb, var(--surface) 88%, #ffffff 6%) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

:root[data-theme='dark'] .ap-osm-view .nav-tabs .active a,
:root[data-theme='dark'] .ap-osm-view .nav-tabs .active button,
:root[data-theme='dark'] .ap-osm-view .nav-tabs .nav-link.active,
:root[data-theme='dark'] .ap-osm-view [role='tab'][aria-selected='true'],
:root[data-theme='dark'] .ap-osm-view [role='tab'].active {
    background: var(--text) !important;
    color: var(--bg) !important;
    border-color: var(--text) !important;
}

:root[data-theme='dark'] .ap-osm-view .btn,
:root[data-theme='dark'] .ap-osm-view .btn-primary,
:root[data-theme='dark'] .ap-osm-view .form-actions input[type='submit'],
:root[data-theme='dark'] .ap-osm-view .osm-taskbar a {
    background: var(--surface-elevated) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}

:root[data-theme='dark'] .ap-osm-view .btn:hover,
:root[data-theme='dark'] .ap-osm-view .btn-primary:hover,
:root[data-theme='dark'] .ap-osm-view .form-actions input[type='submit']:hover,
:root[data-theme='dark'] .ap-osm-view .osm-taskbar a:hover {
    background: color-mix(in srgb, var(--surface-elevated) 75%, #ffffff 10%) !important;
}

:root[data-theme='dark'] .ap-osm-view .ap-status-pill.is-active {
    background: #123523;
    border-color: #1f6a45;
    color: #baf2cf;
}

:root[data-theme='dark'] .ap-osm-view .ap-status-pill.is-expired {
    background: #3b1717;
    border-color: #7b2d2d;
    color: #ffc9c9;
}

:root[data-theme='dark'] .ap-osm-view .ap-status-pill.is-pending {
    background: #3a2d12;
    border-color: #7a5f20;
    color: #ffe7a8;
}

:root[data-theme='dark'] .ap-osm-view .ap-status-pill.is-cancelled,
:root[data-theme='dark'] .ap-osm-view .ap-status-pill.is-neutral {
    background: #242933;
    border-color: #3b4351;
    color: #d8deea;
}

:root[data-theme='dark'] .ap-osm-view .osm-upgrade-option {
    background: var(--surface) !important;
    border-color: var(--line) !important;
}

:root[data-theme='dark'] .ap-osm-view .osm-upgrade-option:has(input[type='radio']:checked) {
    background: color-mix(in srgb, var(--surface) 78%, #ffffff 8%) !important;
    border-color: color-mix(in srgb, var(--focus) 52%, var(--line)) !important;
}

:root[data-theme='dark'] .ap-osm-view joomla-tab,
:root[data-theme='dark'] .ap-osm-view joomla-tab > div[role='tablist'],
:root[data-theme='dark'] .ap-osm-view joomla-tab > joomla-tab-element {
    background: var(--surface) !important;
    border-color: var(--line) !important;
}

:root[data-theme='dark'] .ap-osm-view joomla-tab > div[role='tablist'] > button[role='tab'],
:root[data-theme='dark'] .ap-osm-view joomla-tab > button[aria-controls] {
    background: color-mix(in srgb, var(--surface) 88%, #ffffff 6%) !important;
    color: var(--text) !important;
    border-color: var(--line) !important;
}

:root[data-theme='dark'] .ap-osm-view joomla-tab > div[role='tablist'] > button[role='tab'][aria-selected='true'] {
    background: var(--text) !important;
    color: var(--bg) !important;
    border-color: var(--text) !important;
}

:root[data-theme='dark'] .ap-osm-view .label,
:root[data-theme='dark'] .ap-osm-view .badge,
:root[data-theme='dark'] .ap-osm-view .text-warning,
:root[data-theme='dark'] .ap-osm-view .alert-warning {
    background: color-mix(in srgb, #7c5a00 35%, var(--surface)) !important;
    color: #f6e7bf !important;
    border-color: color-mix(in srgb, #7c5a00 45%, var(--line)) !important;
}

:root[data-theme='dark'] .ap-osm-view input:-webkit-autofill,
:root[data-theme='dark'] .ap-osm-view input:-webkit-autofill:hover,
:root[data-theme='dark'] .ap-osm-view input:-webkit-autofill:focus,
:root[data-theme='dark'] .ap-osm-view textarea:-webkit-autofill,
:root[data-theme='dark'] .ap-osm-view select:-webkit-autofill {
    -webkit-text-fill-color: var(--text);
    box-shadow: 0 0 0 1000px var(--surface-elevated) inset;
    transition: background-color 5000s ease-in-out 0s;
}

/* OSMembership profile screen hard overrides (high specificity) */
html[data-theme='dark'] #osm-profile-page,
html[data-theme='dark'] #osm-profile-page form,
html[data-theme='dark'] #osm-profile-page .tab-content,
html[data-theme='dark'] #osm-profile-page .tab-pane,
html[data-theme='dark'] #osm-profile-page .osm-description,
html[data-theme='dark'] #osm-profile-page .osm-message {
    background: #1c1c1c !important;
    color: #f2f2f2 !important;
    border-color: #353535 !important;
}

html[data-theme='dark'] #osm-profile-page .nav-tabs,
html[data-theme='dark'] #osm-profile-page .nav,
html[data-theme='dark'] #osm-profile-page .nav-tabs li a,
html[data-theme='dark'] #osm-profile-page .nav-tabs li button,
html[data-theme='dark'] #osm-profile-page .nav-tabs .nav-link {
    background: #232323 !important;
    color: #f2f2f2 !important;
    border-color: #353535 !important;
}

html[data-theme='dark'] #osm-profile-page .nav-tabs .active a,
html[data-theme='dark'] #osm-profile-page .nav-tabs .active button,
html[data-theme='dark'] #osm-profile-page .nav-tabs .nav-link.active {
    background: #f2f2f2 !important;
    color: #141414 !important;
    border-color: #f2f2f2 !important;
}

html[data-theme='dark'] #osm-profile-page table,
html[data-theme='dark'] #osm-profile-page table th,
html[data-theme='dark'] #osm-profile-page table td {
    background: transparent !important;
    color: #f2f2f2 !important;
    border-color: #353535 !important;
}

html[data-theme='dark'] #osm-profile-page table.table-striped tbody tr:nth-of-type(odd) {
    background: #222 !important;
}

html[data-theme='dark'] #osm-profile-page table.table-striped tbody tr:nth-of-type(even) {
    background: #1a1a1a !important;
}

html[data-theme='dark'] #osm-profile-page input,
html[data-theme='dark'] #osm-profile-page select,
html[data-theme='dark'] #osm-profile-page textarea,
html[data-theme='dark'] #osm-profile-page .form-control,
html[data-theme='dark'] #osm-profile-page .inputbox {
    background: #242424 !important;
    color: #f2f2f2 !important;
    border-color: #3a3a3a !important;
}

.ap-users-card {
    box-shadow: var(--shadow);
}

.ap-users-form {
    display: grid;
    gap: 1rem;
}

.ap-users-fieldset {
    border: 1px solid var(--line);
    border-radius: 0.9rem;
    padding: 0.95rem 1rem 1rem;
}

.ap-users-fieldset legend {
    margin: 0;
    padding: 0 0.4rem;
    font-size: 0.92em;
    font-weight: 700;
    color: var(--muted);
}

.ap-users-form label {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--muted);
    font-size: 0.95em;
    font-weight: 600;
}

.ap-users-form .control-group,
.ap-users-form .mb-3,
.ap-users-form .field-entry {
    margin-bottom: 0.95rem;
}

.ap-users-form .inputbox,
.ap-users-form .form-control,
.ap-users-form input[type='text'],
.ap-users-form input[type='email'],
.ap-users-form input[type='password'],
.ap-users-form input[type='tel'],
.ap-users-form input[type='url'],
.ap-users-form input[type='number'],
.ap-users-form input[type='date'],
.ap-users-form input[type='search'],
.ap-users-form textarea,
.ap-users-form select {
    width: 100%;
    min-height: var(--touch-target);
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    background: var(--surface);
    color: var(--text);
    padding: 0.72rem 0.85rem;
    font: inherit;
    line-height: 1.4;
    box-shadow: none;
    appearance: none;
}

.ap-users-form .inputbox::placeholder,
.ap-users-form .form-control::placeholder,
.ap-users-form input::placeholder,
.ap-users-form textarea::placeholder {
    color: color-mix(in srgb, var(--muted) 78%, transparent);
}

.ap-users-form .inputbox:hover,
.ap-users-form .form-control:hover,
.ap-users-form input:hover,
.ap-users-form textarea:hover,
.ap-users-form select:hover {
    border-color: color-mix(in srgb, var(--line) 55%, var(--text) 16%);
}

.ap-users-form .inputbox:focus,
.ap-users-form .form-control:focus,
.ap-users-form input:focus,
.ap-users-form textarea:focus,
.ap-users-form select:focus {
    outline: 3px solid color-mix(in srgb, var(--focus) 46%, transparent);
    outline-offset: 0;
    border-color: var(--focus);
}

.ap-users-form textarea {
    min-height: 7.5rem;
    resize: vertical;
}

.ap-users-form input[type='checkbox'],
.ap-users-form input[type='radio'] {
    appearance: auto;
    width: 1.05rem;
    height: 1.05rem;
    min-height: 0;
    margin-right: 0.45rem;
    accent-color: var(--focus);
    vertical-align: middle;
}

.ap-users-form .form-check-label,
.ap-users-form .checkbox label {
    display: inline;
    margin: 0;
    color: var(--text);
    font-weight: 500;
}

.ap-users-form .form-text,
.ap-users-form .help-block,
.ap-users-form .field-note {
    margin-top: 0.28rem;
    color: var(--muted);
    font-size: 0.88em;
}

.ap-users-form .invalid-feedback,
.ap-users-form .error,
.ap-users-form .has-error .help-inline {
    color: #b91c1c;
    font-size: 0.88em;
}

.ap-users-form .required::after {
    content: ' *';
    color: #b91c1c;
}

.ap-users-primary-btn,
.ap-users-secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    border-radius: 999px;
    padding: 0.68rem 1.2rem;
    border: 1px solid var(--line);
    font-weight: 700;
    font-size: 0.98em;
    cursor: pointer;
}

.ap-users-primary-btn {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.ap-users-secondary-btn {
    background: var(--surface);
    color: var(--text);
}

.ap-users-secondary-btn.plg_system_webauthn_login_button {
    gap: 0.55rem;
}

.ap-users-secondary-btn.plg_system_webauthn_login_button svg {
    width: 1.15rem;
    height: 1.15rem;
    flex: 0 0 auto;
    display: inline-block;
}

.ap-users-options {
    gap: 0.5rem;
}

.ap-users-option-item {
    display: block;
    border: 1px solid var(--line);
    border-radius: 0.75rem;
    padding: 0.78rem 0.9rem;
    background: var(--surface);
    font-size: 0.98em;
    font-weight: 600;
    color: var(--text);
}

.ap-users-option-item:hover,
.ap-users-option-item:focus-visible {
    background: color-mix(in srgb, var(--surface) 75%, var(--text) 6%);
}

.ap-module-articles {
    display: grid;
    gap: 0.9rem;
}

.ap-module-articles-group-title {
    margin: 0 0 0.65rem;
    font-size: clamp(1.1rem, 1.03rem + 0.3vw, 1.35rem);
    line-height: 1.25;
}

.ap-module-articles-items,
.ap-module-articles-titles {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.7rem;
}

.ap-module-articles-item {
    border: 1px solid var(--line);
    border-radius: 0.95rem;
    background: var(--surface-elevated);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.ap-module-articles-content {
    padding: 0.9rem 1rem;
}

.ap-module-articles-title {
    margin: 0;
    font-size: clamp(1.08rem, 1rem + 0.28vw, 1.28rem);
    line-height: 1.3;
}

.ap-module-articles-link {
    color: var(--text);
}

.ap-module-articles-link:hover {
    color: color-mix(in srgb, var(--text) 78%, var(--focus) 22%);
}

.ap-module-hit-area {
    cursor: pointer;
    transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.ap-module-hit-area:hover {
    background: color-mix(in oklab, var(--surface-elevated) 88%, #ffffff);
    box-shadow: 0 14px 30px -26px rgba(15, 23, 42, 0.42);
}

.ap-module-hit-area:focus-visible {
    outline: 2px solid var(--focus);
    outline-offset: 2px;
}

.ap-module-articles-title .ap-module-articles-link {
    text-decoration: underline;
    text-decoration-color: color-mix(in oklab, var(--text) 35%, transparent);
    text-underline-offset: 0.14em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ap-module-articles-title .ap-module-articles-link:hover,
.ap-module-articles-title .ap-module-articles-link:focus-visible {
    text-decoration-color: currentColor;
}

.ap-module-articles-details {
    margin: 0.62rem 0 0.72rem;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: color-mix(in srgb, var(--surface) 94%, #000 2%);
    padding: 0.55rem;
}

.ap-module-articles-meta {
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.42rem;
}

.ap-module-articles-meta-item {
    border: 1px solid var(--line);
    border-radius: 0.72rem;
    background: var(--surface-elevated);
    padding: 0.46rem 0.62rem;
}

.ap-module-articles-meta-item dt {
    margin: 0;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}

.ap-module-articles-meta-item dd {
    margin: 0.2rem 0 0;
    font-size: 0.96rem;
    line-height: 1.35;
    color: var(--text);
    font-weight: 600;
}

.ap-module-articles-intro {
    color: var(--text);
}

.ap-module-articles-readmore {
    margin-top: 0.75rem;
}

.ap-module-articles-readmore .btn,
.ap-module-articles-readmore .readmore-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--touch-target);
    border-radius: 0.7rem;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    padding: 0.5rem 0.8rem;
    font-size: 0.92em;
    font-weight: 700;
}

.ap-module-articles-title-item a {
    display: block;
    border: 1px solid var(--line);
    border-radius: 0.85rem;
    background: var(--surface-elevated);
    padding: 0.7rem 0.85rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

:root[data-theme='dark'] .ap-module-articles-item,
:root[data-theme='dark'] .ap-module-articles-title-item a,
:root[data-theme='dark'] .ap-module-articles-details,
:root[data-theme='dark'] .ap-module-articles-meta-item {
    background: var(--surface);
    border-color: var(--line);
}

.pagination,
ul.pagination {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
}

.pagination li,
ul.pagination li {
    margin: 0;
    padding: 0;
}

.pagination a,
.pagination span,
ul.pagination a,
ul.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: var(--touch-target);
    min-height: var(--touch-target);
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: var(--surface);
    color: var(--text);
    font-size: 1rem;
    line-height: 1;
}

.pagination .active a,
.pagination .active span,
ul.pagination .active a,
ul.pagination .active span {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text);
}

.pagination .page-link .icon-angle-left::before,
.pagination .page-link .icon-angle-right::before,
.pagination .page-link .icon-angle-double-left::before,
.pagination .page-link .icon-angle-double-right::before {
    display: inline-block;
    font-style: normal;
    font-weight: 700;
    line-height: 1;
}

.pagination .page-link .icon-angle-left::before {
    content: '\2039';
}

.pagination .page-link .icon-angle-right::before {
    content: '\203A';
}

.pagination .page-link .icon-angle-double-left::before {
    content: '\00AB';
}

.pagination .page-link .icon-angle-double-right::before {
    content: '\00BB';
}

.mod-breadcrumbs {
    margin: 0 auto 1rem;
    max-width: 72rem;
}

.mod-breadcrumbs > ol {
    list-style: none;
    margin: 0;
    padding: 0.85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem 0.65rem;
    border: 1px solid var(--line);
    border-radius: 1rem;
    background: var(--surface);
    color: var(--muted);
    font-size: 1rem;
    font-weight: 500;
}

.mod-breadcrumbs > ol > li {
    margin: 0;
    padding: 0;
    list-style: none;
    line-height: 1.35;
}

.mod-breadcrumbs > ol > li > a {
    color: inherit;
    text-decoration: none;
}

.mod-breadcrumbs > ol > li > a:hover {
    color: var(--text);
}

.mod-breadcrumbs > ol > li[aria-hidden='true'] {
    color: color-mix(in srgb, var(--muted) 60%, transparent);
}

.mod-breadcrumbs > ol > li:last-child {
    color: var(--text);
}

.com-content-article dl,
.com-content-category-blog dl,
.com-content-featured dl {
    font-size: 1rem;
    line-height: 1.45;
}

.com-content-article dl dt,
.com-content-category-blog dl dt,
.com-content-featured dl dt {
    font-size: 0.82rem;
}

.com-content-article dl dd,
.com-content-category-blog dl dd,
.com-content-featured dl dd {
    font-size: 1rem;
    line-height: 1.4;
}

.com-content-article dl > div,
.com-content-category-blog dl > div,
.com-content-featured dl > div {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
    border-style: solid;
    border-color: var(--line) !important;
}

@media (max-width: 640px) {
    .site-main {
        padding-left: 0;
        padding-right: 0;
    }

    .site-main > div {
        padding: 0;
    }

    .mobile-menu-panel-head,
    .mobile-menu-level-head {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }

}

@media (max-width: 1023px) {
    .site-main {
        max-width: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
    }

    .site-main > div {
        border-radius: 0 !important;
        width: 100%;
        margin: 0;
        border-left: 0;
        border-right: 0;
    }

    .com-content-article.item-page,
    .com-content-category-blog,
    .com-content-category,
    .com-content-featured,
    .com-content-categories {
        max-width: 100% !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .mobile-theme-toggle,
    .mobile-close {
        width: auto !important;
        height: auto !important;
        min-height: 3rem !important;
        min-width: 3rem !important;
        font-size: 1.25rem !important;
        line-height: 1 !important;
        font-weight: 700;
        color: var(--text);
        padding: 0.55rem 0.9rem !important;
    }

    .mobile-back {
        font-size: 1.15rem !important;
        padding: 0.9rem 1.2rem !important;
    }

    .mobile-parent-label {
        font-size: 1rem !important;
        min-width: 0;
        line-height: 1.3;
        padding-bottom: 0.2rem;
        white-space: normal;
        overflow: visible;
        text-overflow: clip;
    }

    .mobile-btn-text {
        font-size: 1rem;
    }

    .mobile-menu-item-link,
    .mobile-submenu-open {
        font-size: 1.15rem;
        padding: 1rem 1.15rem;
    }

    .mobile-menu-panel {
        width: 100vw;
    }

    .mobile-account-title {
        font-size: 1.25rem;
    }

    .mobile-account-close {
        min-height: 3rem;
        min-width: 3rem;
        font-size: 1.4rem;
    }

    .mobile-account-initials {
        width: 2.4rem;
        height: 2.4rem;
        font-size: 1rem;
    }

    .mobile-account-user-avatar {
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1rem;
    }

    .mobile-account-user-name,
    .mobile-account-link,
    .mobile-account-modules .mod-menu > li > a,
    .mobile-account-modules .mod-menu > li > span,
    .mobile-account-modules ul.menu > li > a,
    .mobile-account-modules ul.menu > li > span {
        font-size: 1rem;
    }

    .mobile-account-link,
    .mobile-account-modules .mod-menu > li > a,
    .mobile-account-modules .mod-menu > li > span,
    .mobile-account-modules ul.menu > li > a,
    .mobile-account-modules ul.menu > li > span {
        padding: 0.9rem 1rem;
    }

    body {
        font-size: 1.04rem;
    }

    .site-main {
        font-size: 1.05rem;
    }

    .com-content-article__body,
    .com-content-category,
    .com-content-category-blog,
    .com-content-featured {
        font-size: 1.04em;
    }

    .mod-breadcrumbs > ol {
        font-size: 0.94rem !important;
        gap: 0.45rem;
        padding: 0.55rem 0.7rem;
    }

    .pagination a,
    .pagination span,
    ul.pagination a,
    ul.pagination span {
        font-size: 1.06rem;
        min-width: 3rem;
        min-height: 3rem;
    }

    .com-content-article dl,
    .com-content-category-blog dl,
    .com-content-featured dl {
        font-size: 1.05rem;
    }

    .com-content-article dl > div,
    .com-content-category-blog dl > div,
    .com-content-featured dl > div {
        border-width: 2px !important;
    }

    .ap-osm-view {
        border-radius: 0.75rem;
        padding: 0.45rem;
    }

    .ap-osm-view form {
        border: 0;
        background: transparent;
        padding: 0.35rem 0 0;
        margin-top: 0.45rem;
    }

    .ap-osm-view joomla-tab,
    .ap-osm-view .tab-content {
        border: 0;
        background: transparent;
        border-radius: 0;
        padding: 0;
        box-shadow: none;
    }

    .ap-osm-view .osm-page-title {
        font-size: 1.35rem;
    }

    .ap-osm-view .nav-tabs,
    .ap-osm-view .tab-list,
    .ap-osm-view [role='tablist'] {
        gap: 0.5rem;
    }

    .ap-osm-view joomla-tab > div[role='tablist'] {
        padding: 0.35rem 0 0.5rem;
        background: transparent;
    }

    .ap-osm-view joomla-tab > div[role='tablist'] > button[role='tab'],
    .ap-osm-view joomla-tab > button[aria-controls] {
        font-size: 1rem;
        padding: 0.55rem 0.8rem;
    }

    .ap-osm-view .nav-tabs a,
    .ap-osm-view .nav-tabs button,
    .ap-osm-view .nav-tabs .nav-link,
    .ap-osm-view .tab-list a,
    .ap-osm-view [role='tab'],
    .ap-osm-view [aria-selected='true'] {
        font-size: 1rem;
        padding: 0.55rem 0.8rem;
    }

    .ap-osm-view .osm-message,
    .ap-osm-view .osm-description,
    .ap-osm-view .text-info,
    .ap-osm-view form {
        font-size: 1rem;
    }

    .ap-osm-view .osm-message,
    .ap-osm-view .osm-description,
    .ap-osm-view .text-info {
        padding: 0.7rem 0.8rem;
        margin-bottom: 0.7rem;
    }

    .ap-osm-view .control-group,
    .ap-osm-view .mb-3,
    .ap-osm-view .form-group {
        margin-bottom: 0.7rem;
    }

    .ap-osm-view input[type='text'],
    .ap-osm-view input[type='email'],
    .ap-osm-view input[type='password'],
    .ap-osm-view input[type='tel'],
    .ap-osm-view input[type='url'],
    .ap-osm-view input[type='number'],
    .ap-osm-view input[type='date'],
    .ap-osm-view input[type='search'],
    .ap-osm-view textarea,
    .ap-osm-view select,
    .ap-osm-view .form-control,
    .ap-osm-view .inputbox,
    .ap-osm-view .btn,
    .ap-osm-view .btn-primary,
    .ap-osm-view .form-actions input[type='submit'],
    .ap-osm-view .osm-taskbar a {
        font-size: 1rem;
    }

    .ap-osm-view input[type='text'],
    .ap-osm-view input[type='email'],
    .ap-osm-view input[type='password'],
    .ap-osm-view input[type='tel'],
    .ap-osm-view input[type='url'],
    .ap-osm-view input[type='number'],
    .ap-osm-view input[type='date'],
    .ap-osm-view input[type='search'],
    .ap-osm-view textarea,
    .ap-osm-view select,
    .ap-osm-view .form-control,
    .ap-osm-view .inputbox {
        min-height: 2.7rem;
        padding: 0.58rem 0.72rem;
    }

    .ap-osm-view .btn,
    .ap-osm-view .btn-primary,
    .ap-osm-view .form-actions input[type='submit'],
    .ap-osm-view .osm-taskbar a {
        min-height: 2.7rem;
        padding: 0.55rem 0.9rem;
    }

    .ap-osm-view .osm-upgrade-options {
        gap: 0.95rem;
    }

    .ap-osm-view .osm-upgrade-option {
        padding: 0.8rem 0.85rem;
    }

    .ap-osm-view .osm-upgrade-option input[type='radio'] {
        width: 1.35rem;
        height: 1.35rem;
        margin-right: 0.8rem;
    }

    .ap-osm-view .osm-upgrade-option label {
        font-size: 1rem;
        line-height: 1.45;
    }

    .ap-osm-view th,
    .ap-osm-view td {
        font-size: 0.98rem;
        padding: 0.7rem 0.55rem;
    }

    .ap-osm-view .ap-osm-table {
        min-width: 36rem;
    }

    .ap-osm-view .ap-status-pill {
        font-size: 1rem;
        padding: 0.3rem 0.62rem;
    }

    .ap-module-articles-content {
        padding: 1rem;
    }

    .ap-module-articles-title {
        font-size: 1.24rem;
    }

    .ap-module-articles-meta {
        gap: 0.5rem;
    }

    .ap-module-articles-meta-item dt {
        font-size: 0.92rem;
    }

    .ap-module-articles-meta-item dd {
        font-size: 1.12rem;
    }

    .ap-module-articles-intro {
        font-size: 1.12rem;
    }

    .ap-module-articles-readmore .btn,
    .ap-module-articles-readmore .readmore-link,
    .ap-module-articles-title-item a {
        font-size: 1.05rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

html[data-theme='dark'] .osm-container,
body.theme-dark .osm-container,
html[data-theme='dark'] .osm-container .tab-content,
body.theme-dark .osm-container .tab-content,
html[data-theme='dark'] .osm-container .tab-pane,
body.theme-dark .osm-container .tab-pane,
html[data-theme='dark'] .osm-container table,
body.theme-dark .osm-container table,
html[data-theme='dark'] .osm-container table th,
body.theme-dark .osm-container table th,
html[data-theme='dark'] .osm-container table td,
body.theme-dark .osm-container table td,
html[data-theme='dark'] .osm-container form,
body.theme-dark .osm-container form {
    background-color: #1c1c1c !important;
    color: #f2f2f2 !important;
    border-color: #353535 !important;
}

html[data-theme='dark'] .osm-container input,
body.theme-dark .osm-container input,
html[data-theme='dark'] .osm-container textarea,
body.theme-dark .osm-container textarea,
html[data-theme='dark'] .osm-container select,
body.theme-dark .osm-container select {
    background-color: #242424 !important;
    color: #f2f2f2 !important;
    border-color: #3a3a3a !important;
}

html[data-theme='dark'] #osm-profile-page .nav-tabs li a,
body.theme-dark #osm-profile-page .nav-tabs li a,
html[data-theme='dark'] #osm-profile-page .nav-tabs .nav-link,
body.theme-dark #osm-profile-page .nav-tabs .nav-link {
    background: #232323 !important;
    color: #f2f2f2 !important;
    border-color: #353535 !important;
}

html[data-theme='dark'] #osm-profile-page .nav-tabs .active a,
body.theme-dark #osm-profile-page .nav-tabs .active a,
html[data-theme='dark'] #osm-profile-page .nav-tabs .nav-link.active,
body.theme-dark #osm-profile-page .nav-tabs .nav-link.active {
    background: #f2f2f2 !important;
    color: #141414 !important;
    border-color: #f2f2f2 !important;
}

html[data-theme='dark'] #osm-profile-page table.table-striped tbody tr:nth-of-type(odd),
body.theme-dark #osm-profile-page table.table-striped tbody tr:nth-of-type(odd) {
    background: #222 !important;
}

html[data-theme='dark'] #osm-profile-page table.table-striped tbody tr:nth-of-type(even),
body.theme-dark #osm-profile-page table.table-striped tbody tr:nth-of-type(even) {
    background: #1a1a1a !important;
}

html[data-theme='dark'] #osm-profile-page joomla-tab,
body.theme-dark #osm-profile-page joomla-tab {
    background: #1c1c1c !important;
    color: #f2f2f2 !important;
    border: 1px solid #353535 !important;
}

html[data-theme='dark'] #osm-profile-page joomla-tab > div[role='tablist'],
body.theme-dark #osm-profile-page joomla-tab > div[role='tablist'] {
    background: #1f1f1f !important;
    border-bottom: 1px solid #353535 !important;
}

html[data-theme='dark'] #osm-profile-page joomla-tab > div[role='tablist'] > button[role='tab'],
body.theme-dark #osm-profile-page joomla-tab > div[role='tablist'] > button[role='tab'] {
    background: #232323 !important;
    color: #f2f2f2 !important;
    border: 1px solid #353535 !important;
}

html[data-theme='dark'] #osm-profile-page joomla-tab > div[role='tablist'] > button[role='tab'][aria-selected='true'],
body.theme-dark #osm-profile-page joomla-tab > div[role='tablist'] > button[role='tab'][aria-selected='true'] {
    background: #f2f2f2 !important;
    color: #141414 !important;
    border-color: #f2f2f2 !important;
}

html[data-theme='dark'] #osm-profile-page joomla-tab > button[aria-controls],
body.theme-dark #osm-profile-page joomla-tab > button[aria-controls] {
    background: #232323 !important;
    color: #f2f2f2 !important;
    border: 1px solid #353535 !important;
}

html[data-theme='dark'] #osm-profile-page joomla-tab > joomla-tab-element,
body.theme-dark #osm-profile-page joomla-tab > joomla-tab-element,
html[data-theme='dark'] #osm-profile-page joomla-tab > joomla-tab-element[active],
body.theme-dark #osm-profile-page joomla-tab > joomla-tab-element[active] {
    background: #1c1c1c !important;
    color: #f2f2f2 !important;
    border: 1px solid #353535 !important;
}

/* Membership Pro modern/minimal readability layer */
.ap-osm-modern {
    max-width: 78rem;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
    border-radius: 0.95rem;
    background: #ffffff;
    padding: 1.25rem;
    box-shadow: 0 14px 38px -30px rgba(15, 23, 42, 0.55);
}

.ap-osm-modern .osm-page-title {
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.ap-osm-modern .osm-heading {
    letter-spacing: -0.01em;
}

.ap-osm-modern,
.ap-osm-modern p,
.ap-osm-modern li,
.ap-osm-modern td,
.ap-osm-modern label {
    color: #0f172a;
    line-height: 1.65;
}

.ap-osm-modern label {
    font-weight: 600;
}

.ap-osm-modern input[type='text'],
.ap-osm-modern input[type='email'],
.ap-osm-modern input[type='password'],
.ap-osm-modern input[type='tel'],
.ap-osm-modern input[type='url'],
.ap-osm-modern input[type='number'],
.ap-osm-modern input[type='date'],
.ap-osm-modern input[type='search'],
.ap-osm-modern textarea,
.ap-osm-modern select,
.ap-osm-modern .form-control,
.ap-osm-modern .inputbox {
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #cbd5e1;
    border-radius: 0.65rem;
    background: #ffffff;
    color: #0f172a;
    padding: 0.55rem 0.8rem;
    line-height: 1.45;
}

.ap-osm-modern .input-group > .form-control,
.ap-osm-modern .password-group .form-control {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.ap-osm-modern .password-group .input-password-toggle,
.ap-osm-modern .input-group > .btn {
    min-height: 2.75rem;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 0.65rem 0.65rem 0;
    background: var(--surface-elevated);
    color: var(--text);
}

/* Membership Pro password fields: override broader framework input-group wrapping */
#osm-signup-page .password-group > .input-group,
#osm-profile-page .password-group > .input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: 100% !important;
    max-width: 100% !important;
}

#osm-signup-page .password-group > .input-group > .form-control,
#osm-profile-page .password-group > .input-group > .form-control {
    flex: 1 1 auto !important;
    width: 1% !important;
    min-width: 0 !important;
}

#osm-signup-page .password-group > .input-group > .input-password-toggle,
#osm-profile-page .password-group > .input-group > .input-password-toggle {
    flex: 0 0 auto !important;
    white-space: nowrap;
    background: var(--surface-elevated) !important;
    border-color: var(--line) !important;
    color: var(--text) !important;
}

#osm-signup-page .password-group > .input-group > .input-password-toggle:hover,
#osm-profile-page .password-group > .input-group > .input-password-toggle:hover {
    background: color-mix(in srgb, var(--surface-elevated) 85%, var(--text) 6%) !important;
}

#osm-signup-page .password-group > .input-group > .input-password-toggle > [class^='icon-'],
#osm-signup-page .password-group > .input-group > .input-password-toggle > [class*=' icon-'],
#osm-profile-page .password-group > .input-group > .input-password-toggle > [class^='icon-'],
#osm-profile-page .password-group > .input-group > .input-password-toggle > [class*=' icon-'] {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    text-align: center;
    line-height: 1;
    font-size: 0;
    background-color: currentColor;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 1.1rem 1.1rem;
    -webkit-mask-repeat: no-repeat;
    -webkit-mask-position: center;
    -webkit-mask-size: 1.1rem 1.1rem;
    mask-repeat: no-repeat;
    mask-position: center;
    mask-size: 1.1rem 1.1rem;
}

#osm-signup-page .password-group > .input-group > .input-password-toggle > .icon-eye,
#osm-profile-page .password-group > .input-group > .input-password-toggle > .icon-eye {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Ccircle cx='12' cy='12' r='3' fill='none' stroke='%23000' stroke-width='2'/%3E%3C/svg%3E");
}

#osm-signup-page .password-group > .input-group > .input-password-toggle > .icon-eye-slash,
#osm-profile-page .password-group > .input-group > .input-password-toggle > .icon-eye-slash {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.6 10.7a3 3 0 0 0 4.2 4.2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.36 5.37A9.93 9.93 0 0 1 12 5c6.5 0 10 7 10 7a17.34 17.34 0 0 1-4.07 5.06' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.23 6.23A17.3 17.3 0 0 0 2 12s3.5 7 10 7a9.77 9.77 0 0 0 5.39-1.61' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 3l18 18' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M10.6 10.7a3 3 0 0 0 4.2 4.2' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M9.36 5.37A9.93 9.93 0 0 1 12 5c6.5 0 10 7 10 7a17.34 17.34 0 0 1-4.07 5.06' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M6.23 6.23A17.3 17.3 0 0 0 2 12s3.5 7 10 7a9.77 9.77 0 0 0 5.39-1.61' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.ap-osm-modern input:focus,
.ap-osm-modern textarea:focus,
.ap-osm-modern select:focus,
.ap-osm-modern .form-control:focus,
.ap-osm-modern .inputbox:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 2px rgba(15, 23, 42, 0.12);
}

.ap-osm-modern .btn-primary,
.ap-osm-modern .form-actions input[type='submit'],
.ap-osm-modern .btn.btn-primary {
    border: 1px solid #0f172a;
    background: #0f172a;
    color: #ffffff;
}

.ap-osm-modern .btn-primary:hover,
.ap-osm-modern .form-actions input[type='submit']:hover,
.ap-osm-modern .btn.btn-primary:hover {
    border-color: #1e293b;
    background: #1e293b;
}

.ap-osm-modern .osm-method-line,
.ap-osm-modern .osm-plan-line {
    border-color: #e2e8f0;
}

@media (max-width: 768px) {
    .ap-osm-modern {
        border-radius: 0.75rem;
        padding: 0.95rem;
    }
}
