/*
 * How a person finds his way around and what a visitor sees first: the main menu, the heart on the tips (and the favorites), the home page of a
 * visitor (the hero, the three steps with their popups, the card of the sign-in), the strip with the letter to Ježíšek and the information pages
 * (Jak to funguje, Časté dotazy). It is loaded after the framework, so it wins over it; the dark theme of these parts is at the end of the file.
 * The colours are the tokens of styles.css (--brand, --yellow, --yellow-light); the pink is the one of the hearts of the wishes.
 */

:root {
    --heart: #e0245e;
    --heart-dark: #bf1a4c;
    --soft-blue: #e3ecfa;
}

/* ---- the main menu: tabs under the logo, the open one grows into the white page ---- */
.main-nav {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: .5rem;
    padding: 0 .25rem;
    margin-bottom: -1px;
}

.main-nav-list {
    display: flex;
    flex-wrap: nowrap;
    gap: .15rem;
    min-width: 0;
    margin: 0;
    padding: 0;
    overflow-x: auto;
    list-style: none;
    scrollbar-width: none;
}

.main-nav-list::-webkit-scrollbar {
    display: none;
}

.main-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .55rem .9rem .6rem;
    border-radius: 12px 12px 0 0;
    color: #4a5a68;
    font-weight: 700;
    white-space: nowrap;
}

.main-nav-link .bi {
    font-size: 1.05rem;
}

.main-nav-link:hover {
    background: rgba(255, 255, 255, .6);
    color: var(--brand);
    text-decoration: none;
}

.main-nav-link.is-active,
.main-nav-link.is-active:hover {
    background: #fff;
    color: var(--brand);
    box-shadow: 0 -2px 6px rgba(0, 0, 0, .06);
}

.main-nav-link.is-active::after {
    content: '';
    position: absolute;
    left: .9rem;
    right: .9rem;
    bottom: 0;
    height: 3px;
    border-radius: 3px 3px 0 0;
    background: var(--yellow-hover);
}

/* the letter to Ježíšek, in its season: a touch of red, so it is seen among the three */
.main-nav-seasonal .main-nav-link {
    color: #b3261e;
}

.main-nav-seasonal .main-nav-link.is-active {
    color: #b3261e;
}

/* the button of a visitor who wants in: on the right of the menu, a quiet outline that is still seen */
.main-nav-signin {
    flex: 0 0 auto;
    align-self: flex-end;
    margin-bottom: .6rem;
    padding: .35rem .85rem;
    border: 2px solid var(--brand);
    border-radius: 999px;
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
}

.main-nav-signin:hover {
    background: var(--brand);
    color: #fff;
    text-decoration: none;
}

/* a menu that does not fit fades out at the edge it goes on at (www/js/nav-scroll.js sets the class) */
.main-nav-list.has-more-right {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent);
}

@media (max-width: 575.98px) {
    .main-nav {
        gap: .25rem;
    }

    .main-nav-link {
        gap: .3rem;
        padding: .55rem .5rem .6rem;
        font-size: .9rem;
    }

    /* a visitor has the sign-in button beside the menu: the words are enough there, the icons would push the last link out */
    .main-nav-visitor .main-nav-link .bi {
        display: none;
    }

    .main-nav-signin {
        gap: .25rem;
        padding: .3rem .65rem;
        font-size: .9rem;
    }
}

/* ---- the heart on a tip ---- */
.tip-mini,
.tip-card {
    position: relative;
}

.tip-heart-form {
    position: absolute;
    top: .45rem;
    right: .45rem;
    z-index: 2;
    margin: 0;
}

a.tip-heart {
    position: absolute;
    top: .45rem;
    right: .45rem;
    z-index: 2;
}

.tip-heart {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.1rem;
    height: 2.1rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 1px 4px rgba(0, 0, 0, .25);
    color: var(--heart);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: transform .15s ease, background-color .15s ease;
}

.tip-heart:hover,
.tip-heart:focus-visible {
    background: #fff;
    color: var(--heart-dark);
    text-decoration: none;
    transform: scale(1.12);
}

.tip-heart.is-on .bi {
    animation: tip-heart-pop .35s ease;
}

@keyframes tip-heart-pop {
    40% { transform: scale(1.45); }
}

.tip-heart:disabled {
    opacity: .6;
    cursor: progress;
}

/* a heart that is a button in a row (the bar at the bottom of a phone), not over the corner of a photo */
.tip-heart-form-inline {
    position: static;
    display: inline-block;
}

.tip-detail-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .6rem;
}

/* a tip taken off the shelf on the page of the favorites fades out and leaves */
.tip-card {
    transition: opacity .25s ease, transform .25s ease;
}

.tip-card.is-leaving {
    opacity: 0;
    transform: scale(.94);
}

.tip-card-have {
    align-self: center;
    color: #2d7a4f;
    font-size: .85rem;
    font-weight: 700;
}

/* a page without anything yet (the favorites): a soft box with an icon, a few words and the way on */
.empty-state {
    max-width: 30rem;
    margin: 1.5rem auto;
    padding: 2rem 1.25rem;
    border: 1px dashed #d4d1c8;
    border-radius: 14px;
    background: #faf8f2;
    text-align: center;
}

.empty-state-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.5rem;
    height: 3.5rem;
    margin-bottom: .5rem;
    border-radius: 50%;
    background: #fde6ee;
    color: var(--heart);
    font-size: 1.6rem;
}

/* ---- the home page of a visitor: the hero ---- */
.visitor-hero {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: .25rem 0 1.25rem;
    padding: 1.5rem 1.25rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--yellow-light) 100%);
}

