/* Concrete, hand-maintained CSS for the components ported from @magnolia/cli-freemarker-prototypes into
   modules/common-components/.../templates/components/. Each component gets its own cit-<component> BEM
   block (see docs/superpowers/specs/2026-09-24-common-components-css-decoupling-design.md) - no generic
   Tailwind-style utility classes, so this file only ever styles these components and never collides with
   a consuming project's own CSS. Regenerate nothing: edit this file directly. */

/* ==== Color tokens ====
   Every color in this file is one of these custom properties - no literal color value appears anywhere
   below. Only the first three are brand identity: a consuming project restyles every component by loading
   a CSS file after this one that redeclares --cit-color-primary/--cit-color-accent/--cit-color-dark on
   :root, nothing else needs to change. The remaining tokens are the neutral grayscale (named after the
   Tailwind scale step they replace, since that's the value they still carry) plus white/black - they exist
   as variables for consistency and easy global tweaks, but overriding them is not the supported theming
   path and most of them are reused across many unrelated components, so changing one moves several at once.
   Hover/darker and light-on-dark variants are derived from the brand tokens via color-mix() rather than
   stored as their own variables, so overriding just the base color keeps hover states in sync. */
:root {
    --cit-color-primary: rgb(37 99 235);
    --cit-color-accent: rgb(34 197 94);
    --cit-color-dark: rgb(17 94 89);

    --cit-color-white: #fff;
    --cit-color-black: rgb(0 0 0);
    --cit-color-gray-100: rgb(243 244 246);
    --cit-color-gray-200: rgb(229 231 235);
    --cit-color-gray-300: rgb(209 213 219);
    --cit-color-gray-400: rgb(156 163 175);
    --cit-color-gray-500: rgb(107 114 128);
    --cit-color-gray-600: rgb(75 85 99);
    --cit-color-gray-700: rgb(55 65 81);
    --cit-color-gray-800: rgb(31 41 55);
    --cit-color-gray-900: rgb(17 24 39);

    /* Corner rounding: a customer theme overrides these the same way as the color tokens above - it's as
       much a brand signal (sharp/corporate vs. rounded/friendly) as color, and touching only 4 values is
       low-risk (unlike spacing, no component's layout math depends on the exact radius). */
    --cit-radius-sm: .25rem;
    --cit-radius-md: .375rem;
    --cit-radius-lg: .5rem;
    --cit-radius-xl: .75rem;
    --cit-radius-full: 9999px;
}

/* ==== Breadcrumbs (.cit-breadcrumbs) ==== */
.cit-breadcrumbs {
    padding: .5rem;
    overflow: hidden;
}

.cit-breadcrumbs__nav {
    font-size: .875rem;
    line-height: 1.25rem;
}

.cit-breadcrumbs__list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    min-width: 0;
    list-style: none;
    margin: 0;
    padding: 0;
    color: var(--cit-color-gray-700);
}

.cit-breadcrumbs__item {
    display: flex;
    align-items: center;
    min-width: 0;
    max-width: 100%;
}

