/* Shared editorial components: notes, quotes and pullquotes. */

.gik25-editorial-note,
.specialnote {
    box-sizing: border-box;
    display: block;
    width: 100%;
    margin: 1.25rem 0;
    padding: clamp(0.9rem, 2vw, 1.25rem);
    border: 1px solid color-mix(in srgb, #287db8 26%, transparent);
    border-left: 0.3rem solid var(--gik25-note-accent, #287db8);
    border-radius: 0.75rem;
    background: var(--gik25-note-background, #f2f7fc);
    color: var(--gik25-note-color, #17212b);
    font: inherit;
    line-height: 1.6;
}

.gik25-editorial-note__header,
.gik25-boxinfo__header,
.specialnote > header,
.specialnote > h4 {
    margin: 0 0 0.55rem;
    color: inherit;
    font-size: clamp(1.1rem, 2vw, 1.35rem);
    font-weight: 750;
    line-height: 1.25;
}

.gik25-editorial-note__content,
.gik25-boxinfo__content {
    min-width: 0;
}

.gik25-editorial-note__content > :first-child,
.gik25-boxinfo__content > :first-child {
    margin-top: 0;
}

.gik25-editorial-note__content > :last-child,
.gik25-boxinfo__content > :last-child {
    margin-bottom: 0;
}

.gik25-quote {
    --gik25-quote-border-color: #d7dee7;
    --gik25-quote-font-size: 1.2rem;

    box-sizing: border-box;
    display: block;
    width: min(38%, 25rem);
    margin: 1.25rem 0;
    padding: 0.9rem 1.15rem;
    color: var(--gik25-quote-color, #253241);
    background: var(--gik25-quote-background, transparent);
}

.gik25-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    quotes: none;
}

.gik25-quote blockquote::before,
.gik25-quote blockquote::after {
    content: none;
}

.gik25-quote__content {
    overflow-wrap: anywhere;
    font-size: var(--gik25-quote-font-size);
    line-height: 1.55;
}

.gik25-quote__content > :first-child {
    margin-top: 0;
}

.gik25-quote__content > :last-child {
    margin-bottom: 0;
}

.gik25-quote__caption {
    margin-top: 0.75rem;
    color: color-mix(in srgb, currentColor 72%, transparent);
    font-size: 0.92rem;
    line-height: 1.4;
}

.gik25-quote__caption::before {
    content: "—\00a0";
}

.gik25-quote__caption cite {
    font-style: italic;
}

.gik25-quote__caption a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.12em;
}

.pullquote-align-left {
    float: left;
    margin-right: 1.5rem;
}

.pullquote-align-right {
    float: right;
    margin-left: 1.5rem;
}

.pullquote-align-full,
.gik25-quote--simple {
    float: none;
    width: 100%;
    margin-right: 0;
    margin-left: 0;
}

.pullquote-border-placement-left {
    border-left: 0.3rem solid var(--gik25-quote-border-color);
}

.pullquote-border-placement-right {
    border-right: 0.3rem solid var(--gik25-quote-border-color);
}

.pullquote-border-placement-top {
    border-top: 0.3rem solid var(--gik25-quote-border-color);
}

@media (max-width: 48rem) {
    .gik25-quote,
    .pullquote-align-left,
    .pullquote-align-right,
    .pullquote-align-full {
        float: none;
        width: 100%;
        margin: 1.1rem 0;
        border-right: 0;
        border-left: 0.3rem solid var(--gik25-quote-border-color);
    }

    .pullquote-border-placement-top {
        border-top: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gik25-editorial-note,
    .gik25-quote {
        scroll-behavior: auto;
    }
}