.visitor-hero-kicker {
    margin: 0 0 .4rem;
    color: var(--brand);
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .02em;
}

.visitor-hero-title {
    margin: 0 0 .6rem;
    color: var(--brand);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
}

/* the two paragraphs that say what the site is for (Component/intro_paragraphs.latte): on the home page and on the page Jak to funguje */
.intro-lead {
    margin: 0 0 .7rem;
    color: #3d4b5c;
    font-size: 1.08rem;
}

.intro-more {
    margin: 0 0 1.1rem;
    color: #3d4b5c;
}

.intro-more a {
    font-weight: 700;
}

.visitor-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
}

.visitor-hero-actions .btn {
    font-weight: 700;
}

a.btn.btn-hero-second {
    border: 2px solid var(--brand);
    background: rgba(255, 255, 255, .85);
    color: var(--brand);
}

a.btn.btn-hero-second:hover {
    background: #fff;
    color: var(--brand-dark);
}

.visitor-hero-note {
    margin: .8rem 0 0;
    color: #5b6877;
    font-size: .88rem;
}

.visitor-hero-picture {
    min-width: 0;
}

@media (min-width: 768px) {
    .visitor-hero {
        flex-direction: row;
        align-items: center;
        gap: 2rem;
        padding: 2.25rem 2rem 1.75rem;
    }

    .visitor-hero-text {
        flex: 1 1 52%;
    }

    .visitor-hero-picture {
        flex: 1 1 48%;
    }

    .visitor-hero-title {
        font-size: 2.6rem;
    }
}

/* ---- the slideshow of sample wishes: cards like the wishes of the site, a "photo" of an emoji on a colour ---- */
.sample-wishes {
    position: relative;
}

.sample-track {
    display: flex;
    gap: .8rem;
    margin: 0;
    padding: .4rem .25rem .7rem;
    overflow-x: auto;
    list-style: none;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}

.sample-track::-webkit-scrollbar {
    display: none;
}

.sample-track:focus-visible {
    outline: 3px solid #006aeb;
    outline-offset: 2px;
    border-radius: 12px;
}

.sample-slide {
    flex: 0 0 min(11.5rem, 62%);
    scroll-snap-align: start;
}

.sample-card {
    height: 100%;
    padding-bottom: .75rem;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(20, 50, 92, .16);
}

.sample-card-top {
    border-color: var(--heart);
    box-shadow: 0 0 14px rgba(224, 36, 94, .35);
}

.sample-photo {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, var(--photo-a), var(--photo-b));
}

.sample-ribbon {
    position: absolute;
    top: .45rem;
    left: .45rem;
}

.sample-emoji {
    font-size: 3.7rem;
    line-height: 1;
    filter: drop-shadow(0 5px 6px rgba(0, 0, 0, .25));
}