.cit-breadcrumbs__link {
    color: var(--cit-color-primary);
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cit-breadcrumbs__link:hover {
    text-decoration: underline;
}

.cit-breadcrumbs__separator {
    margin-left: .5rem;
    margin-right: .5rem;
    flex-shrink: 0;
}

.cit-breadcrumbs__current {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cit-breadcrumbs__empty {
    display: flex;
    align-items: center;
    min-width: 0;
}

.cit-breadcrumbs__empty-text {
    color: var(--cit-color-gray-400);
}

/* ==== Button (.cit-button) ==== */
.cit-button {
    padding: .5rem;
}

/* MAG-330: customisation surface for child projects (docs/features/components/button/README.md).
   A variant or size only sets --cit-button-* properties; hover, focus, disabled and the icon are shared.
   Components that render their call to action through includes/button.ftl (hero, card, modal) keep their old class
   (cit-hero__cta, cit-card__cta, cit-modal__trigger, cit-modal__action) as a hook without rules of its own. */
.cit-button__link {
    display: inline-flex;
    align-items: center;
    gap: .5em;
    padding: var(--cit-button-padding, .5rem 1rem);
    border: var(--cit-button-border, none);
    border-radius: var(--cit-button-radius, var(--cit-radius-sm));
    background-color: var(--cit-button-bg, transparent);
    color: var(--cit-button-color, inherit);
    font-family: inherit;
    font-size: var(--cit-button-font-size, 1rem);
    font-weight: var(--cit-button-font-weight, 700);
    line-height: var(--cit-button-line-height, 1.5rem);
    cursor: pointer;
    transition: background-color .15s cubic-bezier(.4, 0, .2, 1),
                border-color .15s cubic-bezier(.4, 0, .2, 1),
                color .15s cubic-bezier(.4, 0, .2, 1);
}

.cit-button__link:hover {
    background-color: var(--cit-button-bg-hover, var(--cit-button-bg, transparent));
}

.cit-button__link:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cit-button__link:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px var(--cit-color-white), 0 0 0 4px color-mix(in srgb, var(--cit-color-primary) 60%, transparent);
}

.cit-button__link--primary {
    --cit-button-bg: var(--cit-color-primary);
    --cit-button-bg-hover: color-mix(in srgb, var(--cit-color-primary) 85%, var(--cit-color-black));
    --cit-button-color: var(--cit-color-white);
}

.cit-button__link--secondary {
    --cit-button-bg: var(--cit-color-gray-500);
    --cit-button-bg-hover: var(--cit-color-gray-700);
    --cit-button-color: var(--cit-color-white);
}

.cit-button__link--ternary {
    --cit-button-bg: var(--cit-color-accent);
    --cit-button-bg-hover: color-mix(in srgb, var(--cit-color-accent) 85%, var(--cit-color-black));
    --cit-button-color: var(--cit-color-white);
}

.cit-button__link--outline {
    --cit-button-bg: transparent;
    --cit-button-bg-hover: var(--cit-color-gray-100);
    --cit-button-color: var(--cit-color-gray-700);
    --cit-button-border: 1px solid var(--cit-color-gray-500);
}

.cit-button__link--link {
    --cit-button-bg: transparent;
    --cit-button-bg-hover: transparent;
    --cit-button-color: var(--cit-color-primary);
}

.cit-button__link--link:hover {
    text-decoration: underline;
}

.cit-button__link--small {
    --cit-button-padding: .25rem .5rem;
    --cit-button-font-size: .875rem;
    --cit-button-line-height: 1.25rem;
}

.cit-button__link--medium {
    --cit-button-padding: .5rem 1rem;
    --cit-button-font-size: 1rem;
    --cit-button-line-height: 1.5rem;
}

.cit-button__link--large {
    --cit-button-padding: .75rem 1.5rem;
    --cit-button-font-size: 1.125rem;
    --cit-button-line-height: 1.75rem;
}

.cit-button__link--disabled {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}

/* The icon is a mask over currentColor, so it follows the text colour of the variant. A child project adds one with
   .cit-button__icon--<name> { --cit-button-icon: url(...); } plus an option in the dialog decoration. */
.cit-button__icon {
    flex: none;
    width: 1em;
    height: 1em;
    background-color: currentColor;
    -webkit-mask: var(--cit-button-icon, linear-gradient(transparent, transparent)) center / contain no-repeat;
    mask: var(--cit-button-icon, linear-gradient(transparent, transparent)) center / contain no-repeat;
}

.cit-button__icon--arrow-right {
    --cit-button-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='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E");
}

.cit-button__icon--download {
    --cit-button-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 3v12M7 10l5 5 5-5M5 21h14'/%3E%3C/svg%3E");
}

.cit-button__icon--external {
    --cit-button-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='M14 4h6v6M20 4l-9 9M18 14v6H4V6h6'/%3E%3C/svg%3E");
}

/* ==== List (.cit-list) ==== */
.cit-list {
    padding: .5rem;
}

.cit-list__title {
    font-weight: 700;
    margin-bottom: .5rem;
}

.cit-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.cit-list__items > * + * {
    margin-top: .5rem;
}

.cit-list__item {
    padding: .25rem;
    margin-bottom: .25rem;
    border-bottom: 1px solid var(--cit-color-gray-200);
}

/* ==== ProgressBar (.cit-progress-bar) ==== */
.cit-progress-bar {
    padding: .5rem;
}

.cit-progress-bar__track {
    position: relative;
    width: 100%;
    height: .5rem;
    background-color: var(--cit-color-gray-300);
    border-radius: var(--cit-radius-full);
}

.cit-progress-bar__fill {
    position: absolute;
    height: 100%;
    background-color: var(--cit-color-primary);
    border-radius: var(--cit-radius-full);
}

.cit-progress-bar__thumb {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    background-color: var(--cit-color-white);
    border: 2px solid var(--cit-color-primary);
    border-radius: var(--cit-radius-full);
}

.cit-progress-bar__label {
    text-align: center;
    margin-top: .5rem;
}

/* ==== Shared: visually-hidden accessibility text ==== */
.cit-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==== Embed (.cit-embed) ==== */
.cit-embed {
    display: flex;
    justify-content: center;
}

.cit-embed--left {
    justify-content: flex-start;
}

.cit-embed--right {
    justify-content: flex-end;
}

/* ==== Container (.cit-container) ==== */
.cit-container {
    padding: .5rem;
}

.cit-container__row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .cit-container__row--columns {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .cit-container__row--columns-wide {
        flex-direction: row;
    }
}

.cit-container__item {
    display: flex;
    align-items: center;
    justify-content: center;
}

.cit-container__item--flex {
    flex: 1 1 0%;
}

/* ==== Footer (.cit-footer) ==== */
.cit-footer {
    background-color: var(--cit-color-dark);
    color: var(--cit-color-white);
    padding-left: 2rem;
    padding-right: 2rem;
}

.cit-footer__grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 1rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
}

