/* =========================================
   STELLA V2 – DESIGN SYSTEM
   ========================================= */

:root {
    --stella-primary: #1586d0;
    --stella-primary-dark: #006ba6;
    --stella-primary-hover: #0874b8;

    --stella-text: #344054;
    --stella-muted: #667085;

    --stella-background: #f3f7fb;
    --stella-surface: #ffffff;
    --stella-border: #e4eaf0;

    --stella-radius: 10px;
    --stella-radius-small: 6px;

    --stella-shadow: 0 4px 18px rgba(20,50,80,.07);

    --stella-content-width: 1440px;
    --stella-sidebar-width: 245px;

    --stella-font: Arial, Helvetica, sans-serif;
}

/* RESET */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.stella-v2-site {
    margin: 0;
    background: var(--stella-background);
    color: var(--stella-text);
    font-family: var(--stella-font);
    font-size: 16px;
    line-height: 1.7;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--stella-primary-dark);
    text-decoration: none;
}

a:hover {
    color: var(--stella-primary-hover);
}

/* ACCESSIBILITY */

.stella-skip-link {
    position: absolute;
    top: -100px;
    left: 10px;
    z-index: 9999;
    background: #fff;
    padding: 12px;
}

.stella-skip-link:focus {
    top: 10px;
}

/* HEADER */

.stella-header {
    background: var(--stella-primary);
    color: #fff;
    width: 100%;
}

.stella-header-inner {
    max-width: var(--stella-content-width);
    min-height: 112px;
    margin: 0 auto;
    padding: 14px 28px;

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.stella-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.stella-brand img {
    display: block;
    width: 235px;
    max-height: 85px;
    object-fit: contain;
}

.stella-header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 14px;
}

.stella-language-list {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    list-style: none;
    padding: 0;
    margin: 0;
    gap: 9px;
}

.stella-language-list li {
    list-style: none;
}

.stella-language-list img {
    display: block;
    width: 30px;
    height: 22px;
    object-fit: cover;
    border-radius: 2px;
}

.stella-language-list a {
    display: block;
    opacity: .8;
    transition: opacity .2s;
}

.stella-language-list a:hover,
.stella-language-list .current-language {
    opacity: 1;
}

/* MAIN NAVIGATION */

.stella-primary-menu {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 8px;

    list-style: none;
    margin: 0;
    padding: 0;
}

.stella-primary-menu li {
    list-style: none;
}

.stella-primary-menu a {
    display: block;
    color: #fff;
    padding: 9px 13px;
    border-radius: 5px;
    font-size: 15px;
    font-weight: 600;
    transition: background .2s;
}

.stella-primary-menu a:hover,
.stella-primary-menu .current-menu-item > a {
    background: rgba(255,255,255,.17);
    color: #fff;
}

.stella-menu-toggle {
    display: none;
}

/* MAIN LAYOUT */

.stella-main {
    width: 100%;
    padding: 32px 22px 55px;
}

.stella-page-layout {
    display: grid;
    grid-template-columns: var(--stella-sidebar-width) minmax(0,1fr);
    gap: 26px;

    max-width: var(--stella-content-width);
    margin: 0 auto;
    align-items: start;
}

/* SIDEBAR */

.stella-sidebar {
    position: sticky;
    top: 20px;
    background: var(--stella-surface);
    border: 1px solid var(--stella-border);
    border-radius: var(--stella-radius);
    box-shadow: var(--stella-shadow);
    padding: 16px;
}

.stella-sidebar-menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.stella-sidebar-menu li {
    list-style: none;
    margin: 0 0 7px;
}

.stella-sidebar-menu a {
    display: block;
    padding: 10px 12px;
    border-radius: 5px;
    color: var(--stella-text);
    font-size: 15px;
    transition: background .2s, color .2s;
}

.stella-sidebar-menu a:hover,
.stella-sidebar-menu .current-menu-item > a,
.stella-sidebar-menu .current-page-ancestor > a {
    background: #eaf5fc;
    color: var(--stella-primary-dark);
}

/* CONTENT PANEL */

.stella-content-panel {
    min-width: 0;
    background: var(--stella-surface);
    border: 1px solid var(--stella-border);
    border-radius: var(--stella-radius);
    box-shadow: var(--stella-shadow);
    padding: 38px 44px;
}

.stella-content-header {
    margin: 0 0 28px;
}

.stella-content-header h1 {
    color: var(--stella-primary-dark);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.25;
    font-weight: 700;
    margin: 0;
}