.sample-card[data-tone="0"] { --photo-a: #d6e6ff; --photo-b: #9bbdf0; }
.sample-card[data-tone="1"] { --photo-a: #ffe3c9; --photo-b: #f7b98a; }
.sample-card[data-tone="2"] { --photo-a: #e7dcff; --photo-b: #b8a2ee; }
.sample-card[data-tone="3"] { --photo-a: #d3f3e4; --photo-b: #8fd7b4; }
.sample-card[data-tone="4"] { --photo-a: #ffe9a8; --photo-b: #f5c94b; }
.sample-card[data-tone="5"] { --photo-a: #ffd6e2; --photo-b: #f29bb6; }
.sample-card[data-tone="6"] { --photo-a: #cdeff5; --photo-b: #7fc9d8; }
.sample-card[data-tone="7"] { --photo-a: #fbe4ff; --photo-b: #dfa5ee; }
.sample-card[data-tone="8"] { --photo-a: #d9dcf8; --photo-b: #8f97e0; }
.sample-card[data-tone="9"] { --photo-a: #e2f0c9; --photo-b: #aed174; }

.sample-title {
    margin: .65rem .8rem .15rem;
    color: var(--brand);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
}

.sample-card .wish-hearts {
    display: block;
    margin: 0 .8rem;
    font-size: .85rem;
}

.sample-text {
    margin: .3rem .8rem 0;
    color: #55544f;
    font-size: .85rem;
    line-height: 1.3;
}

.sample-arrow {
    position: absolute;
    top: 38%;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, .3);
    color: var(--brand);
    font-size: 1.1rem;
    cursor: pointer;
    transform: translateY(-50%);
    transition: transform .15s ease, background-color .15s ease;
}

.sample-arrow[hidden] {
    display: none;
}

.sample-arrow:hover,
.sample-arrow:focus-visible {
    background: var(--yellow);
    transform: translateY(-50%) scale(1.08);
}

.sample-arrow-prev {
    left: -.6rem;
}

.sample-arrow-next {
    right: -.6rem;
}

.sample-note {
    margin: 0;
    color: #6b7684;
    font-size: .82rem;
    text-align: center;
}

/* ---- the three steps ---- */
.how-it-works {
    margin: 1.5rem 0;
}

.how-title {
    margin: 0 0 .25rem;
    color: var(--brand);
    font-size: 1.6rem;
    font-weight: 800;
    text-align: center;
}

.how-lead {
    margin: 0 0 1rem;
    color: #5b6877;
    text-align: center;
}

.how-steps {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.how-card {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: 'icon title' 'icon teaser' 'icon more';
    column-gap: .9rem;
    align-items: center;
    height: 100%;
    padding: 1rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 16px;
    background: radial-gradient(circle at 92% 8%, rgba(255, 255, 255, .75), transparent 42%), linear-gradient(145deg, var(--card-a), var(--card-b));
    color: #333;
    box-shadow: 0 3px 10px rgba(20, 50, 92, .12);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}

a.how-card:hover,
a.how-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--brand);
    box-shadow: 0 8px 20px rgba(20, 50, 92, .15);
    color: #333;
    text-decoration: none;
}

.how-number {
    position: absolute;
    top: .55rem;
    right: .8rem;
    color: #cfcab9;
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1;
}

.how-icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .12);
    color: var(--brand);
    font-size: 1.6rem;
}

/* every step has a background of its own: warm, cool, and the pink of the hearts */
.how-step:nth-child(1) .how-card { --card-a: #fff1b8; --card-b: #ffd978; }
.how-step:nth-child(2) .how-card { --card-a: #d9e8ff; --card-b: #b3cffa; }
.how-step:nth-child(3) .how-card { --card-a: #ffdce7; --card-b: #ffb9cf; }

.how-step:nth-child(3) .how-icon {
    color: var(--heart);
}

.how-card-title {
    grid-area: title;
    color: var(--brand);
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.25;
}

.how-card-teaser {
    grid-area: teaser;
    color: #55544f;
    font-size: .92rem;
}

.how-card-more {
    grid-area: more;
    margin-top: .2rem;
    color: #006aeb;
    font-size: .88rem;
    font-weight: 700;
}

.how-card-more .bi {
    transition: transform .15s ease;
}

a.how-card:hover .how-card-more .bi {
    transform: translateX(4px);
}

@media (min-width: 768px) {
    .how-steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .how-card {
        grid-template-columns: 1fr;
        grid-template-areas: 'icon' 'title' 'teaser' 'more';
        justify-items: center;
        row-gap: .35rem;
        padding: 1.4rem 1.1rem 1.1rem;
        text-align: center;
    }

    .how-icon {
        width: 4rem;
        height: 4rem;
        margin-bottom: .35rem;
        font-size: 1.9rem;
    }
}

/* the popup of a step: a native dialog, the screenshot first, then a few short points */
.how-dialog {
    width: calc(100% - 1.5rem);
    max-width: 34rem;
    max-height: calc(100vh - 2rem);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    overflow: auto;
}

.how-dialog::backdrop {
    background: rgba(15, 20, 27, .6);
}

.how-dialog[open] {
    animation: how-dialog-in .2s ease;
}

@keyframes how-dialog-in {
    from { opacity: 0; transform: translateY(12px) scale(.98); }
}

.how-dialog-body {
    position: relative;
    padding: 1.4rem 1.25rem 1.25rem;
}

.how-dialog-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b6a64;
    font-size: 1.1rem;
    cursor: pointer;
}

.how-dialog-close:hover,
.how-dialog-close:focus-visible {
    background: #eef1f5;
    color: #333;
}

.how-dialog-kicker {
    margin: 0 0 .15rem;
    color: #8a8880;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.how-dialog-title {
    margin: 0 2rem .75rem 0;
    color: var(--brand);
    font-size: 1.35rem;
    font-weight: 800;
}

.how-dialog-figure {
    margin: 0 0 1rem;
    padding: .75rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--yellow-light) 100%);
}

.how-dialog-figure img {
    display: block;
    width: 100%;
    max-height: 15rem;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 50, 92, .2);
}

.how-dialog-points {
    margin: 0 0 1.1rem;
    padding: 0;
    list-style: none;
}

.how-dialog-points li {
    display: flex;
    gap: .55rem;
    margin-bottom: .5rem;
}

.how-dialog-points .bi {
    flex: 0 0 auto;
    margin-top: .1rem;
    color: #2d7a4f;
    font-size: 1.1rem;
}

.how-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

/* ---- the sign-in: a popup over the page (Component/sign_in_dialog.latte), and the invitation at the end of the home page ---- */
.signin-dialog {
    position: fixed;
    width: calc(100% - 1.5rem);
    max-width: 30rem;
    max-height: calc(100vh - 1.5rem);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: #fff;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    overflow: auto;
}

.signin-dialog::backdrop {
    background: rgba(15, 20, 27, .6);
}

.signin-dialog[open] {
    animation: how-dialog-in .2s ease;
}

/* the dialog the server has drawn open, before the script makes it a popup (or without it): a plain box on the page */
.signin-dialog[open]:not(:modal) {
    position: static;
    margin: 1.5rem auto;
    box-shadow: 0 6px 24px rgba(20, 50, 92, .15);
}

.signin-dialog-close {
    position: absolute;
    top: .6rem;
    right: .6rem;
    z-index: 1;
    width: 2.4rem;
    height: 2.4rem;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #6b6a64;
    font-size: 1.1rem;
    cursor: pointer;
}

.signin-dialog-close:hover,
.signin-dialog-close:focus-visible {
    background: #eef1f5;
    color: #333;
}

.signin-card {
    padding: 1.6rem 1.25rem 1.25rem;
}

.signin-title {
    margin: 0 1.5rem .35rem;
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 800;
    text-align: center;
}

.signin-card .login-panel {
    width: 100%;
    margin: 0 auto;
}

.signin-invite {
    margin: 2rem 0 1rem;
    padding: 1.75rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--yellow-light) 100%);
    text-align: center;
}

.signin-invite h2 {
    margin: 0 0 .4rem;
    color: var(--brand);
    font-size: 1.6rem;
    font-weight: 800;
}

.signin-invite p {
    margin: 0 0 1rem;
    color: #3d4b5c;
}

/* ---- a strip that can be closed for good (the invitation to the letter, the link to the tips) ---- */
.dismissible {
    position: relative;
}

.dismissible[hidden] {
    display: none;
}

.strip-close {
    position: absolute;
    top: .4rem;
    right: .45rem;
    z-index: 2;
    width: 1.8rem;
    height: 1.8rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, .65);
    color: #6b6a64;
    font-size: .75rem;
    cursor: pointer;
}

.strip-close:hover,
.strip-close:focus-visible {
    background: #fff;
    color: #333;
}

.tips-teaser-wrap .tips-teaser {
    padding-right: 3.6rem;
}

/* ---- the strip with the letter to Ježíšek (in its season): the words on the left, a faint list of wishes on the right ---- */
.letter-promo-wrap {
    margin: 0 0 1.1rem;
}

a.letter-promo {
    position: relative;
    display: flex;
    align-items: center;
    gap: .8rem;
    padding: .8rem 3rem .8rem 1rem;
    overflow: hidden;
    border: 1px solid #f0c9c4;
    border-radius: 14px;
    background: linear-gradient(90deg, #fff4e5 0%, #ffe6e3 100%);
    color: #5a2a25;
}

a.letter-promo:hover {
    border-color: #d9534f;
    color: #5a2a25;
    text-decoration: none;
}

.letter-promo-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-size: 1.4rem;
}

.letter-promo-text {
    position: relative;
    z-index: 1;
    flex: 1 1 auto;
    min-width: 0;
}

.letter-promo-text b {
    font-size: 1.08rem;
}

.letter-promo-hint {
    display: block;
    color: #7a4a44;
    font-size: .88rem;
}

.letter-promo-go {
    display: inline-block;
    margin-top: .1rem;
    color: #b3261e;
    font-weight: 700;
}

/* the list of wishes on the right: faint, fading out to the left, like a letter lying under the words; it is only for the eye */
.letter-promo-list {
    position: absolute;
    top: 50%;
    right: 3rem;
    display: none;
    flex-direction: column;
    gap: .1rem;
    width: 42%;
    padding-left: 2rem;
    color: rgba(90, 42, 37, .4);
    font-family: var(--font-logo);
    font-size: 1.25rem;
    line-height: 1.25;
    transform: translateY(-50%) rotate(-2deg);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 45%);
    mask-image: linear-gradient(to right, transparent, #000 45%);
}

.letter-promo-list span {
    white-space: nowrap;
}

@media (min-width: 576px) {
    .letter-promo-list {
        display: flex;
    }
}

/* ---- the information pages (Jak to funguje, Časté dotazy) ---- */
.info-page {
    max-width: 52rem;
    margin: 0 auto;
}

.info-title {
    margin: .5rem 0 .5rem;
    color: var(--brand);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.15;
}

.info-lead {
    margin: 0 0 1.1rem;
    color: #3d4b5c;
    font-size: 1.1rem;
}

.info-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem;
    margin-bottom: 1.5rem;
}

.info-section {
    margin: 2rem 0;
}

.info-section > h2 {
    margin: 0 0 .75rem;
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 800;
}

/* a step explained in full: the text on one side, the screenshot on the other (under each other on a phone) */
.guide-step {
    display: flex;
    flex-direction: column;
    gap: .9rem;
    margin-bottom: 1.5rem;
    padding: 1.1rem;
    border: 1px solid #e3e1da;
    border-radius: 14px;
    background: #fff;
    scroll-margin-top: 1rem;
}

.guide-step:target {
    border-color: var(--yellow-hover);
    box-shadow: 0 0 0 4px rgba(255, 213, 79, .5);
}

.guide-step h3 {
    margin: 0 0 .5rem;
    color: var(--brand);
    font-size: 1.25rem;
    font-weight: 800;
}

.guide-step-no {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.9rem;
    height: 1.9rem;
    margin-right: .4rem;
    border-radius: 50%;
    background: var(--yellow);
    color: var(--brand-dark);
    font-size: 1rem;
}

.guide-step figure {
    margin: 0;
    padding: .6rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--yellow-light) 100%);
}