@media (min-width: 768px) {
    .cit-footer__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.cit-footer__logo {
    grid-column: span 2 / span 2;
}

@media (min-width: 1024px) {
    .cit-footer__logo {
        grid-column: span 1 / span 1;
    }
}

.cit-footer__logo-image {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    max-width: 16rem;
}

.cit-footer__copyright {
    text-align: center;
    /* Light tint of --cit-color-dark for readable text on the footer's own background. */
    color: color-mix(in srgb, var(--cit-color-white) 70%, var(--cit-color-dark));
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    border-top: 1px solid color-mix(in srgb, color-mix(in srgb, var(--cit-color-white) 70%, var(--cit-color-dark)) 20%, transparent);
}

/* ==== Hero (.cit-hero) ==== */
.cit-hero {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--cit-color-white);
}

.cit-hero--full { height: 100vh; }
.cit-hero--three-quarter { height: 75vh; }
.cit-hero--half { height: 50vh; }
.cit-hero--large { height: 24rem; }
.cit-hero--medium { height: 20rem; }
.cit-hero--small { height: 16rem; }

.cit-hero__media {
    position: absolute;
    inset: 0;
}

.cit-hero__media-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cit-hero__overlay {
    position: absolute;
    inset: 0;
    background-color: var(--cit-color-black);
    opacity: .5;
}

.cit-hero__content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding-left: 1rem;
    padding-right: 1rem;
}

.cit-hero__title {
    font-size: 2.25rem;
    line-height: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .cit-hero__title {
        font-size: 3.75rem;
        line-height: 1;
    }
}

.cit-hero__description {
    font-size: 1.125rem;
    line-height: 1.75rem;
    margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
    .cit-hero__description {
        font-size: 1.5rem;
        line-height: 2rem;
    }
}

/* ==== Accordion (.cit-accordion) ==== */
.cit-accordion {
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    margin-left: .5rem;
    margin-right: .5rem;
}

.cit-accordion__list {
    margin-left: .5rem;
    margin-right: .5rem;
}

