@charset "UTF-8";

/* =========================================================
   AlegsaOnline.com — Base UI
   Shared by Editorial, Atlas and Collection templates.
   ========================================================= */

:root {
    color-scheme: light;

    --ao-bg: #f6f7f9;
    --ao-bg-soft: #eef3f8;

    --ao-surface: #ffffff;
    --ao-surface-soft: #f7f9fc;
    --ao-surface-accent: #eef5ff;

    --ao-border: #dfe5ec;
    --ao-border-strong: #c8d2df;

    --ao-text: #202a37;
    --ao-text-soft: #5b6675;
    --ao-text-faint: #7c8796;
    --ao-heading: #111827;

    --ao-primary: #075fcf;
    --ao-primary-hover: #064fae;
    --ao-primary-soft: #eaf3ff;
    --ao-primary-border: #bed8fa;

    --ao-success: #137a4f;
    --ao-success-soft: #eaf8f1;

    --ao-danger: #b4233b;
    --ao-danger-soft: #fff0f3;

    --ao-warning: #93610a;
    --ao-warning-soft: #fff7e6;

    --ao-shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.055);
    --ao-shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
    --ao-shadow-lg: 0 24px 70px rgba(15, 23, 42, 0.18);

    --ao-radius-sm: 8px;
    --ao-radius-md: 12px;
    --ao-radius-lg: 16px;
    --ao-radius-xl: 22px;

    --ao-shell-width: 1380px;
    --ao-reading-width: 76ch;
    --ao-sidebar-width: 300px;

    --ao-header-bg: linear-gradient(135deg, #075fcf 0%, #2877dc 100%);

    --ao-transition: 160ms ease;

    --ao-font-sans:
        Inter,
        "Segoe UI",
        Roboto,
        Helvetica,
        Arial,
        sans-serif;

    --ao-font-serif:
        Georgia,
        "Times New Roman",
        serif;

    --ao-font-mono:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
}

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

    --ao-bg: #0b111b;
    --ao-bg-soft: #0f1724;

    --ao-surface: #111a29;
    --ao-surface-soft: #162133;
    --ao-surface-accent: #132844;

    --ao-border: rgba(170, 187, 209, 0.16);
    --ao-border-strong: rgba(170, 187, 209, 0.28);

    --ao-text: #d9e1ec;
    --ao-text-soft: #b2bfd0;
    --ao-text-faint: #8d9db2;
    --ao-heading: #f5f8fc;

    --ao-primary: #82b4ff;
    --ao-primary-hover: #a9ccff;
    --ao-primary-soft: rgba(91, 153, 245, 0.14);
    --ao-primary-border: rgba(130, 180, 255, 0.25);

    --ao-success: #61d69a;
    --ao-success-soft: rgba(52, 190, 123, 0.13);

    --ao-danger: #ff8ba0;
    --ao-danger-soft: rgba(255, 102, 128, 0.13);

    --ao-warning: #ffd071;
    --ao-warning-soft: rgba(255, 190, 66, 0.13);

    --ao-shadow-sm: 0 5px 16px rgba(0, 0, 0, 0.22);
    --ao-shadow-md: 0 14px 34px rgba(0, 0, 0, 0.29);
    --ao-shadow-lg: 0 28px 80px rgba(0, 0, 0, 0.46);

    --ao-header-bg: linear-gradient(135deg, #123f86 0%, #205da9 100%);
}

/* =========================================================
   Reset and document
   ========================================================= */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
    scroll-padding-top: 18px;
}

html.ao-js {
    text-rendering: optimizeLegibility;
}

body.ao-page {
    margin: 0;
    min-height: 100vh;
    color: var(--ao-text);
    background:
        linear-gradient(
            180deg,
            var(--ao-bg-soft) 0,
            var(--ao-bg) 300px
        );
    font-family: var(--ao-font-sans);
    font-size: 16px;
    line-height: 1.72;
}

body.ao-scroll-locked {
    overflow: hidden;
}

[hidden] {
    display: none !important;
}

img,
picture,
video,
canvas {
    display: block;
    max-width: 100%;
}

img {
    height: auto;
}

svg {
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: var(--ao-primary);
    text-decoration-thickness: 0.075em;
    text-underline-offset: 0.15em;
    transition:
        color var(--ao-transition),
        background-color var(--ao-transition),
        border-color var(--ao-transition),
        box-shadow var(--ao-transition),
        transform var(--ao-transition);
}

a:hover,
a:focus-visible {
    color: var(--ao-primary-hover);
}

p,
ul,
ol,
dl,
table,
blockquote,
figure,
pre {
    margin-top: 0;
}

h1,
h2,
h3,
h4 {
    margin-top: 0;
    color: var(--ao-heading);
    line-height: 1.2;
    text-wrap: balance;
}

