/*
 * sbc-support.com — site styles
 * Same structure as the legacy layout (header, main menu, section menu left, content with
 * General/FAQ tabs, footer), rebuilt with CSS grid, custom properties and no framework.
 */

:root {
    --c-brand: #003366;         /* legacy navy */
    --c-brand-mid: #336699;
    --c-accent: #6699cc;        /* legacy blue */
    --c-accent-soft: #e2ecf5;   /* legacy active menu background */
    --c-accent-softer: #f2f6fb;
    --c-red: #d12020;           /* legacy error / logo red */
    --c-text: #1f2933;
    --c-muted: #5b6875;
    --c-line: #dde3ea;
    --c-bg: #f5f7fa;
    --c-surface: #fff;

    --font: system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --radius: 6px;
    --shadow: 0 1px 2px rgb(16 24 40 / .06), 0 1px 3px rgb(16 24 40 / .08);
    --width: 1200px;
    --gutter: clamp(16px, 3vw, 32px);
    --sidebar: 260px;
}

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

/* The hidden attribute always wins over display rules of components */
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }

body {
    margin: 0;
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--c-text);
    background: var(--c-bg);
}

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

a { color: var(--c-brand-mid); text-underline-offset: .15em; }
a:hover { color: var(--c-brand); }

:focus-visible { outline: 3px solid var(--c-accent); outline-offset: 2px; border-radius: 2px; }

.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
    position: absolute; left: var(--gutter); top: -100px; z-index: 10;
    padding: .5rem 1rem; background: var(--c-brand); color: #fff; border-radius: var(--radius);
}
.skip-link:focus { top: .5rem; color: #fff; }

/* ------------------------------------------------------------------ Header */

.site-header { background: var(--c-surface); border-bottom: 1px solid var(--c-line); }

.site-header__inner {
    max-width: var(--width);
    margin: 0 auto;
    padding: 14px var(--gutter);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 1rem 2rem;
}

.site-header__logo { display: block; line-height: 0; }

.site-header__tools { display: flex; align-items: center; gap: 1.25rem; justify-self: end; }

.site-search { position: relative; max-width: 460px; width: 100%; justify-self: center; }

.site-search__input {
    width: 100%;
    padding: .55rem 2.75rem .55rem .9rem;
    font: inherit; font-size: .95rem;
    color: inherit;
    background: var(--c-bg);
    border: 1px solid var(--c-line);
    border-radius: 999px;
    transition: border-color .15s, background-color .15s, box-shadow .15s;
}
.site-search__input:focus { outline: none; background: #fff; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }

.site-search { display: flex; align-items: center; }
.site-search .search-type {
    flex: none; max-width: 9.5rem;
    margin-right: -1px; padding: .55rem 1.8rem .55rem .9rem;
    font: inherit; font-size: .875rem; color: var(--c-brand);
    background: var(--c-accent-softer) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23336699' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .7rem center / .65rem;
    border: 1px solid var(--c-line); border-radius: 999px 0 0 999px;
    appearance: none; cursor: pointer;
}
.site-search .search-type:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); position: relative; z-index: 1; }
.site-search .search-type + label + .site-search__input,
.site-search .search-type ~ .site-search__input { border-radius: 0 999px 999px 0; }
.site-search--results { max-width: none; margin: 0 0 1.25rem; }

.site-search__button {
    position: absolute; right: 4px; top: 50%; translate: 0 -50%;
    display: grid; place-items: center;
    width: 34px; height: 34px;
    border: 0; border-radius: 50%;
    color: #fff; background: var(--c-brand);
    cursor: pointer;
}
.site-search__button:hover { background: var(--c-brand-mid); }