.cit-accordion__list > * + * {
    margin-top: .5rem;
}

.cit-accordion-item {
    border: 1px solid var(--cit-color-gray-200);
    border-radius: var(--cit-radius-md);
    box-shadow: 0 1px 2px 0 color-mix(in srgb, var(--cit-color-black) 5%, transparent);
    overflow: hidden;
}

.cit-accordion-item__button {
    width: 100%;
    text-align: left;
    padding: .5rem 1rem;
    background-color: var(--cit-color-gray-100);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cit-accordion-item__button:hover {
    background-color: var(--cit-color-gray-200);
}

.cit-accordion-item__button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cit-accordion-item__button:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cit-color-primary) 60%, transparent);
}

.cit-accordion-item__title {
    font-weight: 600;
}

.cit-accordion-item__arrow {
    margin-left: .5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform .3s cubic-bezier(.4, 0, .2, 1);
}

.cit-accordion-item__arrow--open {
    transform: rotate(180deg);
}

.cit-accordion-item__grid {
    display: grid;
    transition: grid-template-rows .3s cubic-bezier(.4, 0, .2, 1);
}

.cit-accordion-item__panel {
    overflow: hidden;
    background-color: var(--cit-color-white);
}

.cit-accordion-item__content {
    padding: .5rem;
}

/* ==== Card (.cit-card) ==== */
.cit-card {
    width: 100%;
    padding: 1rem;
}

.cit-card__layout {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background-color: var(--cit-color-white);
    border: 1px solid var(--cit-color-gray-200);
    box-shadow: 0 1px 2px 0 color-mix(in srgb, var(--cit-color-black) 5%, transparent);
    border-radius: var(--cit-radius-xl);
}

.cit-card__layout--top .cit-card__image,
.cit-card__layout--left .cit-card__image,
.cit-card__layout--right .cit-card__image {
    width: 100%;
    height: 12rem;
}

@media (min-width: 640px) {
    .cit-card__layout--left {
        flex-direction: row;
    }

    .cit-card__layout--right {
        flex-direction: row-reverse;
    }

    .cit-card__layout--left .cit-card__image,
    .cit-card__layout--right .cit-card__image {
        width: 33.333%;
        height: auto;
    }
}

.cit-card__image {
    overflow: hidden;
    flex-shrink: 0;
}

.cit-card__image-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cit-card__body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex-grow: 1;
}

.cit-card__title {
    font-weight: 700;
    font-size: 1.25rem;
    line-height: 1.75rem;
    margin-bottom: .5rem;
}

.cit-card__description {
    color: var(--cit-color-gray-700);
}

.cit-card__cta-wrapper {
    margin-top: 1rem;
}

/* ==== Carousel (.cit-carousel) ==== */
.cit-carousel__slide {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    position: relative;
}

.cit-carousel__slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.cit-carousel__empty {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--cit-color-gray-500);
}

.cit-carousel__caption {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 1rem;
}

.cit-carousel__caption-box {
    display: inline-block;
    background-color: color-mix(in srgb, var(--cit-color-black) 50%, transparent);
    color: var(--cit-color-white);
    border-radius: var(--cit-radius-md);
    padding: .5rem 1rem;
}

.cit-carousel__caption-title {
    font-size: 1.5rem;
    line-height: 2rem;
    font-weight: 700;
}

@media (min-width: 768px) {
    .cit-carousel__caption-title {
        font-size: 1.875rem;
        line-height: 2.25rem;
    }
}

.cit-carousel__caption-description {
    font-size: 1rem;
    line-height: 1.5rem;
    margin-top: .25rem;
}

.cit-carousel {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.cit-carousel:focus-visible {
    outline: none;
    box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--cit-color-primary) 60%, transparent);
}

.cit-carousel__viewport {
    position: relative;
    width: 100%;
    height: 16rem;
    overflow: hidden;
    border-radius: var(--cit-radius-md);
    background-color: var(--cit-color-gray-100);
}

.cit-carousel__track {
    display: flex;
    height: 100%;
    transition: transform .5s cubic-bezier(.4, 0, .2, 1);
}