strong,
b {
    color: var(--ao-heading);
}

::selection {
    background: rgba(7, 95, 207, 0.18);
}

:focus-visible {
    outline: 3px solid rgba(7, 95, 207, 0.36);
    outline-offset: 3px;
}

html[data-theme="dark"] :focus-visible {
    outline-color: rgba(130, 180, 255, 0.48);
}

/* =========================================================
   Accessibility
   ========================================================= */

.ao-skip-link {
    position: fixed;
    z-index: 100000;
    top: 10px;
    left: 10px;
    padding: 10px 14px;
    color: #ffffff;
    background: #111827;
    border-radius: var(--ao-radius-sm);
    box-shadow: var(--ao-shadow-lg);
    font-weight: 700;
    transform: translateY(-160%);
}

.ao-skip-link:focus {
    color: #ffffff;
    transform: translateY(0);
}

.ao-visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ao-live-region {
    position: fixed;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* =========================================================
   General shell
   ========================================================= */

.ao-shell {
    width: min(var(--ao-shell-width), calc(100% - 28px));
    margin: 14px auto 28px;
}

.ao-page-main {
    min-width: 0;
    scroll-margin-top: 18px;
}

.ao-page-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        minmax(250px, var(--ao-sidebar-width));
    gap: 24px;
    align-items: start;
}

.ao-content,
.ao-sidebar {
    min-width: 0;
}

.ao-reading-column {
    width: min(100%, var(--ao-reading-width));
}

/* =========================================================
   Header
   ========================================================= */

.ao-site-header {
    margin-bottom: 20px;
}

.ao-site-header__inner {
    min-height: 68px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    color: #ffffff;
    background: var(--ao-header-bg);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ao-radius-lg);
    box-shadow: var(--ao-shadow-md);
}

.ao-site-logo {
    min-width: 0;
    display: inline-flex;
    align-items: center;
}

.ao-site-logo img {
    width: min(320px, 100%);
    height: auto;
}

.ao-site-header__tools {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex: 0 0 auto;
}

.ao-header-chip,
.ao-header-action,
.ao-theme-toggle {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    text-decoration: none;
}

.ao-header-chip {
    padding: 7px 12px;
    font-size: 0.92rem;
    font-weight: 650;
}

.ao-header-action {
    padding: 7px 12px;
    font-size: 0.92rem;
    font-weight: 700;
}

button.ao-header-action {
    appearance: none;
}

.ao-theme-toggle {
    width: 42px;
    padding: 0;
    flex: 0 0 42px;
}

.ao-header-action:hover,
.ao-header-action:focus-visible,
.ao-theme-toggle:hover,
.ao-theme-toggle:focus-visible {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.21);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-1px);
}

.ao-theme-toggle__sun {
    display: none;
}

html[data-theme="dark"] .ao-theme-toggle__sun {
    display: inline-flex;
}

html[data-theme="dark"] .ao-theme-toggle__moon {
    display: none;
}

/* =========================================================
   Icons
   ========================================================= */

.ao-icon {
    width: 1.08em;
    height: 1.08em;
    display: inline-block;
    vertical-align: -0.17em;
    flex: 0 0 auto;
}

/* =========================================================
   Generic surfaces
   ========================================================= */

.ao-card {
    color: var(--ao-text);
    background: var(--ao-surface);
    border: 1px solid var(--ao-border);
    border-radius: var(--ao-radius-lg);
    box-shadow: var(--ao-shadow-sm);
}

.ao-card__body {
    padding: clamp(18px, 2.4vw, 30px);
}

.ao-card--flat {
    box-shadow: none;
}

.ao-surface-soft {
    background: var(--ao-surface-soft);
    border: 1px solid var(--ao-border);
    border-radius: var(--ao-radius-md);
}

.ao-divider {
    width: 100%;
    height: 1px;
    margin: 20px 0;
    background: var(--ao-border);
    border: 0;
}

/* =========================================================
   Breadcrumbs
   ========================================================= */

.ao-breadcrumb {
    margin: 0 0 18px;
    color: var(--ao-text-soft);
    font-size: 0.92rem;
}