/* Dropdown panels: language menu (<details>) and the "Search in" listbox (site.js) */
.dropdown { position: relative; }
.dropdown__toggle {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .35rem .75rem .35rem .6rem;
    font-size: .875rem; color: var(--c-brand);
    background: var(--c-bg); border: 1px solid var(--c-line); border-radius: 999px;
    list-style: none; cursor: pointer; user-select: none;
    transition: border-color .15s, background-color .15s;
}
.dropdown__toggle::-webkit-details-marker { display: none; }
.dropdown__toggle::after { content: ""; width: .65rem; height: .45rem; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23336699' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat center / contain; transition: rotate .15s; }
.dropdown__toggle:hover, .dropdown[open] .dropdown__toggle { background: #fff; border-color: var(--c-accent); }
.dropdown[open] .dropdown__toggle::after { rotate: 180deg; }

.dropdown__menu, .listbox {
    position: absolute; top: calc(100% + 6px); z-index: 20;
    min-width: 11rem; margin: 0; padding: .35rem; list-style: none;
    background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 10px;
    box-shadow: 0 12px 32px rgb(16 24 40 / .14), 0 2px 6px rgb(16 24 40 / .06);
    animation: dropdown-in .12s ease-out;
}
.dropdown__menu { right: 0; }
@keyframes dropdown-in { from { opacity: 0; translate: 0 -4px; } }

.dropdown__item, .listbox__option {
    display: flex; align-items: center; gap: .6rem;
    padding: .45rem .65rem; border-radius: var(--radius);
    font-size: .925rem; line-height: 1.3; color: var(--c-text); text-decoration: none; white-space: nowrap;
}
a.dropdown__item:hover, a.dropdown__item:focus-visible, .listbox__option.is-active { color: var(--c-brand); background: var(--c-accent-softer); }
a.dropdown__item:focus-visible { outline-offset: -2px; }
.dropdown__item.is-active, .listbox__option[aria-selected="true"] { font-weight: 600; color: var(--c-brand); }
.dropdown__item.is-active::after, .listbox__option[aria-selected="true"]::after {
    content: ""; width: 1rem; height: 1rem; margin-left: auto; flex: none;
    background: var(--c-brand); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / contain; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / contain;
}
.dropdown__item.is-unavailable { opacity: .45; cursor: not-allowed; }

.flag { flex: none; width: 20px; height: 14px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgb(16 24 40 / .12); }
.lang-menu__code { display: none; text-transform: uppercase; }

/* "Search in": the button takes the place of the native select */
.site-search .search-type--custom { display: block; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 8.5rem; }
.site-search .search-type--custom[aria-expanded="true"] { background-color: #fff; border-color: var(--c-accent); }
.site-search .listbox { left: 0; min-width: 14rem; }
.listbox__option { cursor: pointer; }
.listbox__option::before {
    content: ""; width: 1.05rem; height: 1.05rem; flex: none; background: var(--c-accent);
    -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain;
}
.listbox__option.is-active::before, .listbox__option[aria-selected="true"]::before { background: var(--c-brand); }
.listbox__option[data-type="all"], .search-type--custom[data-type="all"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='3' width='7' height='7' rx='1.5'/%3E%3Crect x='3' y='14' width='7' height='7' rx='1.5'/%3E%3Crect x='14' y='14' width='7' height='7' rx='1.5'/%3E%3C/svg%3E"); }
.listbox__option[data-type="pages"], .search-type--custom[data-type="pages"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6z'/%3E%3Cpath d='M14 3v4h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
.listbox__option[data-type="tx_srcfaq_domain_model_faq"], .search-type--custom[data-type="tx_srcfaq_domain_model_faq"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.5 9.5a2.5 2.5 0 1 1 3.5 2.3c-.6.3-1 .9-1 1.6v.6M12 17h.01'/%3E%3C/svg%3E"); }
.listbox__option[data-type="tx_srcproducts_domain_model_downloads"], .search-type--custom[data-type="tx_srcproducts_domain_model_downloads"] { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11M7 10l5 5 5-5M5 20h14'/%3E%3C/svg%3E"); }

.site-login {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .925rem; font-weight: 600; text-decoration: none; color: var(--c-brand);
}
.site-login:hover { text-decoration: underline; }

/* -------------------------------------------------------------- Main menu */

.main-nav { background: var(--c-brand); }

.main-nav__list {
    max-width: var(--width);
    margin: 0 auto;
    padding: 0 var(--gutter);
    list-style: none;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    overflow-x: auto;
    scrollbar-width: none;
}

.main-nav__item a {
    display: block;
    padding: .8rem 1rem;
    text-align: center;
    font-weight: 600;
    white-space: nowrap;
    text-decoration: none;
    color: #fff;
    border-bottom: 3px solid transparent;
    transition: background-color .15s, border-color .15s;
}
.main-nav__item a:hover { background: rgb(255 255 255 / .08); color: #fff; }
.main-nav__item.is-active a { background: rgb(255 255 255 / .12); border-bottom-color: var(--c-accent); }

.main-nav__head, .nav-toggle, .nav-backdrop { display: none; }

/* ------------------------------------------------------------------- Body */

.site-body {
    max-width: var(--width);
    margin: 0 auto;
    padding: 1.5rem var(--gutter) 3rem;
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.site-main {
    grid-column: 2;
    min-height: 400px;
    padding: 1.25rem 1.75rem 2rem;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

/* -------------------------------------------------------- Section menu */

.sub-nav {
    grid-column: 1;
    position: sticky; top: 1rem;
    max-height: calc(100vh - 2rem);
    overflow: auto;
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    font-size: .925rem;
}

.sub-nav__summary {
    padding: .7rem 1rem;
    font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--c-muted);
    list-style: none;
    pointer-events: none;   /* a toggle only on small screens, see media query */
}
.sub-nav__summary::-webkit-details-marker { display: none; }

.sub-nav__list { margin: 0; padding: 0 0 .5rem; list-style: none; }
.sub-nav__list .sub-nav__list { padding: 0 0 .25rem .9rem; border-left: 2px solid var(--c-accent-soft); margin-left: 1rem; }

.sub-nav__item > a {
    display: flex; align-items: center; justify-content: space-between; gap: .5rem;
    padding: .4rem 1rem;
    line-height: 1.35;
    text-decoration: none;
    color: var(--c-text);
    border-left: 3px solid transparent;
}
.sub-nav__list .sub-nav__list .sub-nav__item > a { padding-left: .5rem; }
.sub-nav__item > a:hover { color: var(--c-brand); background: var(--c-accent-softer); }
.sub-nav__item.is-active > a { font-weight: 600; color: var(--c-brand); }
.sub-nav__item > a[aria-current="page"] { background: var(--c-accent-soft); border-left-color: var(--c-brand); }

.sub-nav__spacer { height: 1px; margin: .5rem 1rem; background: var(--c-line); }

.sub-nav__lock {
    flex: none; width: 12px; height: 12px;
    background: currentColor; opacity: .5;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 10V7a5 5 0 0 1 10 0v3h1a1 1 0 0 1 1 1v10a1 1 0 0 1-1 1H6a1 1 0 0 1-1-1V11a1 1 0 0 1 1-1zm2 0h6V7a3 3 0 0 0-6 0z'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* Archived (obsolete) pages are hidden until the visitor asks for them */
.sub-nav.archive-hidden .is-obsolete:not(.is-active) { display: none; }
.sub-nav__item.is-obsolete > a { color: var(--c-muted); font-style: italic; }

.sub-nav__archive-toggle {
    display: block; width: calc(100% - 2rem); margin: .25rem 1rem 1rem;
    padding: .4rem .75rem;
    font: inherit; font-size: .85rem;
    color: var(--c-brand); background: var(--c-accent-softer);
    border: 1px dashed var(--c-accent); border-radius: var(--radius);
    cursor: pointer;
}
.sub-nav__archive-toggle:hover { background: var(--c-accent-soft); }

/* ----------------------------------------------------------- Breadcrumb */

.breadcrumb__list {
    display: flex; flex-wrap: wrap; align-items: center; gap: .25rem;
    margin: 0 0 1rem; padding: 0; list-style: none;
    font-size: .85rem; color: var(--c-muted);
}
.breadcrumb__item + .breadcrumb__item::before { content: "›"; margin-right: .25rem; color: var(--c-accent); }
.breadcrumb__item a { color: var(--c-muted); text-decoration: none; }
.breadcrumb__item a:hover { color: var(--c-brand); text-decoration: underline; }
.breadcrumb__item [aria-current] { color: var(--c-text); }

/* ----------------------------------------------------------------- Tabs */

.tabs__list {
    display: flex; gap: .25rem;
    margin: 0 0 1.25rem;
    border-bottom: 1px solid var(--c-line);
}
.tabs__list[hidden] { display: none; }

.tabs__list [role="tab"] {
    padding: .55rem 1.1rem;
    margin-bottom: -1px;
    font: inherit; font-weight: 600;
    color: var(--c-muted);
    background: none;
    border: 1px solid transparent;
    border-bottom: 3px solid transparent;
    cursor: pointer;
}
.tabs__list [role="tab"]:hover { color: var(--c-brand); }
.tabs__list [role="tab"][aria-selected="true"] { color: var(--c-brand); border-bottom-color: var(--c-brand); }

.tabs__count {
    margin-left: .4rem; padding: 0 .45rem;
    font-size: .75rem; line-height: 1.5;
    color: var(--c-brand); background: var(--c-accent-soft);
    border-radius: 999px;
}
.tabs__count:empty { display: none; }

/* Without JavaScript both panels are visible; with it only the selected one */
.tabs.is-enhanced .tabs__panel[hidden] { display: none; }
.tabs:not(.is-enhanced) .tabs__panel + .tabs__panel { margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--c-line); }

/* ------------------------------------------------------------- Notices */

.notice {
    margin: 0 0 1.5rem;
    padding: .9rem 1.1rem;
    border-radius: var(--radius);
    border-left: 4px solid var(--c-accent);
    background: var(--c-accent-softer);
}
.notice--archive { border-left-color: #c98a00; background: #fff8e6; }
.notice > :first-child { margin-top: 0; }
.notice > :last-child { margin-bottom: 0; }

/* --------------------------------------------------------- Content (RTE) */

.site-main h1, .site-main h2, .site-main h3, .site-main h4 {
    margin: 1.6em 0 .5em;
    line-height: 1.25;
    color: var(--c-brand);
}
.site-main h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem); margin-top: 0; }
.site-main h2 { font-size: 1.35rem; }
.site-main h3 { font-size: 1.15rem; }
.site-main h4 { font-size: 1rem; }
.site-main > :first-child, .site-main .frame:first-child > :first-child { margin-top: 0; }

.site-main p, .site-main ul, .site-main ol { margin: 0 0 1em; }

.site-main table { width: 100%; border-collapse: collapse; margin: 0 0 1.5rem; font-size: .925rem; }
.site-main th, .site-main td { padding: .5rem .65rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--c-line); }
.site-main th { color: var(--c-brand); background: var(--c-accent-softer); }
.site-main tbody tr:hover { background: var(--c-accent-softer); }
.site-main .table-wrap, .site-main .ce-table-wrap { overflow-x: auto; }

.frame { margin-bottom: 1.5rem; }

/* Column containers: the widths of the legacy multicolumn layouts are flex-grow factors */
.ce-columns { display: flex; gap: 1.5rem; align-items: flex-start; }
.ce-columns__column { flex: 1 1 0; min-width: 0; }
.ce-columns__column > .frame:last-child { margin-bottom: 0; }
.ce-columns__column > .frame:first-child header > :first-child { margin-top: 0; }
.ce-columns h1, .ce-columns h2 { font-size: 1.25rem; }
.ce-columns h3 { font-size: 1.1rem; }

/* Separator lines ("ruler before/after" frames) in the legacy blue */
.site-main .frame-ruler-before::before,
.site-main .frame-ruler-after::after { border-top: 1px solid var(--c-accent); opacity: .6; }
/* Embedded videos (HTML elements with YouTube iframes without size): responsive 16:9 */
.site-main iframe[src*="youtube"] { display: block; width: 100%; max-width: 720px; height: auto; aspect-ratio: 16 / 9; border: 0; }

.site-main hr { height: 0; margin: 1.5rem 0; border: 0; border-top: 1px solid var(--c-accent); opacity: .6; }

@media (max-width: 700px) {
    .ce-columns { flex-direction: column; gap: 0; }
    .ce-columns__column { width: 100%; }
    .ce-columns__column + .ce-columns__column { margin-top: 1.5rem; }
}

/* ------------------------------------------------------------------ News */

.news-list-view { display: grid; gap: 1rem; }
.news-item {
    padding: 1rem 1.1rem;
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-accent);
    border-radius: var(--radius);
    background: var(--c-surface);
}
.site-main .news-item__title { margin: 0 0 .2rem; font-size: 1.1rem; }
.news-item__title a { text-decoration: none; color: var(--c-brand); }
.news-item__title a:hover { text-decoration: underline; }
.news-item__date { display: block; margin-bottom: .6rem; font-size: .85rem; color: var(--c-muted); }
.news-item__text > :last-child, .news-item__text > :last-child > :last-child { margin-bottom: 0; }

.f3-widget-paginator {
    display: flex; flex-wrap: wrap; gap: .3rem;
    margin: 1rem 0 0 !important; padding: 0; list-style: none;
}
.f3-widget-paginator li > a, .f3-widget-paginator li.current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.2rem; height: 2.2rem; padding: 0 .6rem;
    font-size: .9rem; text-decoration: none;
    border: 1px solid var(--c-line); border-radius: var(--radius);
    color: var(--c-brand); background: var(--c-surface);
}
.f3-widget-paginator li > a:hover { background: var(--c-accent-softer); }
.f3-widget-paginator li.current { color: #fff; background: var(--c-brand); border-color: var(--c-brand); font-weight: 600; }

.news-single .article .news-list-date, .news-single .extra { color: var(--c-muted); font-size: .9rem; }

/* ---------------------------------------------------------------- Footer */

.site-footer { color: #c9d6e3; background: var(--c-brand); }

.site-footer__inner {
    max-width: var(--width);
    margin: 0 auto;
    padding: 1.5rem var(--gutter);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
    font-size: .875rem;
}

.site-footer__menu { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; margin: 0; padding: 0; list-style: none; }
.site-footer__menu a { color: #fff; text-decoration: none; }
.site-footer__menu a:hover { text-decoration: underline; color: #fff; }
.site-footer__copy { margin: 0; }
.site-footer__privacy-icon { margin-left: .4rem; vertical-align: -2px; }

/* ------------------------------------------------- Forms (EXT:form: contact, feedback) */

.frame-type-form_formframework form { display: grid; gap: 1rem; max-width: 46rem; }
.frame-type-form_formframework .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.frame-type-form_formframework .form-element { display: grid; gap: .35rem; margin: 0; }
.frame-type-form_formframework fieldset.form-element { padding: 0; border: 0; min-width: 0; }
.frame-type-form_formframework .form-label, .frame-type-form_formframework legend { padding: 0; font-weight: 600; font-size: .925rem; }
.frame-type-form_formframework .required { color: var(--c-red); }
.frame-type-form_formframework .form-control, .frame-type-form_formframework .form-select {
    width: 100%; padding: .6rem .8rem;
    font: inherit; color: inherit;
    background: #fff; border: 1px solid #c5ced8; border-radius: var(--radius);
    transition: border-color .15s, box-shadow .15s;
}
.frame-type-form_formframework .form-select {
    padding-right: 2.2rem; appearance: none;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%23336699' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right .8rem center / .7rem;
}
.frame-type-form_formframework .form-control:focus, .frame-type-form_formframework .form-select:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px var(--c-accent-soft); }
.frame-type-form_formframework .is-invalid .form-control, .frame-type-form_formframework .form-control.is-invalid { border-color: var(--c-red); }
.frame-type-form_formframework .invalid-feedback { font-size: .875rem; font-weight: 600; color: var(--c-red); }
.frame-type-form_formframework [role="radiogroup"] { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.frame-type-form_formframework .form-check-wrapping-label { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; font-weight: 400; }
.frame-type-form_formframework .form-check-input { width: 1.1rem; height: 1.1rem; margin: 0; accent-color: var(--c-brand); }
.frame-type-form_formframework .form-check { margin: 0; }
.frame-type-form_formframework .btn-primary {
    justify-self: start; padding: .6rem 1.4rem;
    font: inherit; font-weight: 600; color: #fff; background: var(--c-brand);
    border: 1px solid var(--c-brand); border-radius: var(--radius); cursor: pointer;
}
.frame-type-form_formframework .btn-primary:hover, .frame-type-form_formframework .btn-primary:focus-visible { background: var(--c-brand-mid); border-color: var(--c-brand-mid); }
.frame-type-form_formframework .form-navigation .btn-toolbar, .frame-type-form_formframework .actions { display: flex; }

/* "Menu of selected pages" with layout "Layout 1": a row of buttons (error pages "Access denied", "Page not found") */
.frame-type-menu_pages.frame-layout-1 ul { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 0; padding: 0; list-style: none; }
.frame-type-menu_pages.frame-layout-1 a {
    display: inline-block; padding: .6rem 1.4rem;
    font-weight: 600; color: var(--c-brand); text-decoration: none;
    background: var(--c-surface); border: 1px solid var(--c-brand); border-radius: var(--radius);
}
.frame-type-menu_pages.frame-layout-1 li:first-child a { color: #fff; background: var(--c-brand); }
.frame-type-menu_pages.frame-layout-1 a:hover, .frame-type-menu_pages.frame-layout-1 a:focus-visible { color: #fff; background: var(--c-brand-mid); border-color: var(--c-brand-mid); }

/* ---------------------------------------------------------- Search results */

/* Pages without section menu (e.g. search) use the full width */
.site-body--wide .site-main { grid-column: 1 / -1; }

.search__layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 2rem; align-items: start; }
.search__layout--empty { grid-template-columns: minmax(0, 1fr); }

.search__filters { position: sticky; top: 1rem; font-size: .925rem; }
.search__filters-summary { display: none; }
.search__facets { display: grid; gap: 1.25rem; }
.site-main .facet__title {
    margin: 0 0 .4rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
    color: var(--c-muted);
}
.facet__list { margin: 0; padding: 0; list-style: none; }
.facet__option a {
    display: flex; justify-content: space-between; gap: .75rem;
    padding: .3rem .6rem; border-radius: var(--radius);
    color: var(--c-text); text-decoration: none;
}
.facet__option a:hover { background: var(--c-accent-softer); color: var(--c-brand); }
.facet__option.is-selected a { background: var(--c-accent-soft); color: var(--c-brand); font-weight: 600; }
.facet__count { flex: none; font-size: .8rem; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.facet__more summary { padding: .3rem .6rem; color: var(--c-brand-mid); cursor: pointer; }

.search__bar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem;
    padding-bottom: .75rem; border-bottom: 1px solid var(--c-line);
}
.search__summary { margin: 0; font-weight: 600; color: var(--c-brand); }

.search-sort { display: flex; align-items: center; gap: .25rem; font-size: .875rem; }
.search-sort__label { margin-right: .35rem; color: var(--c-muted); }
.search-sort__option {
    padding: .25rem .7rem; border-radius: 999px;
    color: var(--c-brand-mid); text-decoration: none;
}
.search-sort__option:hover { background: var(--c-accent-softer); color: var(--c-brand); }
.search-sort__option.is-selected { color: #fff; background: var(--c-brand); }

.search__active { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .75rem; font-size: .875rem; }
.search__active-label { color: var(--c-muted); }
.chip {
    display: inline-flex; align-items: center; gap: .4rem;
    padding: .2rem .45rem .2rem .75rem; border-radius: 999px;
    color: var(--c-brand); background: var(--c-accent-soft); text-decoration: none;
}
.chip:hover { color: #fff; background: var(--c-brand); }
.chip__x { font-size: 1.05rem; line-height: 1; }
.search__suggest { margin: .75rem 0 0; }

.search-results { margin: 0; padding: 0; list-style: none; }
.search-result { padding: 1rem 0; border-bottom: 1px solid var(--c-line); }
.search-result__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0 0 .3rem; font-size: .8rem; }
.search-result__ref { color: var(--c-muted); font-variant-numeric: tabular-nums; }
.relevance { display: inline-flex; align-items: center; gap: .4rem; margin-left: auto; color: var(--c-muted); font-variant-numeric: tabular-nums; }
.relevance__bar { width: 64px; height: 6px; overflow: hidden; border-radius: 999px; background: var(--c-accent-soft); }
.relevance__bar > span { display: block; height: 100%; border-radius: inherit; background: var(--c-accent); }
.relevance__value { min-width: 2.6em; text-align: right; }
.site-main .search-result__title { margin: 0 0 .25rem; font-size: 1.075rem; line-height: 1.35; }
.search-result__title a { color: var(--c-brand); text-decoration: none; }
.search-result__title a:hover { text-decoration: underline; }
.search-result__text { margin: 0; font-size: .925rem; color: var(--c-muted); overflow-wrap: anywhere; }
.search-result__text .results-highlight { font-style: normal; font-weight: 600; color: var(--c-text); background: none; }

.badge {
    display: inline-block; padding: .05rem .5rem; border-radius: 999px;
    font-weight: 600; color: var(--c-brand-mid); background: var(--c-accent-softer); border: 1px solid var(--c-accent-soft);
}
.badge--faq { color: #7a4d00; background: #fff8e6; border-color: #f3e1b5; }
.badge--document { color: #1d6b4a; background: #edf8f2; border-color: #cbead9; }

.pager { margin-top: 1.5rem; }
.pager__list { display: flex; flex-wrap: wrap; gap: .25rem; margin: 0; padding: 0; list-style: none; }
.pager__link {
    display: grid; place-items: center; min-width: 2.25rem; height: 2.25rem; padding: 0 .5rem;
    border-radius: var(--radius); color: var(--c-brand-mid); text-decoration: none;
}
a.pager__link:hover { background: var(--c-accent-softer); color: var(--c-brand); }
.pager__link.is-current { color: #fff; background: var(--c-brand); font-weight: 600; }
.pager__gap { display: grid; place-items: center; min-width: 1.5rem; color: var(--c-muted); }
.pager__status { display: none; }

/* ------------------------------------------------------------ Small screens */

@media (max-width: 900px) {
    .site-header__inner { grid-template-columns: auto 1fr; column-gap: .75rem; }
    .site-search { grid-column: 1 / -1; grid-row: 2; max-width: none; }

    /* The menu button sits left of the search field */
    .js .site-header__inner { grid-template-columns: auto auto 1fr; }
    .js .site-header__logo { grid-column: 1 / 3; }
    .js .site-header__tools { grid-column: 3; grid-row: 1; }
    .js .site-search { grid-column: 2 / -1; }

    .site-header__tools { gap: .75rem; }
    .lang-menu__name {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
    .lang-menu__code { display: inline; }

    /* Without JavaScript the menu stays in the page and wraps */
    .main-nav__list { display: flex; flex-wrap: wrap; padding: 0; overflow: visible; }
    .main-nav__item { flex: 1 1 auto; }

    /* Side drawer */
    .nav-toggle {
        display: none; align-items: center; justify-content: center;
        grid-column: 1; grid-row: 2; align-self: stretch; width: 44px; padding: 0;
        color: var(--c-brand); background: var(--c-surface);
        border: 1px solid var(--c-line); border-radius: var(--radius); box-shadow: var(--shadow); cursor: pointer;
    }
    .js .nav-toggle { display: inline-flex; }

    .js .main-nav {
        position: fixed; inset: 0 auto 0 0; z-index: 100;
        width: min(320px, 85vw); height: 100dvh; overflow-y: auto; overscroll-behavior: contain;
        visibility: hidden; transform: translateX(-100%);
        transition: transform .2s ease, visibility 0s linear .2s;
    }
    .js.nav-open .main-nav {
        visibility: visible; transform: none; box-shadow: 4px 0 24px rgb(16 24 40 / .3);
        transition: transform .2s ease;
    }
    .js.nav-open body { overflow: hidden; }

    .js .main-nav__head {
        display: flex; align-items: center; justify-content: space-between;
        padding: .5rem .5rem .5rem 1.25rem; border-bottom: 1px solid rgb(255 255 255 / .15);
    }
    .main-nav__title { font-weight: 600; color: #fff; }
    .main-nav__close {
        display: inline-flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; padding: 0;
        color: #fff; background: none; border: 0; border-radius: var(--radius); cursor: pointer;
    }
    .js .main-nav__list { display: block; padding: .5rem 0; }
    .js .main-nav__item a {
        padding: .85rem 1.25rem; text-align: left; white-space: normal;
        border-bottom: 0; border-left: 3px solid transparent;
    }
    .js .main-nav__item.is-active a { border-left-color: var(--c-accent); }

    .js .nav-backdrop {
        display: block; position: fixed; inset: 0; z-index: 99;
        background: rgb(16 24 40 / .5);
        opacity: 0; visibility: hidden;
        transition: opacity .2s ease, visibility 0s linear .2s;
    }
    .js.nav-open .nav-backdrop { opacity: 1; visibility: visible; transition: opacity .2s ease; }

    .site-body { grid-template-columns: minmax(0, 1fr); gap: 1rem; padding-top: 1rem; }
    .site-main { grid-column: 1; padding: 1rem 1.1rem 1.5rem; }

    .sub-nav { position: static; max-height: none; }

    .search__layout { grid-template-columns: minmax(0, 1fr); gap: 1rem; }
    .frame-type-form_formframework .row { grid-template-columns: minmax(0, 1fr); }
    .search__filters { position: static; border: 1px solid var(--c-line); border-radius: var(--radius); }
    .search__filters-summary {
        display: flex; justify-content: space-between; padding: .6rem .9rem; cursor: pointer; list-style: none;
        font-weight: 600; color: var(--c-brand);
    }
    .search__filters-summary::-webkit-details-marker { display: none; }
    .search__filters-summary::after { content: "▾"; transition: rotate .15s; }
    .search__filters:not([open]) .search__filters-summary::after { rotate: -90deg; }
    .search__facets { padding: .25rem .5rem .75rem; }
    .relevance__label { display: none; }
    .pager__list { justify-content: center; align-items: center; gap: .75rem; }
    .pager__page { display: none; }
    .pager__status { display: block; color: var(--c-muted); font-variant-numeric: tabular-nums; }
    .sub-nav__summary { pointer-events: auto; cursor: pointer; display: flex; justify-content: space-between; }
    .sub-nav__summary::after { content: "▾"; transition: rotate .15s; }
    .sub-nav__details:not([open]) .sub-nav__summary::after { rotate: -90deg; }
}

/* Small screens: "Search in" shows only the icon of the selected option; the name stays for screen readers */
@media (max-width: 900px) {
    .site-search .search-type--custom {
        display: flex; align-items: center; align-self: stretch;
        width: 3.75rem; min-width: 0; padding: 0 0 0 .9rem;
    }
    .site-search .search-type--custom::before {
        content: ""; width: 1.05rem; height: 1.05rem; flex: none; background: var(--c-brand);
        -webkit-mask: var(--icon) no-repeat center / contain; mask: var(--icon) no-repeat center / contain;
    }
    .search-type__value {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
}

/* Narrow phones: the login link shows only its icon, so that logo and language fit */
@media (max-width: 360px) {
    .site-login { padding: .6rem; }
    .site-login__label {
        position: absolute; width: 1px; height: 1px; overflow: hidden;
        clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
}

@media print {
    .nav-toggle, .nav-backdrop, .site-header__tools, .site-search, .main-nav, .sub-nav, .search__filters, .search-sort, .pager, .tabs__list, .site-footer, .skip-link { display: none !important; }
    body { background: #fff; }
    .site-body { display: block; padding: 0; }
    .site-main { border: 0; box-shadow: none; padding: 0; }
    .tabs__panel[hidden] { display: block !important; }
}