.guide-step img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(20, 50, 92, .2);
}

@media (min-width: 768px) {
    .guide-step {
        flex-direction: row;
        align-items: center;
    }

    .guide-step > div {
        flex: 1 1 50%;
    }

    .guide-step figure {
        flex: 1 1 50%;
    }

    .guide-step:nth-child(even) {
        flex-direction: row-reverse;
    }
}

.feature-grid {
    display: grid;
    gap: .9rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.feature-card {
    height: 100%;
    padding: 1rem;
    border: 1px solid #e3e1da;
    border-radius: 14px;
    background: #fff;
}

.feature-card h3 {
    margin: .6rem 0 .3rem;
    color: var(--brand);
    font-size: 1.1rem;
    font-weight: 800;
}

.feature-card p {
    margin: 0;
    color: #55544f;
    font-size: .93rem;
}

.feature-card img {
    display: block;
    width: 100%;
    height: 9rem;
    object-fit: contain;
    border-radius: 8px;
    background: #f4f1e8;
}

@media (min-width: 768px) {
    .feature-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* "when it comes in handy": a few occasions as soft boxes with an icon */
.occasion-grid {
    display: grid;
    gap: .75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.occasion {
    display: flex;
    gap: .8rem;
    height: 100%;
    padding: .9rem 1rem;
    border-radius: 14px;
    background: var(--yellow-light);
}

.occasion:nth-child(2) {
    background: var(--soft-blue);
}

.occasion:nth-child(3) {
    background: #fde6ee;
}

.occasion:nth-child(4) {
    background: #e4f3ea;
}

.occasion .bi {
    flex: 0 0 auto;
    margin-top: .1rem;
    color: var(--brand);
    font-size: 1.5rem;
}

.occasion b {
    display: block;
    color: var(--brand);
}

.occasion span {
    color: #4a4943;
    font-size: .93rem;
}

@media (min-width: 768px) {
    .occasion-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* the questions: each folded under its title (a native <details>), the open one is lit */
.faq-list {
    margin: 0;
    padding: 0;
}

.faq-item {
    margin-bottom: .6rem;
    border: 1px solid #e3e1da;
    border-radius: 12px;
    background: #fff;
}

.faq-item[open] {
    border-color: var(--brand);
    box-shadow: 0 2px 10px rgba(20, 50, 92, .1);
}

.faq-item > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .8rem 1rem;
    color: var(--brand);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: '\F282'; /* bi-chevron-down */
    flex: 0 0 auto;
    font-family: 'bootstrap-icons';
    font-size: .95rem;
    transition: transform .15s ease;
}

.faq-item[open] > summary::after {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 1rem .9rem;
    color: #3d3c38;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* the closing invitation of an information page */
.info-cta {
    margin: 2rem 0 1rem;
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--soft-blue) 0%, var(--yellow-light) 100%);
    text-align: center;
}

.info-cta h2 {
    margin: 0 0 .4rem;
    color: var(--brand);
    font-size: 1.5rem;
    font-weight: 800;
}

/* ---- the counter of joy between the halves of the tips of a visitor (Component/joy_counter.latte) ---- */
.joy {
    position: relative;
    margin: 0 0 1rem;
    padding: 1.1rem 1rem 1rem;
    overflow: hidden;
    border: 1px solid rgba(224, 36, 94, .25);
    border-radius: 14px;
    background: linear-gradient(135deg, #fff0f4 0%, var(--yellow-light) 100%);
    text-align: center;
}

.joy-kicker {
    margin: 0;
    color: var(--heart-dark);
    font-size: .8rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.joy-main {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: center;
    gap: .15rem .6rem;
    margin: .2rem 0 .3rem;
}

.joy-number {
    color: var(--heart);
    font-family: var(--font-logo);
    font-size: 3.4rem;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.joy-main-label {
    color: var(--brand);
    font-size: 1.05rem;
    font-weight: 700;
}

.joy-since {
    margin: 0;
    color: #55544f;
    font-size: .92rem;
}

.joy-since b {
    color: var(--brand);
}

/* a few hearts that rise slowly behind the numbers; they are only a decoration */
.joy-heart {
    position: absolute;
    bottom: -1.5rem;
    color: var(--heart);
    opacity: 0;
    pointer-events: none;
    animation: joy-rise 7s ease-in infinite;
}

.joy-heart-1 { left: 8%; font-size: 1.1rem; }
.joy-heart-2 { left: 88%; font-size: 1.4rem; animation-delay: 2.3s; }
.joy-heart-3 { left: 50%; font-size: .9rem; animation-delay: 4.6s; }

@keyframes joy-rise {
    0% { transform: translateY(0); opacity: 0; }
    15% { opacity: .35; }
    100% { transform: translateY(-9rem); opacity: 0; }
}

@media (min-width: 768px) {
    .joy-number {
        font-size: 4.2rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .how-card,
    .tip-heart,
    .how-card-more .bi,
    .faq-item > summary::after {
        transition: none;
    }

    .fav-badge.is-bumped,
    .favorites-block.is-bumped,
    .tip-heart.is-on .bi,
    .how-dialog[open] {
        animation: none;
    }

    .joy-heart {
        display: none;
    }
}

/* ---- the dark theme of these parts ---- */
html[data-theme="dark"] {
    --soft-blue: #1f2c40;
    --heart: #ff6b94;
    --heart-dark: #ff93b0;
}

html[data-theme="dark"] .joy {
    background: linear-gradient(135deg, #2b2030 0%, var(--dark-surface-2) 100%);
    border-color: var(--dark-border);
}

html[data-theme="dark"] .joy-kicker {
    color: var(--heart);
}

html[data-theme="dark"] .joy-main-label,
html[data-theme="dark"] .joy-since b {
    color: var(--dark-text);
}

html[data-theme="dark"] .joy-since {
    color: var(--dark-muted);
}

html[data-theme="dark"] .main-nav-link {
    color: var(--dark-muted);
}

html[data-theme="dark"] .main-nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: var(--dark-text);
}

html[data-theme="dark"] .main-nav-link.is-active,
html[data-theme="dark"] .main-nav-link.is-active:hover {
    background: var(--dark-surface);
    color: var(--dark-text);
    box-shadow: none;
}

html[data-theme="dark"] .main-nav-seasonal .main-nav-link,
html[data-theme="dark"] .main-nav-seasonal .main-nav-link.is-active {
    color: #ff9a8f;
}

html[data-theme="dark"] .main-nav-signin {
    border-color: var(--dark-link);
    color: var(--dark-link);
}

html[data-theme="dark"] .main-nav-signin:hover {
    background: var(--dark-link);
    color: #0f141b;
}

html[data-theme="dark"] .tip-heart {
    background: rgba(25, 33, 43, .92);
}

html[data-theme="dark"] .tip-heart:hover,
html[data-theme="dark"] .tip-heart:focus-visible {
    background: var(--dark-surface-2);
}

html[data-theme="dark"] .tip-card-have {
    color: #6fd39b;
}

html[data-theme="dark"] .how-card {
    border-color: var(--dark-border);
    color: var(--dark-text);
}

html[data-theme="dark"] .how-step:nth-child(1) .how-card { --card-a: #3a3115; --card-b: #2a2410; }
html[data-theme="dark"] .how-step:nth-child(2) .how-card { --card-a: #1f2c40; --card-b: #17202f; }
html[data-theme="dark"] .how-step:nth-child(3) .how-card { --card-a: #3a2430; --card-b: #2a1a22; }

html[data-theme="dark"] .how-card {
    background: linear-gradient(145deg, var(--card-a), var(--card-b));
}

html[data-theme="dark"] .how-icon {
    background: var(--dark-surface-3);
}

html[data-theme="dark"] .signin-dialog,
html[data-theme="dark"] .sample-card {
    background: var(--dark-surface-2);
    color: var(--dark-text);
}

html[data-theme="dark"] .sample-title {
    color: var(--dark-text);
}

html[data-theme="dark"] .sample-text,
html[data-theme="dark"] .sample-note,
html[data-theme="dark"] .intro-lead,
html[data-theme="dark"] .intro-more,
html[data-theme="dark"] .signin-invite p {
    color: var(--dark-muted);
}

html[data-theme="dark"] .sample-arrow,
html[data-theme="dark"] .strip-close {
    background: var(--dark-surface-3);
    color: var(--dark-text);
}

html[data-theme="dark"] .signin-invite {
    background: linear-gradient(135deg, #1b2738 0%, #2a2512 100%);
}

html[data-theme="dark"] .signin-dialog-close:hover {
    background: var(--dark-surface-3);
    color: var(--dark-text);
}

html[data-theme="dark"] .letter-promo-list {
    color: rgba(244, 217, 213, .35);
}

html[data-theme="dark"] .letter-promo-text b {
    color: #f4d9d5;
}

html[data-theme="dark"] .empty-state,
html[data-theme="dark"] .signin-card,
html[data-theme="dark"] .how-dialog,
html[data-theme="dark"] .guide-step,
html[data-theme="dark"] .feature-card,
html[data-theme="dark"] .faq-item {
    background: var(--dark-surface-2);
    border-color: var(--dark-border);
    color: var(--dark-text);
}

html[data-theme="dark"] .empty-state-icon {
    background: #3a2430;
}

html[data-theme="dark"] .how-icon {
    color: var(--dark-link);
}

html[data-theme="dark"] .how-card-teaser,
html[data-theme="dark"] .feature-card p,
html[data-theme="dark"] .occasion span,
html[data-theme="dark"] .faq-answer,
html[data-theme="dark"] .info-lead,
html[data-theme="dark"] .visitor-hero-note,
html[data-theme="dark"] .how-lead {
    color: var(--dark-muted);
}

html[data-theme="dark"] .how-card-more {
    color: var(--dark-link);
}

html[data-theme="dark"] .how-number {
    color: #3b4757;
}

html[data-theme="dark"] a.how-card:hover {
    color: var(--dark-text);
}

html[data-theme="dark"] .visitor-hero,
html[data-theme="dark"] .info-cta,
html[data-theme="dark"] .how-dialog-figure,
html[data-theme="dark"] .guide-step figure {
    background: linear-gradient(135deg, #1b2738 0%, #2a2512 100%);
}

html[data-theme="dark"] a.btn.btn-hero-second {
    background: transparent;
    border-color: var(--dark-link);
    color: var(--dark-link);
}

html[data-theme="dark"] .occasion {
    background: #2a2512;
}

html[data-theme="dark"] .occasion:nth-child(2) {
    background: #1b2738;
}

html[data-theme="dark"] .occasion:nth-child(3) {
    background: #33212b;
}

html[data-theme="dark"] .occasion:nth-child(4) {
    background: #1d3027;
}

html[data-theme="dark"] .occasion .bi {
    color: var(--dark-link);
}

html[data-theme="dark"] .occasion b {
    color: var(--dark-text);
}

html[data-theme="dark"] a.letter-promo {
    border-color: #6b3a35;
    background: linear-gradient(90deg, #33271c 0%, #3a2326 100%);
    color: #f4d9d5;
}

html[data-theme="dark"] .letter-promo-hint {
    color: #cfa9a4;
}

html[data-theme="dark"] .letter-promo-go {
    color: #ff9a8f;
}

html[data-theme="dark"] .feature-card img {
    background: #2a3646;
}

html[data-theme="dark"] .tip-mini-link,
html[data-theme="dark"] .tip-mini-link:hover {
    color: var(--dark-text);
}

/* ---- the filter of the tips: the search and its button in one row, the rest below (one row on a wide screen, folded on a phone) ---- */
.tip-chips-top {
    margin: .25rem 0 .9rem;
}

.tip-filter-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.tip-filter-search-input {
    flex: 1 1 12rem;
    max-width: 24rem;
}

.tip-filter-more {
    margin-top: .6rem;
}

.tip-filter-more > summary {
    color: var(--brand);
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
}

.tip-filter-more[open] > summary {
    margin-bottom: .6rem;
}

@media (min-width: 768px) {
    .tip-filter-more > summary {
        display: none;
    }

    .tip-filter-more .tip-filter-grid {
        grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr));
    }
}

/* the popup puts the focus on its card (not on the cross), which needs no ring */
.signin-card:focus {
    outline: none;
}

/* ---- the footer: a soft blue block under the pages, the name and a line on the left, the links in short sections;
        the colours are variables, the dark theme (and the christmas and retro ones) put the dark navy values below ---- */
.site-footer {
    --footer-bg: linear-gradient(160deg, #e3ebf7 0%, #d3e0f2 100%);
    --footer-text: #33496b;
    --footer-link: #14325c;
    --footer-hover: #1d5fb8;
    --footer-name: #14325c;
    --footer-accent: #8a5a00;
    --footer-muted: #536a8c;
    --footer-line: rgba(20, 50, 92, .18);
    --footer-chip: rgba(20, 50, 92, .1);
    --footer-chip-hover: rgba(20, 50, 92, .18);
    margin: 1.5rem 0 0;
    padding: 1.75rem 1.5rem 1rem;
    border: 1px solid rgba(20, 50, 92, .1);
    border-radius: 16px;
    background: var(--footer-bg);
    color: var(--footer-text);
    font-size: .92rem;
}

html[data-theme="dark"] .site-footer,
html[data-site-theme="christmas"] .site-footer,
html[data-site-theme="retro"] .site-footer {
    --footer-text: #c9d8ee;
    --footer-link: #e6eefb;
    --footer-hover: #ffd54f;
    --footer-name: #fff;
    --footer-accent: #ffd54f;
    --footer-muted: #9fb4d3;
    --footer-line: rgba(255, 255, 255, .15);
    --footer-chip: rgba(255, 255, 255, .14);
    --footer-chip-hover: rgba(255, 255, 255, .26);
    border-color: transparent;
}

.site-footer a {
    color: var(--footer-link);
    text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus-visible {
    color: var(--footer-hover);
    text-decoration: underline;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem 1rem;
}

.site-footer-brand {
    grid-column: 1 / -1;
}

.site-footer-name {
    margin: 0 0 .35rem;
    color: var(--footer-name);
    font-family: var(--font-logo);
    font-size: 1.7rem;
    line-height: 1.1;
}

/* the gift of the site (the same mark as in the header, the picture has its own colours) before the name */
.site-footer-name .logo-mark-wrap {
    margin-right: .25rem;
    vertical-align: -.1em;
}

.site-footer-tagline {
    max-width: 24rem;
    margin: 0;
}

.site-footer-social {
    display: flex;
    gap: .6rem;
    margin: .8rem 0 0;
}

.site-footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 50%;
    background: var(--footer-chip);
    font-size: 1.2rem;
}

.site-footer-social a:hover,
.site-footer-social a:focus-visible {
    background: var(--footer-chip-hover);
    text-decoration: none;
}

.site-footer-title {
    margin: 0 0 .55rem;
    color: var(--footer-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.site-footer-section ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer-section li {
    margin-bottom: .4rem;
}

.site-footer-bottom {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: .25rem 1rem;
    margin-top: 1.5rem;
    padding-top: .9rem;
    border-top: 1px solid var(--footer-line);
    color: var(--footer-muted);
    font-size: .82rem;
}

@media (min-width: 768px) {
    .site-footer {
        padding: 2rem 2.25rem 1.1rem;
    }

    .site-footer-grid {
        grid-template-columns: 1.6fr 1fr 1fr 1fr;
        gap: 1.5rem;
    }

    .site-footer-brand {
        grid-column: auto;
    }
}

html[data-theme="dark"] .site-footer {
    --footer-bg: linear-gradient(160deg, #162235 0%, #0c1522 100%);
    border: 1px solid var(--dark-border);
}

/* ---- the link that skips the header (the first thing a keyboard reaches); the page itself is focused without a frame ---- */
.skip-link {
    position: absolute;
    top: -3rem;
    left: .5rem;
    z-index: 2000;
    padding: .5rem 1rem;
    border-radius: 0 0 8px 8px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
}

.skip-link:focus {
    top: 0;
    color: #fff;
    text-decoration: none;
}

#content:focus {
    outline: none;
}

/* ---- what the visitor was about to do, over the sign-in popup ("Tip se uloží do oblíbených po přihlášení") ---- */
.signin-note {
    margin: 0;
    padding: .65rem 2.5rem .65rem 1rem;
    background: var(--soft-blue);
    color: var(--brand);
    font-size: .95rem;
    font-weight: 700;
}

.signin-note[hidden] {
    display: none;
}

html[data-theme="dark"] .signin-note {
    background: #243447;
    color: #dbe7f5;
}

/* a visitor of a tip card: the shop button stands first, the one that makes a wish after it */
.tip-card-actions-visitor .btn-shop {
    order: -1;
}

/* ---- a phone: a smaller header, a compact grid of the tips, a round button of the feedback that gets out of the way, targets for a finger ---- */
@media (max-width: 575.98px) {
    /* the header: the logo a little smaller; the theme switch of a visitor sits on the row of the logo (he has no other icon) */
    #banner .logo {
        font-size: 1.9rem;
    }

    #logged-as.is-visitor {
        position: relative;
        z-index: 3;
        height: 0;
        padding: 0 4%;
        align-items: flex-start;
    }

    #logged-as.is-visitor .icon-action {
        margin-top: .35rem;
    }

    /* the tips in two columns: the photo, the name, the price and the two buttons; the text of the tip is on its page */
    .tip-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .6rem;
    }

    .tip-card-body {
        padding: .1rem .6rem .3rem;
    }

    .tip-card-title {
        font-size: .95rem;
        line-height: 1.25;
    }

    .tip-card .tip-image {
        padding: .4rem;
    }

    .tip-card-text,
    .tip-card-wanted,
    .tip-chips li:not(.tip-chip-price):not(.tip-chip-edit) {
        display: none;
    }

    .tip-card-actions {
        flex-direction: column;
        padding: .3rem .6rem .7rem;
    }

    .tip-card-actions .btn,
    .tip-card-actions .btn.btn-shop {
        padding: .45rem .5rem;
        justify-content: center;
        white-space: normal;
        text-align: center;
    }

    .tip-heart {
        width: 2.75rem;
        height: 2.75rem;
    }

    .tip-heart-form {
        top: .2rem;
        right: .2rem;
    }

    /* the round button of the feedback is smaller, and when the page is scrolled down it goes away (feedback.js brings it back on the way up) */
    .feedback {
        right: 10px;
        bottom: 10px;
        transition: transform .25s ease, opacity .25s ease;
    }

    a.feedback-fab {
        height: 40px;
        padding: 0 11px;
        opacity: .9;
    }

    .feedback.is-away {
        transform: translateY(70px);
        opacity: 0;
        pointer-events: none;
    }
}

/* a finger needs about 44 px: the icons of the header, the cross of the popup; the small buttons stay small to the eye and get the room of a finger as an invisible area around them */
@media (pointer: coarse) {
    a.icon-action,
    button.icon-action {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-width: 44px;
        min-height: 44px;
    }

    .signin-dialog-close {
        min-width: 44px;
        min-height: 44px;
    }

    .btn.btn-sm {
        position: relative;
    }

    .btn.btn-sm::after {
        content: "";
        position: absolute;
        inset: -9px -4px;
    }
}

/* ---- the links: one blue with a contrast of 4.5 : 1 on white (the framework from the CDN gives #007bff, 4 : 1), as the later rule of the same weight ---- */
a {
    color: #0b5ed7;
}

a:hover {
    color: #084298;
}

/* ---- the list of the wishes: the header stays at the top while the list is scrolled ----
   Nothing changes its size on the way (a header that gets slimmer while it is scrolled shifts the page under the finger and, at the edge of the
   threshold, jumps back and forth): the header is pinned as it is. On a wide screen it is the logo with the icons and the menu
   under it; on a phone, where the menu is the bar at the bottom, only the row of the logo (a wrapper that is no box lets it stick in the whole page). */
#site-top.is-sticky {
    display: contents;
}

#site-top.is-sticky #banner {
    position: sticky;
    top: var(--impersonation-bar, 0px);
    z-index: 40;
    background: #ecebe8;
}

/* the panel of the page (#content) has a soft shadow that would show at the sides of the header while the page scrolls under it, in the thin gutter
   of the body: two bands of the colour of the page cover it (a shadow draws, but takes no room, so the page does not get wider) */
#site-top.is-sticky,
#site-top.is-sticky #banner {
    --page-bg: #ecebe8;
    box-shadow: -8px 0 0 0 var(--page-bg), 8px 0 0 0 var(--page-bg);
}

body.is-local #site-top.is-sticky #banner {
    top: calc(22px + var(--impersonation-bar, 0px));
}

@media (min-width: 768px) {
    #site-top.is-sticky {
        display: block;
        position: sticky;
        top: var(--impersonation-bar, 0px);
        z-index: 40;
        background: #ecebe8;
    }

    /* locally the police-tape strip is fixed at the top and 22 px high */
    body.is-local #site-top.is-sticky {
        top: calc(22px + var(--impersonation-bar, 0px));
    }

    /* the wrapper sticks (the logo, the icons and the menu together, as big as on the other pages), not the row of the logo */
    #site-top.is-sticky #banner,
    body.is-local #site-top.is-sticky #banner {
        position: static;
    }
}

html[data-theme="dark"] #site-top.is-sticky,
html[data-theme="dark"] #site-top.is-sticky #banner {
    --page-bg: var(--dark-page);
    background: var(--dark-page);
}

/* ---- the administrator acts as another user: a bar at the top of every page, the header sticks under it ----
   The colour is the one nothing else on the site has (amber), the same in both themes, so it cannot be mistaken for the site's own bar. */
body.is-impersonating {
    --impersonation-bar: 2.75rem;
}

#impersonation-bar {
    position: sticky;
    top: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: var(--impersonation-bar);
    padding: 0 1rem;
    background: #ffc107;
    color: #212529;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.is-local #impersonation-bar {
    top: 22px;
}

#impersonation-bar form {
    margin: 0;
    flex: none;
}

.impersonation-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.impersonation-back {
    background: #212529;
    border: 1px solid #212529;
    color: #fff;
}

.impersonation-back:hover,
.impersonation-back:focus {
    background: #000;
    border-color: #000;
    color: #fff;
}

/* the note after the first heart in a browser (js/favorites.js): says where the favorites are, and goes away by itself */
.favorites-hint {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1040;
    display: flex;
    align-items: center;
    gap: .9rem;
    max-width: calc(100vw - 2rem);
    padding: .7rem 1rem;
    border-radius: 10px;
    background: #1f3b63;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
    color: #fff;
    font-size: .95rem;
}

.favorites-hint a {
    color: #ffd75e;
    font-weight: 700;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .favorites-hint {
        right: .75rem;
        bottom: calc(80px + env(safe-area-inset-bottom));
        left: .75rem;
        justify-content: space-between;
    }

    /* the bar of a tip is above the tab bar: the note goes above it */
    body:has(.tip-sticky-bar.is-visible) .favorites-hint {
        bottom: calc(150px + env(safe-area-inset-bottom));
    }
}