.ao-breadcrumb__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ao-breadcrumb__item {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ao-breadcrumb__item a,
.ao-breadcrumb__item span {
    overflow-wrap: anywhere;
}

.ao-breadcrumb__item a {
    color: var(--ao-text-soft);
}

.ao-breadcrumb__item [aria-current="page"] {
    color: var(--ao-heading);
    font-weight: 650;
}

.ao-breadcrumb__separator {
    color: var(--ao-text-faint);
}

.ao-breadcrumb__separator .ao-icon {
    width: 0.9em;
    height: 0.9em;
}

/* =========================================================
   Buttons
   ========================================================= */

.ao-button,
.ao-icon-button {
    appearance: none;
    border: 1px solid transparent;
    text-decoration: none;
    transition:
        color var(--ao-transition),
        background-color var(--ao-transition),
        border-color var(--ao-transition),
        box-shadow var(--ao-transition),
        transform var(--ao-transition);
}

.ao-button {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 9px 15px;
    border-radius: 10px;
    font-weight: 700;
    line-height: 1.25;
}

.ao-button:hover,
.ao-button:focus-visible {
    transform: translateY(-1px);
}

.ao-button--primary {
    color: #ffffff;
    background: var(--ao-primary);
    border-color: var(--ao-primary);
    box-shadow: 0 8px 18px rgba(7, 95, 207, 0.18);
}

.ao-button--primary:hover,
.ao-button--primary:focus-visible {
    color: #ffffff;
    background: var(--ao-primary-hover);
    border-color: var(--ao-primary-hover);
}

.ao-button--secondary {
    color: var(--ao-heading);
    background: var(--ao-surface-soft);
    border-color: var(--ao-border);
}

.ao-button--secondary:hover,
.ao-button--secondary:focus-visible {
    color: var(--ao-heading);
    background: var(--ao-primary-soft);
    border-color: var(--ao-primary-border);
}

.ao-button--plain {
    color: var(--ao-primary);
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

.ao-icon-button {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--ao-text-soft);
    background: var(--ao-surface);
    border-color: var(--ao-border);
    border-radius: 999px;
}

.ao-icon-button:hover,
.ao-icon-button:focus-visible {
    color: var(--ao-primary);
    background: var(--ao-primary-soft);
    border-color: var(--ao-primary-border);
}

.ao-button[disabled],
.ao-icon-button[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

/* =========================================================
   Badges and alerts
   ========================================================= */

.ao-badge {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 10px;
    color: var(--ao-text-soft);
    background: var(--ao-surface-soft);
    border: 1px solid var(--ao-border);
    border-radius: 999px;
    font-size: 0.88rem;
    line-height: 1.2;
}

.ao-alert {
    padding: 13px 15px;
    border: 1px solid var(--ao-border);
    border-radius: var(--ao-radius-md);
}

.ao-alert--success {
    color: var(--ao-success);
    background: var(--ao-success-soft);
    border-color: rgba(19, 122, 79, 0.23);
}

.ao-alert--danger {
    color: var(--ao-danger);
    background: var(--ao-danger-soft);
    border-color: rgba(180, 35, 59, 0.23);
}

.ao-alert--warning {
    color: var(--ao-warning);
    background: var(--ao-warning-soft);
    border-color: rgba(147, 97, 10, 0.23);
}

/* =========================================================
   Prose
   ========================================================= */

.ao-prose {
    max-width: var(--ao-reading-width);
    color: var(--ao-text);
    font-size: 1.045rem;
}

.ao-prose > *:last-child {
    margin-bottom: 0;
}

.ao-prose p {
    margin-bottom: 1.15em;
    overflow-wrap: break-word;
}

.ao-prose h2 {
    margin: 2.1em 0 0.7em;
    padding-bottom: 0.28em;
    border-bottom: 1px solid var(--ao-border);
    font-size: clamp(1.45rem, 2vw, 1.92rem);
    scroll-margin-top: 18px;
}

.ao-prose h3 {
    margin: 1.75em 0 0.65em;
    font-size: clamp(1.18rem, 1.5vw, 1.42rem);
    scroll-margin-top: 18px;
}

.ao-prose h4 {
    margin: 1.5em 0 0.6em;
    font-size: 1.08rem;
}

.ao-prose ul,
.ao-prose ol {
    margin-bottom: 1.2em;
    padding-left: 1.4em;
}

.ao-prose li + li {
    margin-top: 0.35em;
}

.ao-prose a {
    text-decoration: underline;
    text-decoration-color: rgba(7, 95, 207, 0.35);
}

.ao-prose a:hover,
.ao-prose a:focus-visible {
    text-decoration-color: currentColor;
}

.ao-prose blockquote {
    margin: 1.4em 0;
    padding: 0.9em 1.1em;
    color: var(--ao-text-soft);
    background: var(--ao-surface-soft);
    border-left: 4px solid var(--ao-primary);
    border-radius: 0 var(--ao-radius-sm) var(--ao-radius-sm) 0;
}

.ao-prose hr {
    margin: 2em 0;
    border: 0;
    border-top: 1px solid var(--ao-border);
}

.ao-prose pre,
.ao-prose code {
    font-family: var(--ao-font-mono);
}

.ao-prose pre {
    max-width: 100%;
    overflow: auto;
    padding: 14px 16px;
    color: #f8fafc;
    background: #111827;
    border-radius: var(--ao-radius-md);
}

.ao-prose :not(pre) > code {
    padding: 0.12em 0.34em;
    color: var(--ao-heading);
    background: var(--ao-surface-soft);
    border: 1px solid var(--ao-border);
    border-radius: 5px;
}

.ao-prose img {
    border-radius: var(--ao-radius-sm);
}

.ao-table-scroll {
    width: 100%;
    overflow-x: auto;
    margin: 1.4em 0;
    border: 1px solid var(--ao-border);
    border-radius: var(--ao-radius-md);
    -webkit-overflow-scrolling: touch;
}

.ao-table-scroll table,
.ao-prose table {
    width: 100%;
    border-collapse: collapse;
    background: var(--ao-surface);
}

.ao-table-scroll th,
.ao-table-scroll td,
.ao-prose th,
.ao-prose td {
    padding: 10px 12px;
    border: 1px solid var(--ao-border);
    text-align: start;
    vertical-align: top;
}

.ao-table-scroll th,
.ao-prose th {
    color: var(--ao-heading);
    background: var(--ao-surface-soft);
}

/* =========================================================
   Forms
   ========================================================= */

.ao-field label {
    display: block;
    margin-bottom: 6px;
    color: var(--ao-heading);
    font-weight: 700;
}

.ao-field input,
.ao-field select,
.ao-field textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--ao-text);
    background: var(--ao-surface);
    border: 1px solid var(--ao-border-strong);
    border-radius: 10px;
}