.cit-carousel__track--instant {
    transition: none;
}

.cit-carousel__controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: .75rem;
    margin-top: .75rem;
    margin-bottom: .75rem;
}

.cit-carousel__button {
    padding: .25rem .75rem;
    background-color: var(--cit-color-gray-200);
    color: var(--cit-color-gray-800);
    border-radius: var(--cit-radius-sm);
}

.cit-carousel__button:hover {
    background-color: var(--cit-color-gray-300);
}

.cit-carousel__button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cit-carousel__button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cit-color-primary) 60%, transparent);
}

.cit-carousel__empty-state {
    width: 100%;
    max-width: 28rem;
    margin-left: auto;
    margin-right: auto;
}

/* ==== Modal (.cit-modal) ==== */
.cit-modal {
    padding: 1rem;
}

.cit-modal__overlay-container {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cit-modal__backdrop {
    position: fixed;
    inset: 0;
    background-color: var(--cit-color-black);
    opacity: .5;
}

.cit-modal__panel {
    position: relative;
    background-color: var(--cit-color-white);
    border-radius: var(--cit-radius-lg);
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--cit-color-black) 10%, transparent), 0 4px 6px -4px color-mix(in srgb, var(--cit-color-black) 10%, transparent);
    z-index: 10;
    width: 100%;
    margin-left: 1rem;
    margin-right: 1rem;
    overflow: hidden;
}

.cit-modal__panel--small { max-width: 24rem; }
.cit-modal__panel--medium { max-width: 28rem; }
.cit-modal__panel--large { max-width: 42rem; }

.cit-modal__close {
    color: var(--cit-color-gray-700);
    font-size: 1.5rem;
    line-height: 1;
}

.cit-modal__close:hover {
    color: var(--cit-color-gray-900);
}

.cit-modal__close:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cit-modal__close:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--cit-color-primary) 60%, transparent);
}

.cit-modal__close--floating {
    position: absolute;
    right: .75rem;
    top: .25rem;
    z-index: 20;
    font-size: 1.875rem;
    line-height: 1;
}

.cit-modal__image {
    width: 100%;
    height: 10rem;
    overflow: hidden;
}

.cit-modal__image-el {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cit-modal__header {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid var(--cit-color-gray-200);
}

.cit-modal__header--no-image {
    justify-content: space-between;
}

.cit-modal__title {
    font-size: 1.25rem;
    line-height: 1.75rem;
    font-weight: 600;
}

.cit-modal__body {
    padding: 1rem;
}

.cit-modal__footer {
    padding: .75rem 1rem;
    border-top: 1px solid var(--cit-color-gray-200);
    display: flex;
    justify-content: flex-end;
    gap: .75rem;
}

/* ==== Navigation (.cit-navigation) ==== */
.cit-navigation {
    position: sticky;
    top: 0;
    height: 5rem;
    z-index: 50;
    padding-left: 1rem;
    padding-right: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--cit-color-white);
    border-bottom: 1px solid var(--cit-color-gray-400);
}