.stella-content {
    color: var(--stella-text);
    font-size: 17px;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.stella-content h2,
.stella-content h3,
.stella-content h4 {
    color: var(--stella-primary-dark);
    line-height: 1.4;
    font-weight: 700;
    text-align: left;
}

.stella-content h2 {
    font-size: 25px;
    margin: 34px 0 17px;
}

.stella-content h3 {
    font-size: 21px;
    margin: 28px 0 14px;
}

.stella-content h4 {
    font-size: 18px;
    margin: 23px 0 12px;
}

.stella-content p {
    margin: 0 0 20px;
}

.stella-content ul,
.stella-content ol {
    padding-left: 26px;
    margin: 15px 0 24px;
}

.stella-content li {
    margin-bottom: 7px;
}

/* MEDIA */

.stella-content img {
    max-width: 100%;
    height: auto;
}

.stella-content figure {
    margin: 28px auto;
    text-align: center;
}

.stella-content figure img {
    display: block;
    max-width: 100%;
    margin: 0 auto;
    border-radius: 6px;
}

.stella-content figcaption {
    margin-top: 9px;
    color: var(--stella-muted);
    font-size: 14px;
}

.stella-content img.aligncenter,
.stella-content img.picture-right,
.stella-content img.picture-left {
    float: none !important;
    display: block;
    max-width: 100%;
    height: auto;
    margin: 26px auto;
}

.stella-content iframe,
.stella-content video {
    max-width: 100%;
}

/* TABLES */

.stella-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 28px 0;
}

.stella-content th,
.stella-content td {
    border: 1px solid var(--stella-border);
    padding: 12px;
    vertical-align: middle;
}

.stella-content th {
    background: #edf6fc;
    color: var(--stella-primary-dark);
    font-weight: 700;
}

/* FOOTER */

.stella-footer {
    background: #eaf3f9;
    border-top: 1px solid var(--stella-border);
    padding: 38px 22px 22px;
}

.stella-footer-inner {
    max-width: var(--stella-content-width);
    margin: 0 auto;
    text-align: center;
}

.stella-footer-brand img {
    width: 210px;
    height: auto;
}

.stella-footer-contact {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 25px;
    margin: 20px 0;
    color: var(--stella-muted);
}

.stella-footer-legal {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px 25px;
    padding: 20px 0;
    border-top: 1px solid var(--stella-border);
}

.stella-cookie-settings {
    background: none;
    border: 0;
    padding: 0;
    color: var(--stella-primary-dark);
    font: inherit;
    cursor: pointer;
}

.stella-copyright {
    color: var(--stella-muted);
    font-size: 13px;
    margin-top: 15px;
}

/* TABLET */

@media (max-width: 1000px) {

    .stella-header-inner {
        flex-wrap: wrap;
    }

    .stella-page-layout {
        grid-template-columns: 210px minmax(0,1fr);
        gap: 16px;
    }

    .stella-content-panel {
        padding: 28px;
    }
}

/* MOBILE */

@media (max-width: 760px) {

    .stella-header-inner {
        min-height: auto;
        padding: 15px 18px;
        flex-direction: row;
        flex-wrap: wrap;
    }

    .stella-brand img {
        width: 170px;
    }

    .stella-header-right {
        width: 100%;
        align-items: stretch;
    }

    .stella-language-list {
        justify-content: center;
    }

    .stella-menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        background: rgba(255,255,255,.15);
        color: #fff;
        border: 1px solid rgba(255,255,255,.3);
        border-radius: 6px;
        padding: 12px;
        font: inherit;
        cursor: pointer;
    }

    .stella-menu-toggle-icon {
        display: flex;
        flex-direction: column;
        gap: 4px;
        width: 21px;
    }

    .stella-menu-toggle-icon span {
        height: 2px;
        background: #fff;
        width: 100%;
    }

    .stella-primary-navigation {
        display: none;
    }

    .stella-primary-navigation.is-open {
        display: block;
    }

    .stella-primary-menu {
        flex-direction: column;
        align-items: stretch;
    }

    .stella-primary-menu a {
        text-align: center;
    }

    .stella-main {
        padding: 18px 12px 32px;
    }

    .stella-page-layout {
        grid-template-columns: minmax(0,1fr);
    }

    .stella-sidebar {
        position: static;
    }

    .stella-sidebar-menu {
        display: flex;
        flex-wrap: wrap;
        gap: 5px;
    }

    .stella-sidebar-menu li {
        margin: 0;
    }

    .stella-content-panel {
        padding: 24px 19px;
    }

    .stella-content {
        font-size: 16px;
    }

    .stella-content h2 {
        font-size: 22px;
    }

    .stella-content h3 {
        font-size: 19px;
    }

    .stella-footer-contact {
        flex-direction: column;
        gap: 8px;
    }
}