.ao-field textarea {
    min-height: 150px;
    resize: vertical;
}

.ao-field input:focus,
.ao-field select:focus,
.ao-field textarea:focus {
    border-color: var(--ao-primary);
    box-shadow: 0 0 0 4px rgba(7, 95, 207, 0.1);
    outline: 0;
}

.ao-field-help {
    margin-top: 5px;
    color: var(--ao-text-faint);
    font-size: 0.88rem;
}

/* =========================================================
   Copy controls
   ========================================================= */

.ao-copy-button[data-copy-state="success"] {
    color: var(--ao-success);
    background: var(--ao-success-soft);
    border-color: rgba(19, 122, 79, 0.25);
}

.ao-copy-button[data-copy-state="error"] {
    color: var(--ao-danger);
    background: var(--ao-danger-soft);
    border-color: rgba(180, 35, 59, 0.25);
}

/* =========================================================
   Footer
   ========================================================= */

.ao-site-footer {
    margin-top: 24px;
    padding: 18px 20px;
    color: var(--ao-text-soft);
    background: var(--ao-surface);
    border: 1px solid var(--ao-border);
    border-radius: var(--ao-radius-md);
    box-shadow: var(--ao-shadow-sm);
    text-align: center;
    font-size: 0.93rem;
}

.ao-site-footer a {
    font-weight: 650;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 980px) {
    .ao-page-layout {
        grid-template-columns: 1fr;
    }

    .ao-sidebar {
        width: 100%;
    }
}

@media (max-width: 720px) {
    .ao-shell {
        width: min(100%, calc(100% - 10px));
        margin-top: 6px;
    }

    .ao-site-header {
        margin-bottom: 12px;
    }

    .ao-site-header__inner {
        min-height: 60px;
        padding: 9px 10px;
        border-radius: 12px;
    }

    .ao-site-logo img {
        max-width: min(240px, 100%);
    }

    .ao-header-chip__text,
    .ao-header-action__label {
        display: none;
    }

    .ao-header-chip,
    .ao-header-action {
        width: 42px;
        padding: 0;
        flex: 0 0 42px;
    }

    .ao-card {
        border-radius: 12px;
    }

    .ao-card__body {
        padding: 16px;
    }

    .ao-prose {
        font-size: 1rem;
    }
}

@media (max-width: 430px) {
    .ao-site-logo img {
        max-width: min(210px, 100%);
    }

    .ao-site-header__tools {
        gap: 5px;
    }

    .ao-header-chip,
    .ao-header-action,
    .ao-theme-toggle {
        width: 40px;
        min-height: 40px;
        flex-basis: 40px;
    }
}

/* =========================================================
   Reduced motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* =========================================================
   Print
   ========================================================= */

@media print {
    :root {
        color-scheme: light;
    }

    body.ao-page {
        color: #111111;
        background: #ffffff;
        font-size: 11pt;
    }

    .ao-shell {
        width: 100%;
        margin: 0;
    }

    .ao-site-header__tools,
    .ao-site-footer,
    .ao-skip-link,
    .ao-button,
    .ao-icon-button {
        display: none !important;
    }

    .ao-site-header__inner,
    .ao-card {
        color: #111111;
        background: #ffffff;
        border: 0;
        box-shadow: none;
    }

    .ao-page-layout {
        display: block;
    }

    .ao-sidebar {
        display: none;
    }

    .ao-prose {
        max-width: none;
    }

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