@media (min-width: 768px) {
    .cit-navigation {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.cit-navigation__brand {
    height: 100%;
    display: flex;
    align-items: center;
}

.cit-navigation__brand-image {
    width: 10rem;
    height: 100%;
    object-fit: contain;
    padding-top: .25rem;
    padding-bottom: .25rem;
}

@media (min-width: 768px) {
    .cit-navigation__brand-image {
        width: 13rem;
    }
}

.cit-navigation__desktop {
    display: none;
}

@media (min-width: 768px) {
    .cit-navigation__desktop {
        display: block;
    }
}

.cit-navigation__desktop-list {
    display: flex;
    gap: 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.cit-navigation__toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--cit-radius-sm);
}

.cit-navigation__toggle > * + * {
    margin-top: .375rem;
}

.cit-navigation__toggle:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

@media (min-width: 768px) {
    .cit-navigation__toggle {
        display: none;
    }
}

.cit-navigation__toggle-line {
    display: block;
    width: 1.5rem;
    height: .125rem;
    background-color: var(--cit-color-gray-800);
}

.cit-navigation__mobile {
    display: none;
    position: fixed;
    top: 5rem;
    left: 0;
    right: 0;
    background-color: var(--cit-color-white);
    border-bottom: 1px solid var(--cit-color-gray-400);
    box-shadow: 0 10px 15px -3px color-mix(in srgb, var(--cit-color-black) 10%, transparent), 0 4px 6px -4px color-mix(in srgb, var(--cit-color-black) 10%, transparent);
}

@media (min-width: 768px) {
    .cit-navigation__mobile {
        display: block;
    }
}

.cit-navigation__mobile-list {
    display: flex;
    flex-direction: column;
    padding-top: 1rem;
    padding-bottom: 1rem;
    list-style: none;
    margin: 0;
}

.cit-navigation__mobile-link {
    display: block;
    padding: .75rem 1.5rem;
    transition: background-color .15s cubic-bezier(.4, 0, .2, 1),
                border-color .15s cubic-bezier(.4, 0, .2, 1),
                color .15s cubic-bezier(.4, 0, .2, 1),
                fill .15s cubic-bezier(.4, 0, .2, 1),
                stroke .15s cubic-bezier(.4, 0, .2, 1),
                text-decoration-color .15s cubic-bezier(.4, 0, .2, 1);
}

.cit-navigation__mobile-link:hover {
    background-color: var(--cit-color-gray-100);
}

.cit-navigation__overlay {
    display: none;
    position: fixed;
    inset: 0;
    top: 5rem;
    background-color: color-mix(in srgb, var(--cit-color-black) 20%, transparent);
    z-index: -1;
}

@media (min-width: 768px) {
    .cit-navigation__overlay {
        display: block;
    }
}

/* ==== Tabs (.cit-tabs) ==== */
.cit-tabs {
    width: 100%;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.cit-tabs__header-row {
    position: relative;
}

.cit-tabs__scroll-container {
    padding-left: 2rem;
    padding-right: 2rem;
}

.cit-tabs__header {
    display: flex;
    gap: 1rem;
    border-bottom: 1px solid var(--cit-color-gray-200);
    list-style: none;
    margin: 0;
    padding: 0;
}

.cit-tabs__content {
    margin-left: .5rem;
    margin-right: .5rem;
}

.cit-tabs__scroll-button:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cit-tabs__tab-wrapper {
    flex-shrink: 0;
}

.cit-tabs__panel {
    padding: .5rem;
}

.cit-tabs__tab {
    padding: .5rem 1rem;
    white-space: nowrap;
    color: var(--cit-color-gray-600);
}

.cit-tabs__tab:focus {
    outline: 2px solid transparent;
    outline-offset: 2px;
}

.cit-tabs__tab--active {
    border-bottom: 2px solid var(--cit-color-primary);
    font-weight: 600;
    color: inherit;
}

/* recommendedArticle teaser (MAG-306): hand-written, not part of the components above. Only what the markup needs
   to work - layout, order, spacing and clamping of the text are left to the theme (docs/features/components/
   recommended-article/draft.md, section 6.4). The "read more" link is the teaser's one real link; its
   ::after stretches the click target over the whole teaser, which position: relative keeps within the teaser - also
   when many teasers stand in a list. The screen-reader suffix of the link uses .cit-visually-hidden above. */
.cit-teaser {
    position: relative;
}

.cit-teaser__read-more::after {
    content: "";
    position: absolute;
    inset: 0;
}

/* In the page editor the stretched click target would swallow the clicks that select the component. */
.cit-teaser--edit-mode .cit-teaser__read-more::after {
    content: none;
}

/* Article lists - the automatic ones and recommendedArticleList (docs/features/components/most-read-articles/draft.md,
   section 6.2): only the reset of the list itself - columns, grid and spacing of the entries are left to the theme,
   which tells the lists apart by the class per kind (e.g. .cit-recommended-article-list). */
.cit-article-list__items {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* MAG-355: the note a list can add to each entry - nearbyArticles puts the distance there. It is secondary
   information and must not read like the teaser's own text, so it gets its own line and a smaller, muted setting;
   everything beyond that is the theme's. It sits outside the teaser on purpose, so the stretched link of
   .cit-teaser__read-more does not cover it. */
.cit-article-list__item-note {
    display: block;
    font-size: .875em;
    color: var(--cit-color-gray-600);
}

/* MAG-379: consent banner (consentBanner) and the placeholder of embeds waiting for consent. Themes restyle via the
   --cit-consent-* properties or the classes. "Alle akzeptieren" and "Nur notwendige" get the same weight on purpose:
   refusing must not be harder than agreeing. */
.cit-consent,
.cit-consent-placeholder,
.cit-consent-summary {
    --cit-consent-accent: var(--cit-color-primary);
    --cit-consent-surface: #fff;
    --cit-consent-muted: var(--cit-color-gray-600);
    --cit-consent-border: var(--cit-color-gray-300);
    --cit-consent-placeholder-surface: var(--cit-color-gray-100);
    --cit-consent-radius: .5rem;
    --cit-consent-backdrop: rgb(0 0 0 / .5);
}

.cit-consent {
    border: 0;
    padding: 0;
    background: transparent;
    max-width: none;
}

.cit-consent--bottom {
    position: fixed;
    inset: auto 0 0;
    width: 100%;
    margin: 0;
    z-index: 1000;
}

.cit-consent--center {
    width: min(640px, calc(100% - 2rem));
}

.cit-consent::backdrop {
    background: var(--cit-consent-backdrop, rgb(0 0 0 / .5));
}

.cit-consent__panel {
    max-height: 80vh;
    overflow: auto;
    padding: 1.5rem;
    border-radius: var(--cit-consent-radius);
    background: var(--cit-consent-surface);
    box-shadow: 0 -4px 24px rgb(0 0 0 / .15);
}

.cit-consent--bottom .cit-consent__panel {
    border-radius: var(--cit-consent-radius) var(--cit-consent-radius) 0 0;
}

.cit-consent__title {
    margin: 0 0 .5rem;
    font-size: 1.25rem;
}

.cit-consent__category {
    padding: .75rem 0;
    border-top: 1px solid var(--cit-consent-border);
}

.cit-consent__category-label {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    font-weight: 600;
    cursor: pointer;
}

/* Theme resets often strip every input of its look (appearance: none, no border, no background) - the category
   checkboxes then vanish and the settings become useless. Restore the native control here, with a selector that
   outranks such element-wide resets. */
.cit-consent .cit-consent__category-label input[type="checkbox"] {
    appearance: auto;
    -webkit-appearance: checkbox;
    position: static;
    display: inline-block;
    flex: none;
    width: 1.125rem;
    height: 1.125rem;
    margin: 0;
    opacity: 1;
    visibility: visible;
    accent-color: var(--cit-consent-accent);
    cursor: pointer;
}

.cit-consent .cit-consent__category-label input[type="checkbox"]:disabled {
    cursor: default;
}

.cit-consent .cit-consent__category-label input[type="checkbox"]:focus-visible {
    outline: 2px solid var(--cit-consent-accent);
    outline-offset: 2px;
}

.cit-consent__category-description {
    margin: .25rem 0 0 1.625rem;
    color: var(--cit-consent-muted);
    font-size: .875rem;
}

.cit-consent__actions,
.cit-consent-placeholder__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
}

.cit-consent__actions {
    margin-top: 1rem;
}

.cit-consent__actions button,
.cit-consent-placeholder button {
    padding: .5rem 1rem;
    border: 1px solid var(--cit-consent-accent);
    border-radius: var(--cit-consent-radius);
    background: var(--cit-consent-surface);
    color: var(--cit-consent-accent);
    font: inherit;
    cursor: pointer;
}

.cit-consent__actions .cit-consent__accept-all,
.cit-consent__actions .cit-consent__reject-all,
.cit-consent-placeholder .cit-consent-placeholder__load {
    background: var(--cit-consent-accent);
    color: #fff;
}

.cit-consent__links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
    font-size: .875rem;
}

.cit-consent-placeholder {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: .75rem;
    padding: 1.5rem;
    border: 1px dashed var(--cit-consent-border);
    border-radius: var(--cit-consent-radius);
    background: var(--cit-consent-placeholder-surface);
}

.cit-consent-placeholder__text {
    margin: 0;
}

.cit-consent-summary {
    padding: .75rem 1rem;
    border: 1px dashed var(--cit-consent-border);
    font-size: .875rem;
}

/* MAG-331: sticky notice (stickyNotice.ftl). Themes restyle it through the --cit-sticky-notice-* properties and the
   variant classes --info, --hint and --action. z-index below .cit-consent (1000): a consent banner reopened from the
   footer lies on top. The bar covers content on purpose instead of padding the body - it must not shift the page. */
.cit-sticky-notice,
.cit-sticky-notice-summary {
    --cit-sticky-notice-surface: var(--cit-color-gray-100);
    --cit-sticky-notice-accent: var(--cit-color-primary);
    --cit-sticky-notice-border: var(--cit-color-gray-300);
}

.cit-sticky-notice--hint {
    --cit-sticky-notice-surface: #fff8e1;
}

.cit-sticky-notice--action {
    --cit-sticky-notice-surface: var(--cit-color-primary);
    --cit-sticky-notice-text: #fff;
    --cit-sticky-notice-accent: #fff;
}

.cit-sticky-notice {
    position: fixed;
    inset-inline: 0;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: .75rem 1rem;
    background: var(--cit-sticky-notice-surface);
    color: var(--cit-sticky-notice-text, inherit);
    box-shadow: 0 0 1rem rgb(0 0 0 / .15);
    opacity: 0;
    transition: opacity .3s ease, transform .3s ease;
}

.cit-sticky-notice[hidden] {
    display: none;
}

.cit-sticky-notice--top {
    top: 0;
    transform: translateY(-100%);
}

.cit-sticky-notice--bottom {
    bottom: 0;
    transform: translateY(100%);
}

.cit-sticky-notice.cit-sticky-notice--visible {
    opacity: 1;
    transform: none;
}

.cit-sticky-notice__image {
    flex: none;
    width: auto;
    max-height: 3rem;
}

.cit-sticky-notice__text {
    flex: 1;
    min-width: 0;
}

.cit-sticky-notice__text > :first-child {
    margin-top: 0;
}

.cit-sticky-notice__text > :last-child {
    margin-bottom: 0;
}

.cit-sticky-notice__action {
    flex: none;
    padding: .5rem 1rem;
    border: 1px solid var(--cit-sticky-notice-accent);
    border-radius: .25rem;
    color: var(--cit-sticky-notice-accent);
    font-weight: 600;
    text-decoration: none;
}

.cit-sticky-notice__close {
    flex: none;
    padding: .25rem .5rem;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 599.98px) {
    .cit-sticky-notice {
        flex-wrap: wrap;
    }

    /* Button on its own line below the text; image, text and close stay in the first line. */
    .cit-sticky-notice__action {
        order: 1;
        flex-basis: 100%;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cit-sticky-notice {
        transition: none;
    }
}

.cit-sticky-notice-summary {
    padding: .75rem 1rem;
    border: 1px dashed var(--cit-sticky-notice-border);
    font-size: .875rem;
}

/* MAG-356: article map */
.cit-article-map__canvas {
    width: 100%;
    min-height: 200px;
}

.cit-article-map__info {
    max-width: 20rem;
}

/* Edit-mode notices (no credentials, no articles, no covering site), styled like the sticky notice summary. */
.cit-article-map--empty,
.cit-article-map__hint {
    padding: .75rem 1rem;
    border: 1px dashed currentColor;
    font-size: .875rem;
}

.cit-article-map--empty p,
.cit-article-map__hint {
    margin: 0;
}

.cit-article-map--empty p + p {
    margin-top: .5rem;
}
