html {
    /*font: normal 18px/1.3 Georgia, "New York CE", utopia, serif;*/
    /*color: #666;*/
    /*-webkit-text-stroke: 1px rgba(0, 0, 0, 0);*/
    /*overflow-y: scroll;*/
}

/* design tokens: the navy of the logo and the two fonts (the name of the site, the text; the fallback after each is what shows until the font arrives, or when it cannot be loaded) */
:root {
    --brand: #14325c;
    --brand-dark: #0b2140;
    --yellow: #ffd54f;
    --yellow-hover: #ffca28;
    --yellow-light: #fff0bd;
    /* between the two: the soft yellow of the form that adds a wish and of the button that opens it */
    --form-yellow: #ffe691;
    --font-logo: 'Lobster', 'Nunito', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Nunito', -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

html body {
    font-family: var(--font-body);
}

body {
    background: #ecebe8 !important;
    color: #333;
    /* close to the top edge, so the viewport is used (the bar of the icons is the first thing on the page) */
    margin: .5em auto 2em !important;
    padding: 0 .2em;
    max-width: 1100px;
    min-width: 320px;
}

/* the local police-tape strip is 22 px high and fixed at the top: the page starts under it */
body.is-local {
    margin-top: 2em !important;
}

a {
    color: #006aeb;
    padding: 3px 1px;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #0047ab;
}

a:active, a:focus {
    color: #0056b3;
    text-decoration: none;
    outline: none; /* volitelně odstraní rámeček při focus */
}
a:visited {
    color: #004080; /* Tmavší modrá než původní */
}

a.btn {
    color: #ffffff; /* Barva textu pro odkaz s třídou btn */
}

/* the internal note of a wish (notes for myself): a grey frame, so it is clear that it is not for the others */
.internal-note {
    border: 1px solid #adb5bd;
    border-radius: 6px;
    background-color: #f1f3f5;
    padding: .5rem .75rem;
}

/* the mark of a wish that can be fulfilled more than once ("víckrát") and the note of it in the detail */
.wish-repeat {
    font-size: .75rem;
    font-weight: 600;
    color: #1f4e79;
    background-color: #e3eefa;
    border: 1px solid #b6cfea;
}

.repeat-note {
    border-left: 3px solid #b6cfea;
    padding-left: .75rem;
}

/* the choice of how many times a wish can be fulfilled: the number field is as wide as its numbers need */
.repeat-limit {
    width: 7rem;
}

/* the number of kinds a giver takes: the label, the number field and the button on one line (they wrap on a narrow phone) */
.repeat-count-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.repeat-count-form .repeat-count {
    width: 7rem;
}

.repeat-options[hidden] {
    display: none;
}

/* a collapsed section of the wish form (the internal note, "Oprávnění": who else may edit the wish) */
.wish-form-section > summary {
    cursor: pointer;
    font-weight: 600;
}

/* the button that makes a wish private ("Skrýt"): dark pink, white text */
.btn.btn-private {
    background-color: #c2185b;
    border-color: #c2185b;
    color: #ffffff;
}

.btn.btn-private:hover,
.btn.btn-private:focus {
    background-color: #9c1049;
    border-color: #9c1049;
    color: #ffffff;
}

.btn.btn-private:focus {
    box-shadow: 0 0 0 .2rem rgba(194, 24, 91, .4);
}

/* an outline button keeps its own colour (the rule above would make it white on white) */
a.btn.btn-outline-danger {
    color: #e74c3c;
}

a.btn.btn-outline-danger:hover {
    color: #ffffff;
}
/* the page header: the logo on the left and the "add a wish" button beside it, on the page background (no box) */
#banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .75rem;
    padding: .25rem 4% .35rem;
}

#banner .logo {
    margin: 0;
    padding: 0;
    min-width: 0;
    font-family: var(--font-logo);
    font-weight: 400; /* Lobster has only the regular weight, a heavier one would be faked by the browser */
    font-size: 2.2rem;
    line-height: 1.1;
}

#banner .logo a {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: 0;
    color: var(--brand);
    white-space: nowrap;
}

#banner .logo a:hover {
    text-decoration: none;
    color: var(--brand-dark);
}

.logo-mark-wrap {
    display: inline-flex;
    flex-shrink: 0;
}

.logo-mark {
    flex-shrink: 0;
    width: 1.05em;
    height: 1.05em;
}

/* the button that adds a wish: the soft yellow of the form that it opens, a navy frame and text */
.btn.btn-add-wish {
    flex-shrink: 0;
    border: 2px solid var(--brand);
    background-color: var(--form-yellow);
    color: var(--brand);
    white-space: nowrap;
    font-weight: 700;
}

.btn.btn-add-wish .bi {
    color: #e0245e;
}

.btn.btn-add-wish:hover,
.btn.btn-add-wish:focus {
    background-color: color-mix(in srgb, var(--yellow) 75%, #fff);
    border-color: var(--brand);
    color: var(--brand-dark);
}

/* the title of a wish stands out: bold in the card, in the list and on the detail */
.wish-card .card-title,
.wish-heading {
    font-weight: 700;
}

.wish-card .card-title {
    font-size: 1.25rem;
}

@media (min-width: 768px) {
    #banner .logo {
        font-size: 2.9rem;
    }

    #banner {
        padding-top: .5rem;
    }
}

#content {
    background: white;
    border: 1px solid #eff4f7;
    border-radius: 12px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
    padding: 1.25rem 4% 10px;
    /* it holds its floats, but does not clip: the menu of the filter may reach below a short list */
    display: flow-root;
    margin-top: 0;
}

/* the icons of the signed-in user on the right: invite, profile, logout (the name is in the logout question and in the profile) */
#logged-as {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: .25rem;
    padding: .25rem 4% 0;
    font-size: .875rem;
}

/* an icon that is a button (profile, logout, edit and trash of a wish): a big target for a finger, a soft background on hover */
.icon-actions {
    display: flex;
    gap: .25rem;
    flex-shrink: 0;
}

/* the logout and the changes of a wish are forms with a button (a POST), drawn like the links beside them */
.logout-form,
.post-action {
    display: inline;
    margin: 0;
}

button.icon-action {
    border: 0;
    background: none;
    cursor: pointer;
}

a.icon-action,
button.icon-action {
    display: inline-block;
    padding: 2px 8px;
    font-size: 1.25rem;
    line-height: 1.3;
    border-radius: 6px;
    color: #4a5a68;
    vertical-align: middle;
}

a.icon-action:hover,
button.icon-action:hover,
button.icon-action:focus,
a.icon-action:focus {
    background-color: #e3ebf1;
    color: #18bc9c;
    text-decoration: none;
}

a.icon-action-danger:hover,
button.icon-action-danger:hover,
button.icon-action-danger:focus,
a.icon-action-danger:focus {
    color: #e74c3c;
}

/* on the detail of a wish the icons are bigger than in the header */
.icon-actions a.icon-action,
.icon-actions button.icon-action {
    padding: 5px 10px;
    font-size: 1.3rem;
}

/* the buttons that change the state of a wish: below the shop button, parted by a line, with a gap between them */
.detail-actions {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid #dee2e6;
}

.detail-actions .btn {
    margin: 0 .4rem .5rem 0;
}

/* the way of a gift to the one it is for (the journey): under the photo and the text over the whole width, parted from them by a line */
.journey-area {
    padding-top: 1.25rem;
    border-top: 1px solid #dee2e6;
}

/* the journey of a gift (Component/wish_journey.latte): numbered steps, one under another on a phone (the line runs down), side by side from a tablet
   up (the line runs right); the step the gift is at has the filled number, a frame and the word "teď", the steps behind it a tick */
.journey {
    --journey-number: 2.25rem;
    --journey-line: #ced4da;
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
}

.journey-step {
    position: relative;
    display: flex;
    padding-bottom: 1rem;
}

.journey-step::before {
    content: "";
    position: absolute;
    left: calc(var(--journey-number) / 2 - 1px);
    top: var(--journey-number);
    bottom: 0;
    width: 2px;
    background: var(--journey-line);
}

.journey-step:last-child::before {
    display: none;
}

.journey-done::before {
    background: var(--brand);
}

.journey-number {
    position: relative;
    z-index: 1;
    flex: 0 0 var(--journey-number);
    width: var(--journey-number);
    height: var(--journey-number);
    border: 2px solid var(--journey-line);
    border-radius: 50%;
    background: #fff;
    color: #6c757d;
    font-weight: 700;
    line-height: calc(var(--journey-number) - 4px);
    text-align: center;
}

.journey-done .journey-number {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.journey-current .journey-number {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 25%, transparent);
}

.journey-body {
    flex: 1;
    min-width: 0;
    margin-left: .75rem;
    padding: .6rem .85rem .7rem;
    border: 1px solid #dfe3e8;
    border-radius: 8px;
}

/* the step the gift is at has the strong frame (2 px of the brand), the others a thin grey one, so that everything of a step is seen to belong to it */
.journey-current .journey-body {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 9%, transparent);
    box-shadow: 0 0 0 1px var(--brand);
}

.journey-title {
    font-weight: 700;
    color: #495057;
}

.journey-current .journey-title {
    color: var(--brand);
    font-size: 1.1rem;
}

.journey-here {
    margin-left: .5rem;
    padding: .05rem .5rem;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    vertical-align: middle;
}

.journey-desc {
    margin-bottom: .4rem;
    color: #6c757d;
    font-size: .9rem;
}

.journey-upcoming .journey-title {
    color: #6c757d;
}

.journey .btn {
    margin: 0 .4rem .3rem 0;
}

/* what the server says after a button of the journey (js/journey.js): a bubble over the top of the step the gift is at, for a few seconds; the block is dimmed while it is sent */
.journey-body {
    position: relative;
}

.journey-toasts {
    position: absolute;
    z-index: 3;
    top: .4rem;
    right: .4rem;
    left: .4rem;
    display: flex;
    flex-direction: column;
    gap: .3rem;
    transition: opacity .3s;
}

.journey-toasts.is-leaving {
    opacity: 0;
}

.journey-toast {
    --notice-text: #333;
    display: flex;
    align-items: flex-start;
    gap: .5rem;
    padding: .45rem .65rem;
    border: 1px solid color-mix(in srgb, var(--notice-color) 40%, transparent);
    border-left: 4px solid var(--notice-color);
    border-radius: 8px;
    background: var(--notice-tint);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
    color: var(--notice-text);
    font-size: .85rem;
    line-height: 1.35;
}

.journey-toast .notice-icon {
    color: var(--notice-color);
}

#wish-detail.is-busy {
    opacity: .65;
    pointer-events: none;
    transition: opacity .15s;
}

/* the rarer fields of a panel are folded under "Více" */
.journey-more {
    margin: .5rem 0;
}

.journey-more > summary {
    display: inline-block;
    margin-bottom: .35rem;
    color: var(--brand);
    font-size: .85rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.journey-more > summary::-webkit-details-marker {
    display: none;
}

/* the arrow points down while it is folded and up when it is open, and the word changes with it: "Více" / "Méně" */
.journey-more > summary::before {
    content: "\f282";
    margin-right: .3rem;
    font-family: bootstrap-icons !important;
    font-weight: 400;
    vertical-align: -.1em;
}

.journey-more[open] > summary::before {
    content: "\f286";
}

.journey-more > summary .journey-more-open,
.journey-more[open] > summary .journey-more-closed {
    display: none;
}

.journey-more[open] > summary .journey-more-open {
    display: inline;
}

/* what the user keeps with a step (the occasion, the order, the hiding place) sits under the step: in its column on a desktop, right under it on a phone */
.journey-panel {
    margin-top: .6rem;
    padding-top: .6rem;
    border-top: 1px dashed var(--journey-line);
}

.journey-panel label {
    margin: 0;
    font-size: .85rem;
    font-weight: 600;
}

.journey-panel input[type="checkbox"] {
    margin-right: .4rem;
}

.journey-panel .form-group {
    margin-bottom: .5rem;
}

.journey-field-label {
    display: flex;
    align-items: center;
    gap: .15rem;
    margin-bottom: .15rem;
}

.journey .post-action {
    display: inline-block;
}

@media (min-width: 768px) {
    .journey {
        display: flex;
    }

    .journey-step {
        flex: 1 1 0;
        flex-direction: column;
        min-width: 0;
        padding-bottom: 0;
    }

    .journey-step::before {
        top: calc(var(--journey-number) / 2 - 1px);
        right: 0;
        bottom: auto;
        left: var(--journey-number);
        width: auto;
        height: 2px;
    }

    .journey-body {
        display: flex;
        flex-direction: column;
        margin: .6rem .5rem 0 0;
        padding: .6rem .75rem .7rem;
    }

    /* the buttons of all the steps in one row at the bottom, under what the steps keep (on a phone the button is right under the text) */
    .journey-body > .journey-panel {
        order: 1;
        margin-bottom: .6rem;
    }

    .journey-body > .post-action {
        order: 2;
        margin-top: auto;
        padding-top: .4rem;
    }
}

#add-wish-form, #share-wishlist-form, #profile-form {
    position: relative;
    background-color: var(--form-yellow);
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 12px;
}

/* the form that adds a wish: a soft yellow (the full yellow of the other forms looks like a warning here) and, in it, the groups of
   fields (the photo, the steps of the product picker) in a cool blue-grey, the tint of the filter panel, so that they stand out from the
   yellow and from the white fields; the dark theme has its own colours (css/dark.css) */
#add-wish-form {
    background-color: var(--form-yellow);
}

#add-wish-form .form-section {
    border-color: #d3dce8;
    background-color: #eef3f9;
}

/* the title of the form (add / edit a wish): above the yellow form, on the white */
.form-title {
    margin: .25rem 0 .75rem;
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--brand);
}

/* the filter of the list: a tinted panel, so its white fields are not mixed up with the white cards below */
#search-form {
    padding: .75rem .75rem .25rem;
    border: 1px solid #d3dce8;
    border-radius: 12px;
    background-color: #e9eff6;
}

/* the title of the form on the left and the cross that closes it on the right, one row above the yellow form */
.form-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: .25rem 0 .75rem;
}

.form-title-row .form-title {
    margin: 0;
}

/* the cross: big enough for a finger */
#close-wish-form-button {
    flex-shrink: 0;
    padding: 4px 6px;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--brand);
}

/* local environment only: police-tape strip at the very top */
#local-tape {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 22px;
    z-index: 2000;
    overflow: hidden;
    white-space: nowrap;
    border-bottom: 2px solid #111;
    background: repeating-linear-gradient(-45deg, #ffd400 0 12px, #111 12px 24px);
}

#local-tape span {
    display: inline-block;
    height: 20px;
    line-height: 20px;
    margin-right: 28px;
    padding: 0 14px;
    background: #ffd400;
    color: #111;
    font: bold 13px/20px Arial, sans-serif;
    letter-spacing: 3px;
}

/* the whole card is a link to the wish detail (stretched-link on the title) */
.wish-card {
    transition: box-shadow .15s;
}

.wish-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
}

/* the card view: cards fill the rows left to right (the old CSS columns filled them top to bottom);
   one column on a phone, three from the small breakpoint up, as the columns were */
.wish-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

@media (min-width: 576px) {
    .wish-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* the list and the calendar: the wishes of a person are rows of one rounded box, parted by a thin line (no table, no stripes);
   a private wish (a draft) is light red, a wish in the trash is grey; the row is lit when the mouse is over it */
.wish-list-person {
    margin: 1.5rem 0 .5rem;
}

.wish-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    border: 1px solid #dde4ee;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.wish-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: .25rem 1rem;
    padding: .7rem .9rem;
    border-top: 1px solid #e8edf4;
    transition: background-color .12s;
}

.wish-row:first-child {
    border-top: 0;
}

.wish-row:hover {
    background-color: #f3f7fc;
}

.wish-row-main {
    flex: 1 1 16rem;
    min-width: 0;
}

.wish-row-title {
    font-weight: 700;
    font-size: 1.05rem;
}

.wish-row-hearts {
    margin-left: .5rem;
    white-space: nowrap;
}

.wish-row-desc {
    margin-top: .15rem;
    color: #5f6b7a;
    font-size: .9rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* the state: under the title on a phone, on the right from the small width up */
.wish-row-state {
    flex: 1 1 100%;
    color: #6c757d;
    font-size: .875rem;
}

@media (min-width: 576px) {
    .wish-row-state {
        flex: 0 1 17rem;
        text-align: right;
    }
}

.wish-row-private,
.wish-row-private:hover {
    background-color: #fbe3e1;
    color: #922b21;
}

.wish-row-private .wish-row-state {
    color: inherit;
}

.wish-row-trashed,
.wish-row-trashed:hover {
    background-color: #eceeef;
    color: #6c757d;
}

/* a wish in the trash: the photo is grey, so it is clear that it is not in the lists any more */
.wish-card-trashed img {
    filter: grayscale(1);
    opacity: .5;
}

/* the mark of a wish of somebody else, so that one sees at first glance what can still be reserved: free is green, mine is blue,
   taken by another is red (the card gets a frame of the colour, the row a stripe on its left) */
.wish-claim {
    font-size: .8rem;
    font-weight: 700;
    color: #fff;
}

.wish-claim-free { background-color: #1e8449; }
.wish-claim-mine { background-color: #1f6fd1; }
.wish-claim-taken { background-color: #c0392b; }

.card.wish-card-free { border: 1px solid #1e8449; }
.card.wish-card-mine { border: 2px solid #1f6fd1; }
.card.wish-card-taken { border: 2px solid #c0392b; }

.wish-row-free,
.wish-row-mine,
.wish-row-taken {
    border-left: 4px solid transparent;
}

.wish-row-free { border-left-color: #1e8449; }
.wish-row-mine { border-left-color: #1f6fd1; }
.wish-row-taken { border-left-color: #c0392b; }

.wish-row-state .wish-claim {
    margin-right: .35rem;
}

/* the priority of a wish: three hearts, as many filled as the level is, the rest faint */
.wish-hearts {
    color: #e0245e;
    white-space: nowrap;
}

.wish-hearts .heart-off {
    opacity: .25;
}

/* the top priority: a pink frame with a soft glow on the card and a ribbon on the corner of its photo */
.wish-card-top {
    border: 2px solid #e0245e;
    box-shadow: 0 0 12px rgba(224, 36, 94, .35);
}

.wish-card-top:hover {
    box-shadow: 0 4px 16px rgba(224, 36, 94, .5);
}

.wish-top-label {
    display: inline-block;
    padding: .1rem .5rem;
    border-radius: 4px;
    background-color: #e0245e;
    color: #ffffff;
    font-size: .8rem;
    font-weight: bold;
    letter-spacing: .08em;
    vertical-align: middle;
}

/* a little shorter than the empty margin above the photo (the padding of the image), so the ribbon does not touch the picture */
.wish-top-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    padding: .2rem .6rem .1rem;
    line-height: 1.2;
    border-radius: 0 .2rem 0 .5rem;
    pointer-events: none;
}

/* the photo of a top wish sits a little lower, so the ribbon on the corner does not touch it (the padding of p-4 is !important and Bootstrap is loaded after this file, so the selector is the more specific one) */
.card-img-top.wish-img-below-ribbon {
    padding-top: 2.4rem !important;
}

/* the choice of the priority in the form: the radio button is hidden, the box of the checked one is highlighted */
.priority-option {
    cursor: pointer;
}

.priority-option input {
    position: absolute;
    opacity: 0;
}

.priority-option-body {
    display: block;
    padding: .4rem .9rem;
    border: 2px solid transparent;
    border-radius: 8px;
    background-color: #fff;
    text-align: center;
    white-space: nowrap;
}

.priority-option:hover .priority-option-body {
    border-color: rgba(224, 36, 94, .4);
}

.priority-option input:checked + .priority-option-body {
    border-color: #e0245e;
    box-shadow: 0 0 0 .15rem rgba(224, 36, 94, .25);
}

.priority-option input:focus-visible + .priority-option-body {
    outline: 2px solid #006aeb;
}

.priority-option-title {
    display: block;
    font-size: .85rem;
}

/* a link inside an alert: the theme makes it white, which is not to be read on the pale colours of the alerts, so it has the dark
   colour of its alert (a button keeps its own, see below); loaded before the theme, so the selectors are a bit more specific */
.alert-info a:not(.btn) {
    color: #0c5460;
}

.alert-warning a:not(.btn) {
    color: #7a5200;
}

.alert-success a:not(.btn) {
    color: #155724;
}

.alert-danger a:not(.btn) {
    color: #721c24;
}

.alert a:not(.btn) {
    font-weight: 700;
    text-decoration: underline;
}

/* a button inside an alert (e.g. "Publish" in the red notice of a private wish) is a button, not an underlined link */
.alert a.btn {
    font-weight: normal;
    text-decoration: none;
}

/* a wish without a photo shows a faint gift, so it is clear that it is only a placeholder */
img.wish-placeholder {
    display: block;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
    opacity: .3;
}

/* the three first fields of the wish form (whom it is for, the name, the priority): one under the other on a phone,
   side by side from the large width up, the priority boxes as wide as they are */
.form-triple {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .form-triple {
        grid-template-columns: minmax(10rem, 1fr) minmax(12rem, 1.6fr) auto;
        align-items: start;
    }
}

/* a group of related fields in a form (the photo of a wish): a lighter yellow frame on the yellow form (white is for the fields) */
.form-section {
    margin-bottom: 1rem;
    padding: .75rem;
    border: 1px solid rgba(0, 0, 0, .15);
    border-radius: 8px;
    background-color: var(--yellow-light);
}

.form-section-title {
    margin-bottom: .6rem;
    font-weight: 700;
}

/* a checkbox and its label side by side with a gap and a bigger box, so it is easy to hit on a phone
   (Bootstrap 4 and 5 are both loaded after this file and both place the box, so the selectors here are more specific) */
div.form-check {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    padding-left: 0;
    min-height: 1.75rem;
}

.form-check > input.form-check-input {
    position: static;
    float: none;
    flex-shrink: 0;
    width: 1.3rem;
    height: 1.3rem;
    margin: .1rem 0 0;
}

.form-check > label.form-check-label {
    padding: 0;
    cursor: pointer;
}

/* the current photo and the preview of a new one in the wish form */
.wish-image-thumb {
    max-width: 140px;
    max-height: 140px;
    border-radius: 6px;
    background: #fff;
}

/* the changelog: one tbody per release, every other release tinted, so the rows of a release hold together */
.changelog {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #d6dfec;
    border-radius: 8px;
    overflow: hidden;
}

.changelog thead th {
    padding: .6rem .75rem;
    background: var(--brand);
    color: #fff;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-align: left;
    text-transform: uppercase;
}

.changelog tbody:nth-of-type(odd) {
    background: #fff;
}

.changelog tbody:nth-of-type(even) {
    background: #eef3fa;
}

.changelog tbody + tbody > tr:first-child > * {
    border-top: 1px solid #d6dfec;
}

.changelog tbody th,
.changelog tbody td {
    padding: .6rem .75rem;
    vertical-align: top;
    text-align: left;
}

.changelog-version {
    color: var(--brand);
    font-weight: 800;
    white-space: nowrap;
}

.changelog-date {
    color: #6c757d;
    white-space: nowrap;
}

/* on a phone the date sits under the version (the column of the date is hidden), so the text gets the width */
.changelog-version .changelog-date {
    display: block;
    font-size: .8rem;
    font-weight: 400;
}

/* the entries of one release are parted by a dotted line */
.changelog tbody tr + tr .changelog-entry {
    border-top: 1px dotted #b8c6dc;
}

@media (max-width: 575.98px) {
    .changelog tbody th,
    .changelog tbody td {
        padding: .5rem;
    }
}

/*.card-columns {*/
/*@include media-breakpoint-only(lg) {*/
/*    column-count: 4;*/
/*}*/
/*@include media-breakpoint-only(xl) {*/
/*    column-count: 5;*/
/*}*/
/*}*/


/*h2 {*/
/*    font: inherit;*/
/*    padding: 1.2em 0;*/
/*    margin: 0;*/
/*}*/

/*img {*/
/*    border: none;*/
/*    float: right;*/
/*    margin: 0 0 1em 3em;*/
/*}*/

/* the way in for a visitor (Component/login_panel.latte): a short lead, Google, then the e-mail and the password */
.login-panel {
    max-width: 340px;
    margin: 1.5rem auto;
    text-align: center;
}

.login-lead {
    font-size: 1.1rem;
    color: var(--brand);
    margin-bottom: 1.25rem;
}

/* the button of Google: white, a thin grey line and the colour logo, as Google's brand guidelines want it */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    width: 100%;
    padding: .65rem 1rem;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 4px;
    color: #3c4043;
    font-weight: 600;
    text-decoration: none;
}

.btn-google:hover,
.btn-google:focus {
    background: #f8f9fa;
    border-color: #d2e3fc;
    color: #3c4043;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(60, 64, 67, .3);
}

.btn-google-logo {
    flex: none;
}

/* "or": a line with the word in the middle, between the two ways in */
.login-or {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 1.25rem 0;
    color: #777;
    font-size: .875rem;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.login-or::before,
.login-or::after {
    content: '';
    flex: 1;
    border-top: 1px solid #ddd;
}

.login-panel form .form-control {
    margin-bottom: .75rem;
}

.login-legal {
    margin-top: 1.25rem;
    font-size: .8rem;
    color: #777;
}

/* the first steps of a user who sees nobody yet (Component/welcome_box.latte) */
.welcome-box {
    background: var(--yellow-light);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.legal-page {
    max-width: 760px;
    margin: 0 auto;
}

.legal-page h3 {
    font-size: 1.15rem;
    margin-top: 1.5rem;
}

/* the share page: the note under the form is quieter than the text above it, the people who see my wishes are a list */
.share-note {
    font-size: .85rem;
    color: #777;
    max-width: 640px;
}

.share-people-title {
    font-size: 1.15rem;
    margin-top: 2rem;
}

.share-people {
    list-style: none;
    padding: 0;
    max-width: 640px;
}

.share-people li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: .5rem 1rem;
    padding: .5rem 0;
    border-bottom: 1px solid #eee;
}

.share-people-name {
    /* the buttons go under the name when the row is narrow (a phone), instead of squeezing the name into a column of letters */
    flex: 1 1 10rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* the e-mail under the name: quieter, it is there to tell the people of the same name apart */
.share-people-email {
    display: block;
    color: #6c757d;
}

/* the card of a visitor: the slideshow (Component/login_slider.latte) beside the way in; on a phone the way in is first */
.login-card {
    display: flex;
    flex-direction: column;
    margin: .5rem 0 1rem;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    overflow: hidden;
}

.login-way-in {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.5rem 1.25rem;
}

.login-way-in .login-panel {
    width: 100%;
    margin: 0 auto;
}

.login-slider {
    position: relative;
    padding: 1.75rem 1.25rem 1.25rem;
    background: linear-gradient(135deg, #e3ecfa 0%, var(--yellow-light) 100%);
}

/* the slides lie over each other in one cell, so the box is as high as the highest and does not jump */
.login-slides {
    display: grid;
}

.login-slide {
    grid-area: 1 / 1;
    text-align: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity .35s ease, visibility .35s;
}

.login-slide.is-active {
    visibility: visible;
    opacity: 1;
}

.login-slide-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: .5rem;
}

.login-slide-text {
    max-width: 30rem;
    margin: 0 auto 1rem;
    color: #3d4b5c;
}

.login-slide-figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 12.5rem;
    margin: 0;
}

.login-slide-image {
    max-width: 100%;
    max-height: 100%;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 20px rgba(20, 50, 92, .18);
}

.login-slider-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-top: 1rem;
}

.login-slider-arrow {
    border: 0;
    background: none;
    padding: .25rem .1rem;
    color: var(--brand);
    font-weight: 600;
    white-space: nowrap;
}

.login-slider-arrow:hover,
.login-slider-arrow:focus-visible {
    text-decoration: underline;
}

.login-slider-dots {
    display: flex;
    gap: .5rem;
}

.login-slider-dot {
    width: .65rem;
    height: .65rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(20, 50, 92, .25);
    transition: background .2s, transform .2s;
}

.login-slider-dot.is-active {
    background: var(--brand);
    transform: scale(1.25);
}

/* the thin line at the top fills while the slide waits for the next one (only while the slides move by themselves) */
.login-slider-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(20, 50, 92, .12);
    opacity: 0;
    transition: opacity .3s;
}

.login-slider.is-playing .login-slider-progress {
    opacity: 1;
}

.login-slider-progress span {
    display: block;
    height: 100%;
    background: var(--brand);
    transform-origin: left;
    animation: login-slider-progress var(--slider-interval, 7s) linear forwards;
}

@keyframes login-slider-progress {
    from {
        transform: scaleX(0);
    }
    to {
        transform: scaleX(1);
    }
}

@media (min-width: 768px) {
    .login-card {
        flex-direction: row;
        min-height: 31rem;
    }

    .login-way-in {
        flex: 0 0 42%;
        order: 2;
        padding: 2rem 1.75rem;
    }

    .login-slider {
        flex: 1 1 58%;
        order: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 2rem 1.75rem 1.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .login-slide,
    .login-slider-dot {
        transition: none;
    }
}

/* the sign-in form is the default Nette table: label above its field, the fields as wide as the panel */
.login-panel form table,
.login-panel form tbody,
.login-panel form tr,
.login-panel form th,
.login-panel form td {
    display: block;
    width: 100%;
    padding: 0;
    text-align: left;
}

.login-panel form th label {
    margin-bottom: .25rem;
}

.login-panel form input[type=submit] {
    display: block;
    width: 100%;
    margin-top: .5rem;
}

/* the errors Nette puts above a form (a wrong password, ...): red, without the list bullets */
ul.error {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
    color: #e74c3c;
    font-weight: 600;
}

/* the invitation form: the e-mail field does not need the width of the whole page */
#share-wishlist-form {
    max-width: 520px;
}

/* the filter of the list: whose wishes is a select, the state, the order and the mode are icons beside it
   (links, each with the whole filter in its address); on a phone the icons go under the select */
.filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .5rem .75rem;
    margin-bottom: .5rem;
}

.filter-person {
    flex: 1 1 14rem;
    max-width: 22rem;
    min-width: 0;
}

.filter-person label {
    margin-bottom: .2rem;
    font-size: 1rem;
    font-weight: 700;
    color: #1d2b3a;
}

/* the person is the first and the main choice of the list, so the select is the loudest field of the panel: a white field with a frame
   in the colour of the brand, bigger and bolder text (the same size on a phone, 16 px and more, so iOS does not zoom in on it) */
.filter-person select.form-control {
    height: auto;
    min-height: 3rem;
    padding-top: .5rem;
    padding-bottom: .5rem;
    border: 2px solid var(--brand);
    background-color: #fff;
    color: #14253a;
    font-size: 1.2rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(20, 50, 92, .18);
}

.filter-person select.form-control:hover,
.filter-person select.form-control:focus {
    background-color: #fff;
    border-color: var(--brand-dark);
    box-shadow: 0 2px 8px rgba(20, 50, 92, .28);
}

.filter-person select.form-control option {
    font-weight: 400;
}

.filter-icons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
    margin-left: auto;
}

.filter-group {
    display: flex;
    background: #fff;
    border: 1px solid #cdd6e2;
    border-radius: 8px;
    padding: 2px;
}

.filter-group a.icon-action {
    padding: 2px 9px;
    font-size: 1.1rem;
}

.filter-bar a.icon-action.is-active {
    background: var(--brand);
    color: #fff;
}

/* the carrier of a tag "Nové" around a group of icons (the group cuts off what sticks out of it) */
.filter-news {
    display: flex;
}

/* the state: a button that opens a short menu (a native <details>, closed by main.js on a click elsewhere) */
.filter-menu {
    position: relative;
}

.filter-menu > summary {
    display: flex;
    align-items: center;
    gap: .4rem;
    padding: 4px 10px;
    border: 1px solid #cdd6e2;
    border-radius: 8px;
    background: #fff;
    color: #4a5a68;
    font-size: 1.1rem;
    line-height: 1.5;
    list-style: none;
    cursor: pointer;
}

.filter-menu > summary::-webkit-details-marker {
    display: none;
}

/* a state other than the usual one is shown, so it is clear that the list is not what it usually is (the trash, the private wishes) */
.filter-menu > summary.is-active {
    border-color: var(--brand);
    background: var(--brand);
    color: #fff;
}

.filter-menu-name {
    font-size: .85rem;
    font-weight: 700;
}

.filter-menu-caret {
    font-size: .7rem;
}

.filter-menu-list {
    position: absolute;
    top: calc(100% + 4px);
    right: 0;
    z-index: 30;
    min-width: 14rem;
    padding: .25rem;
    border: 1px solid #cdd6e2;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

/* on a phone the button of the state is on the left of its row, so the menu is as wide as the panel of the filter
   (it would go out of the screen on the left), right under the button */
@media (max-width: 575.98px) {
    #search-form {
        position: relative;
    }

    .filter-menu {
        position: static;
    }

    .filter-menu-list {
        top: auto;
        right: .75rem;
        left: .75rem;
        margin-top: .25rem;
        min-width: 0;
    }
}

.filter-menu-list a {
    display: block;
    padding: .45rem .75rem;
    border-radius: 6px;
    color: #333;
    white-space: nowrap;
}

.filter-menu-list a:hover {
    background: #e9eff6;
    color: #333;
    text-decoration: none;
}

.filter-menu-list a.is-active {
    background: #e9eff6;
    color: var(--brand);
    font-weight: 700;
}

/* a choice that explains itself (the order): the name, and under it, in smaller and softer letters, how it orders; it wraps, the name does not */
.filter-menu-hint {
    display: block;
    max-width: 15rem;
    padding-left: 1.5rem;
    color: inherit;
    font-size: .8rem;
    font-weight: 400;
    line-height: 1.3;
    opacity: .75;
    white-space: normal;
}

/* the buttons of a wish: the shop is green, so it invites to a click (it is what earns the site), every step of the gift
   has a colour of its own and none is the blue of the theme; --action is the colour of a button, the rest follows from it */
.btn.btn-shop,
.btn.btn-reserve,
.btn.btn-ordered,
.btn.btn-arranged,
.btn.btn-given {
    border-color: var(--action);
    background-color: var(--action);
    color: #fff;
}

.btn.btn-shop:hover,
.btn.btn-shop:focus,
.btn.btn-reserve:hover,
.btn.btn-reserve:focus,
.btn.btn-ordered:hover,
.btn.btn-ordered:focus,
.btn.btn-arranged:hover,
.btn.btn-arranged:focus,
.btn.btn-given:hover,
.btn.btn-given:focus {
    border-color: var(--action);
    background-color: var(--action);
    color: #fff;
    filter: brightness(.9);
    text-decoration: none;
    box-shadow: 0 0 0 .2rem color-mix(in srgb, var(--action) 35%, transparent);
}

.btn.btn-shop {
    --action: #2f9e44;
    padding: .6rem 1.5rem;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(47, 158, 68, .4);
}

.btn.btn-reserve {
    --action: #7048a8;
}

.btn.btn-ordered {
    --action: #d9730d;
}

.btn.btn-arranged {
    --action: #0b7285;
}

.btn.btn-given {
    --action: var(--brand);
}

/* the small buttons are small really: Bootstrap gives them the line of 1.5, which with the padding leaves the text lost in the middle (31 px for a 14 px text) */
.btn.btn-sm {
    padding: .25rem .65rem;
    line-height: 1.15;
}

/* the quiet buttons ("Chci to taky", "Odrezervovat", "Vrátit sem"): a side offer or a step back must not compete with the main buttons, so they are small
   and grey, but never without a background (a button of the colour of the page looks like a bare text) */
.btn.btn-quiet,
.btn.btn-release {
    border-color: #c4cad1;
    background-color: #e9ecef;
    color: #495057;
}

.btn.btn-quiet:hover,
.btn.btn-quiet:focus,
.btn.btn-release:hover,
.btn.btn-release:focus {
    border-color: #868e96;
    background-color: #dee2e6;
    color: #495057;
    text-decoration: none;
}

/* a select is not a text field: a filled triangle on the right and a tinted background, so it is clear that a choice is made from a list, not typed */
select.form-control {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    padding-right: 2.5rem;
    border-color: #b8c4d4;
    background-color: #eef2f7;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M2 4.5h12L8 12z' fill='%2314325c'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right .8rem center;
    background-size: 1.05rem;
    cursor: pointer;
}

select.form-control:hover {
    background-color: #e4eaf2;
}

select.form-control:focus {
    background-color: #fff;
}

/* the way in by e-mail: a quiet note under the button of Google, the link to the forgotten password and the folded
   registration (Component/login_panel.latte, Forms/templates/registration.latte) */
.login-google-note {
    margin: .5rem 0 0;
    font-size: .8rem;
    color: #777;
}

.login-forgot {
    margin: .75rem 0 0;
    text-align: center;
    font-size: .875rem;
}

/* the way in with an e-mail: folded under a quiet button below the one of Google (Component/login_panel.latte), and in it
   the registration, folded under a thin line */
.btn-email {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .6rem;
    padding: .55rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: var(--brand);
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.btn-email::-webkit-details-marker {
    display: none;
}

.btn-email:hover {
    background: #f8f9fa;
}

.login-email[open] > .btn-email {
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.login-option {
    margin-top: .75rem;
    text-align: left;
}

.login-forgot + .login-option {
    padding-top: .75rem;
    border-top: 1px solid #ddd;
}

.login-option > summary {
    cursor: pointer;
    text-align: center;
    color: var(--brand);
    font-weight: 600;
}

.login-option[open] > summary {
    margin-bottom: 1rem;
}

.registration-form {
    text-align: left;
}

.auth-field {
    margin-bottom: .85rem;
}

.auth-field label {
    display: block;
    margin-bottom: .25rem;
    font-weight: 600;
}

.registration-form .form-control {
    margin-bottom: .25rem;
}

.auth-field-error {
    color: #e74c3c;
    font-weight: 600;
    font-size: .875rem;
}

.auth-field-help {
    margin-top: .25rem;
    font-size: .8rem;
    color: #777;
}

.auth-show-password {
    display: inline-flex !important;
    align-items: center;
    gap: .4rem;
    margin: .35rem 0 0;
    font-weight: 400 !important;
    font-size: .85rem;
    cursor: pointer;
}

.auth-show-password[hidden] {
    display: none !important;
}

.auth-agree {
    display: flex !important;
    align-items: flex-start;
    gap: .5rem;
    font-weight: 400 !important;
    font-size: .875rem;
}

.auth-agree input {
    flex: none;
    margin-top: .25rem;
}

/* a hint that the e-mail is a Gmail one: Google is the easier way */
.auth-google-hint {
    margin-top: .35rem;
    padding: .5rem .75rem;
    background: #e6edf7;
    border-radius: 6px;
    font-size: .85rem;
}

.auth-google-hint[hidden] {
    display: none;
}

/* the field that a person never sees (BotTrap): out of the page, not display:none, which a robot skips */
.auth-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.registration-form button[type=submit] {
    display: block;
    width: 100%;
    margin-top: 1rem;
}

/* the pages of the e-mail account (EmailSign/*.latte): the forgotten password, the mail that has gone out, the new password */
.auth-page {
    max-width: 480px;
    margin: 1.5rem auto;
}

.auth-lead {
    font-size: 1.1rem;
}

.auth-note {
    font-size: .9rem;
    color: #555;
}

.auth-resend {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
    margin: 1rem 0;
}

.auth-resend form {
    display: inline;
}

.auth-resend .btn-link {
    padding: 0;
    vertical-align: baseline;
}

.auth-back {
    margin-top: 1.5rem;
    font-size: .9rem;
}

/* the share page: two ways to share (an invitation to an e-mail, the link for more people) side by side, on a phone under each other */
.share-title {
    margin-bottom: 1rem;
}

.share-lead {
    max-width: 720px;
}

.share-ways {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (min-width: 992px) {
    .share-ways {
        grid-template-columns: 1fr 1fr;
        align-items: start;
    }
}

.share-way {
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    padding: 1rem 1.1rem;
    background: #fff;
}

.share-way-title {
    font-size: 1.2rem;
    color: var(--brand);
    margin-bottom: .25rem;
}

.share-way-for {
    color: #555;
    margin-bottom: .75rem;
}

/* what the way does, one fact to a line: the label quiet and short, the text under it */
.share-facts {
    margin: 0 0 1rem;
    font-size: .92rem;
}

.share-facts dt {
    margin-top: .5rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--brand);
}

.share-facts dd {
    margin: 0;
}

.share-people-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .35rem;
}

.share-people-actions form {
    margin: 0;
}

.share-people-tags {
    display: block;
    margin-top: .15rem;
}

.share-tag {
    display: inline-block;
    margin: 0 .3rem .15rem 0;
    padding: 0 .5rem;
    border-radius: 999px;
    background: #eef2f7;
    color: #44546a;
    font-size: .8rem;
}

.share-tag-mutual {
    background: #e3f4e7;
    color: #25663a;
}

.share-requests {
    border: 2px solid var(--yellow);
    background: var(--yellow-light);
    border-radius: 12px;
    padding: .75rem 1rem 1rem;
    margin-bottom: 1.5rem;
    max-width: 720px;
}

.share-requests-title {
    font-size: 1.15rem;
    margin-bottom: .25rem;
}

.share-requests-note {
    font-size: .9rem;
}

/* the link: the address and the buttons that copy and share it */
.join-link-box {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: .5rem;
}

.join-link-box .form-control {
    flex: 1 1 14rem;
    min-width: 0;
}

.join-link-buttons {
    display: flex;
    gap: .5rem;
}

.join-link-state {
    font-size: .9rem;
    margin: .25rem 0 .75rem;
}

.join-link-closed {
    color: #b03a2e;
}

.join-link-manage {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.join-link-manage form {
    margin: 0;
}

/* the bar on the home page: somebody waits for the owner's decision */
.join-waiting .bi {
    margin-right: .25rem;
}

/* the page of the link (/join/<code>) */
.join-page {
    max-width: 560px;
    margin: 1rem auto;
}

.join-title {
    font-size: 1.5rem;
    color: var(--brand);
}

.join-lead {
    font-size: 1.05rem;
}

.join-steps {
    padding-left: 1.2rem;
}

.join-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem 1rem;
    margin: 1.25rem 0 .75rem;
}

/* .btn sets its own display, so the share button that only phones have must be hidden explicitly */
.join-link-buttons [hidden] {
    display: none;
}

.join-link-box .form-control {
    font-size: .85rem;
}

/* the blue buttons of the site are the navy of the logo, not the blue of the framework (the doubled class wins over the later styles) */
.btn.btn-primary {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.btn.btn-primary:hover,
.btn.btn-primary:focus,
.btn.btn-primary:active {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn.btn-primary:focus,
.btn.btn-outline-primary:focus {
    box-shadow: 0 0 0 .2rem rgba(20, 50, 92, .35);
}

.btn.btn-outline-primary {
    color: var(--brand);
    border-color: var(--brand);
    background-color: transparent;
}

.btn.btn-outline-primary:hover,
.btn.btn-outline-primary:active {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

/* "Sdílet seznam přání" (the list, the bar of icons, the welcome box): the pink of the heart, so that it invites to a click */
.btn.btn-share-list {
    background-color: #e0245e;
    border-color: #e0245e;
    color: #fff;
    font-weight: 700;
}

.btn.btn-share-list:hover,
.btn.btn-share-list:focus,
.btn.btn-share-list:active {
    background-color: #bf1a4c;
    border-color: #bf1a4c;
    color: #fff;
}

.btn.btn-share-list .bi {
    margin-right: .25rem;
}

/* the explanation of a way to share is folded: the title of the box is what is seen */
.share-howto {
    margin-bottom: 1rem;
}

.share-howto summary {
    cursor: pointer;
    color: var(--brand);
    font-weight: 600;
}

.share-howto[open] summary {
    margin-bottom: .25rem;
}

.join-link-manage .btn .bi {
    margin-right: .2rem;
}

/* ---- the dashboard of the administrator (/dashboard) ---- */
:root {
    --chart-mark: var(--brand);
    --chart-ink: #52514e;
    --chart-muted: #898781;
    --chart-grid: #e1e0d9;
}

.dash-section {
    margin: 2.25rem 0 .75rem;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--brand);
}

/* the numbers: two in a row on a phone, four from a tablet up */
.dash-tiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .75rem;
}

.dash-tiles-small {
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
}

@media (min-width: 768px) {
    .dash-tiles {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.dash-tile,
.dash-grid > div {
    min-width: 0;
    padding: .9rem 1rem;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 8px;
}

.dash-tile-label {
    font-size: .85rem;
    font-weight: 600;
    color: var(--chart-ink);
}

.dash-tile-value {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    color: var(--brand);
}

.dash-tile-suffix {
    font-size: 1.2rem;
}

.dash-tile-note {
    margin-top: .15rem;
    font-size: .8rem;
    line-height: 1.3;
    color: var(--chart-muted);
}

/* the way from a number to the list it counts (the not recommended tips) */
.dash-tile-more {
    display: inline-block;
    margin-top: .3rem;
    font-size: .85rem;
}

.dash-tile-hero {
    border-left: 5px solid var(--brand);
}

.dash-tile-hero .dash-tile-value {
    font-size: 2.6rem;
}

/* charts and tables: one column on a phone, two from a tablet up; a wide one takes both */
.dash-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: .75rem;
}

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

    .dash-grid > .dash-wide {
        grid-column: 1 / -1;
    }
}

.dash-chart {
    margin: 0;
}

.dash-chart-title {
    margin: 0 0 .15rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #333;
}

.dash-chart-note {
    margin: 0 0 .5rem;
    font-size: .8rem;
    color: var(--chart-muted);
}

.dash-chart-canvas {
    position: relative;
    height: 15rem;
}

.dash-chart-line {
    height: 17rem;
}

/* a bar per category: the height follows their number (--bars is set by the template) */
.dash-chart-bars {
    height: calc(var(--bars, 4) * 2.4rem + 2rem);
}

.dash-chart-table {
    margin-top: .5rem;
    font-size: .85rem;
}

.dash-chart-table summary {
    cursor: pointer;
    color: var(--chart-muted);
}

.dash-people {
    margin-bottom: 0;
    font-size: .875rem;
}

.dash-people th[scope="row"] {
    font-weight: 600;
}

.dash-facts {
    margin: 1rem 0 0;
    padding-left: 1.25rem;
    color: var(--chart-ink);
}

.dash-system {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: .35rem 1.5rem;
    padding: .9rem 1rem;
    margin: 0;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 8px;
}

.dash-system dt {
    font-weight: 600;
    color: var(--chart-ink);
}

.dash-system dd {
    margin: 0;
}

/* ---- the error pages (404, 403, ...): a gift that went wrong, then the words ---- */
.error-page {
    max-width: 34rem;
    margin: 2rem auto;
    text-align: center;
}

.error-art {
    display: block;
    width: 11rem;
    max-width: 60%;
    height: auto;
    margin: 0 auto 1rem;
    overflow: visible;
}

.error-page h2 {
    margin-bottom: .75rem;
    font-weight: 700;
    color: var(--brand);
}

.error-text {
    font-size: 1.1rem;
}

.error-hint {
    color: #777;
}

.error-code {
    margin-top: 1.5rem;
    font-size: .8rem;
    color: #aaa;
}

/* the lid or the padlock sways a little, the confetti drifts */
.error-wobble {
    animation: error-wobble 3.2s ease-in-out infinite;
    transform-box: fill-box;
    transform-origin: center;
}

.error-confetti {
    animation: error-confetti 3.6s ease-in-out infinite;
}

.error-confetti:nth-of-type(even) {
    animation-delay: 1.2s;
}

@keyframes error-wobble {
    0%, 100% { transform: rotate(0); }
    50% { transform: rotate(4deg) translateY(-2px); }
}

@keyframes error-confetti {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
    .error-wobble, .error-confetti { animation: none; }
}

/* ===== Tipy na dárky (the page of the tips, the strips of tips, the side of the administrator) ===== */

/* the icon of the administrator with the number of the tips that wait for him */
a.icon-action-badged {
    position: relative;
}

.icon-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 1.15rem;
    padding: 0 .3rem;
    border-radius: 999px;
    background: #e0245e;
    color: #fff;
    font-size: .7rem;
    font-weight: 700;
    line-height: 1.15rem;
    text-align: center;
    box-shadow: 0 0 0 2px #ecebe8;
}

/* the icons of the header and of the menu of a phone have a colour of their own each (the ruby has its own picture): the light ones for the dark mode
   are in css/dark.css. The colour is on the glyph itself, so the colour of the link (the theme, the hover) does not turn them grey */
#logged-as .bi-moon-stars-fill { color: #4c6ef5; }
#logged-as .bi-sun-fill { color: #f2a900; }
#logged-as .bi-share-fill { color: #1f9d6b; }
#logged-as .bi-gear-fill { color: #8e5bd9; }
#logged-as .bi-box-arrow-right { color: #ee6a2c; }
#logged-as .bi-speedometer2 { color: #0d9ab8; }

/* the ruby (images/ruby.svg): the coloured gem of the Rubíny, in the header, the menu and on the page of the Rubíny */
.ruby-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background: url("images/ruby.svg") center / contain no-repeat;
    vertical-align: -.35em;
}

.ruby-icon-menu {
    width: 1.3em;
    height: 1.3em;
    vertical-align: -.25em;
}

.ruby-icon-title {
    width: 1.1em;
    height: 1.1em;
    vertical-align: -.12em;
}

/* a ruby hidden in the page (App\Rewards\HiddenRuby, js/hidden-ruby.js): a small gem inside the text that glints now and then; the click shows a pop-up on the spot */
.hidden-ruby-spot {
    position: relative;
    display: inline-block;
    line-height: 1;
}

.hidden-ruby {
    display: inline-block;
    width: 1.1em;
    height: 1.1em;
    padding: 0;
    border: 0;
    background: url("images/ruby.svg") center / contain no-repeat;
    vertical-align: -.2em;
    cursor: pointer;
}

.hidden-ruby:focus-visible {
    outline: 2px solid var(--brand);
    outline-offset: 2px;
}

.hidden-ruby:disabled {
    cursor: default;
}

.ruby-found {
    position: absolute;
    z-index: 1050;
    bottom: calc(100% + .7rem);
    left: 50%;
    width: max-content;
    max-width: min(18rem, calc(100vw - 16px));
    padding: .8rem 1rem;
    border: 2px solid #e0245e;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(6, 22, 58, .25);
    color: #2d3b48;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    /* js/hidden-ruby.js sets --ruby-shift when the pop-up would stick out of the screen */
    transform: translateX(calc(-50% + var(--ruby-shift, 0px)));
}

/* the tail points at the ruby, whatever the shift of the pop-up */
.ruby-found::after {
    content: '';
    position: absolute;
    top: 100%;
    left: calc(50% - var(--ruby-shift, 0px));
    width: 12px;
    height: 12px;
    margin: -7px 0 0 -6px;
    border: solid #e0245e;
    border-width: 0 2px 2px 0;
    background: inherit;
    transform: rotate(45deg);
}

/* a ruby near the top of the screen: the pop-up opens below it */
.ruby-found.is-below {
    top: calc(100% + .7rem);
    bottom: auto;
}

.ruby-found.is-below::after {
    top: 0;
    margin-top: -7px;
    border-width: 2px 0 0 2px;
}

.ruby-found-title {
    margin: 0 0 .2rem;
    font-weight: 800;
}

.ruby-found-text {
    margin: 0 0 .6rem;
}

.ruby-found-text:has(+ .ruby-found-progress) {
    margin-bottom: .2rem;
}

.ruby-found-progress {
    margin: 0 0 .6rem;
    color: #5b6773;
    font-size: .88rem;
}

@media (prefers-reduced-motion: no-preference) {
    .hidden-ruby:not(:disabled) {
        animation: ruby-glint 7s ease-in-out infinite;
    }
}

@keyframes ruby-glint {
    0%, 90%, 100% { transform: scale(1); filter: none; }
    95% { transform: scale(1.3); filter: drop-shadow(0 0 4px #ff6b8f); }
}

/* the number in the header hangs at the lower right of its icon, so that it does not cover it */
.icon-badge-corner {
    top: auto;
    right: -.35rem;
    bottom: -.45rem;
    min-width: 1.05rem;
    padding: 0 .28rem;
    font-size: .65rem;
    line-height: 1.05rem;
}

/* the number of the Rubíny on the gem: blue, not the red of a notification. It is centred on the lower right edge of the gem (the link has 8 px of
   padding around the 1.5em gem), so a digit and four digits both cover the gem a little: it grows to both sides, not away from it */
.icon-badge-ruby {
    left: calc(100% - 8px);
    right: auto;
    bottom: -.3rem;
    transform: translateX(-50%);
    background: #1f6feb;
}


/* the dashboard: the tips that wait are lit up at the top */
.dash-alert {
    display: flex;
    align-items: center;
    gap: .9rem;
    margin-bottom: 1rem;
    padding: .85rem 1rem;
    border-radius: 10px;
    background: #fff4d6;
    border: 2px solid var(--yellow);
    color: var(--brand);
}

.dash-alert:hover {
    background: #ffeeb8;
    color: var(--brand);
    text-decoration: none;
}

.dash-alert-count {
    flex: 0 0 auto;
    min-width: 3rem;
    padding: .35rem .6rem;
    border-radius: 999px;
    background: #e0245e;
    color: #fff;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
}

.dash-alert-text {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.dash-alert-text span {
    font-size: .9rem;
    color: #5b5a55;
}

.dash-alert .bi-arrow-right-circle {
    flex: 0 0 auto;
    font-size: 1.6rem;
}

.dash-tip-queue {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
}

.dash-tip-queue li + li {
    border-top: 1px solid #ecebe8;
}

.dash-tip-queue a {
    display: flex;
    flex-direction: column;
    padding: .4rem 0;
    color: var(--brand);
}

.dash-tip-queue-meta {
    font-size: .8rem;
    color: var(--chart-muted);
}

/* the list of the tips for the administrator */
.tip-tabs .nav-link {
    color: var(--brand);
}

.tip-tabs .nav-link.active {
    background: var(--brand);
    color: #fff;
}

.tip-admin-list {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.tip-admin-row {
    display: flex;
    gap: .75rem;
    padding: .6rem;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 8px;
    color: #333;
}

.tip-admin-row:hover {
    border-color: var(--brand);
    text-decoration: none;
    color: #333;
}

.tip-admin-thumb {
    flex: 0 0 4rem;
    height: 4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background: #f1efe8;
    color: #b8b4a6;
    font-size: 1.6rem;
    overflow: hidden;
}

.tip-admin-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tip-admin-body {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.tip-admin-title {
    font-weight: 700;
    color: var(--brand);
}

.tip-admin-excerpt {
    font-size: .9rem;
    color: #5b5a55;
}

.tip-admin-meta {
    font-size: .8rem;
    color: var(--chart-muted);
}

.tip-status {
    font-size: .8rem;
    vertical-align: middle;
}

.tip-status-new {
    background: var(--yellow);
    color: #4a3b00;
}

.tip-status-approved {
    background: #2e9e6b;
    color: #fff;
}

.tip-status-rejected {
    background: #8a8f95;
    color: #fff;
}

.tip-category-list {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .5rem;
}

.tip-chip {
    display: inline-flex;
    align-items: center;
    margin: 0 .35rem .35rem 0;
    padding: .35rem .6rem;
    font-size: .85rem;
}

.tip-chip-remove {
    margin-left: .35rem;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
}

.tip-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.tip-buttons button {
    padding: .5rem 1.1rem;
}

/* the page of the tips */
.tip-filter {
    padding: .9rem;
    border-radius: 10px;
    background: #e9eef4;
}

.tip-filter-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .6rem .75rem;
}

.tip-filter-field label {
    margin-bottom: .15rem;
    font-size: .8rem;
    font-weight: 700;
    color: var(--brand);
}

.tip-filter-wide {
    grid-column: 1 / -1;
}

.tip-filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .75rem;
}

@media (min-width: 768px) {
    .tip-filter-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.tip-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1rem;
    margin-bottom: 1.25rem;
}

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

@media (min-width: 992px) {
    .tip-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.tip-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 10px;
    transition: box-shadow .15s;
}

.tip-card:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, .2);
}

.tip-card-media {
    display: block;
}

.tip-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: contain;
    background: #fff;
    padding: .75rem;
}

.tip-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f6f3ea;
    color: #cfc7ad;
    font-size: 3rem;
}

.tip-card-body {
    flex: 1 1 auto;
    padding: .25rem 1rem .5rem;
}

.tip-card-title {
    margin: 0 0 .35rem;
    font-size: 1.15rem;
    font-weight: 700;
}

.tip-card-title a {
    color: var(--brand);
}

.tip-card-text {
    margin-bottom: .5rem;
    font-size: .92rem;
    color: #55544f;
}

.tip-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    padding: .6rem 1rem .9rem;
}

.tip-chips {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin: 0 0 .5rem;
    padding: 0;
    list-style: none;
}

.tip-chips li {
    padding: .1rem .5rem;
    border-radius: 999px;
    background: #eef1f5;
    color: #46515f;
    font-size: .85rem;
}

.tip-chips .tip-chip-category {
    background: #fff0bd;
}

.tip-chips .tip-chip-category a {
    color: #5a4600;
}

.tip-count {
    margin-bottom: .75rem;
    color: #55544f;
}

.tip-pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.tip-cta {
    margin: 2rem 0 1rem;
    padding: 1.1rem 1.25rem;
    border-radius: 10px;
    background: var(--yellow-light);
    border: 1px solid rgba(0, 0, 0, .1);
    text-align: center;
}

/* the path to a page (the breadcrumb navigation) */
.crumbs {
    margin: .75rem 0 0;
}

.crumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.crumbs li + li::before {
    content: "›";
    margin-right: .25rem;
    opacity: .6;
}

/* the pages of the tips for what people search for */
.landing-intro {
    max-width: 46rem;
    font-size: 1.05rem;
}

.landing-links {
    margin: 1.5rem 0;
}

.landing-links ul {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem .5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.landing-links a {
    display: inline-block;
    padding: .2rem .7rem;
    border-radius: 999px;
    border: 1px solid rgba(0, 0, 0, .15);
    font-size: .9rem;
}

/* the page of one tip */
.tip-detail-media {
    border: 1px solid #dedcd6;
    border-radius: 10px;
    background: #fff;
    overflow: hidden;
}

.tip-detail-media .tip-image {
    aspect-ratio: 1 / 1;
}

.tip-detail-text {
    font-size: 1.05rem;
}

/* the short line of a tip under the labels: a light tint and a thin line at the side, so it stands out a little but not over the heading (the tint is
   transparent, it works on the dark theme too) */
.tip-detail-lead {
    margin: 1rem 0;
    padding: .55rem .9rem;
    border-left: 3px solid rgba(214, 160, 0, .75);
    border-radius: 0 8px 8px 0;
    background: rgba(255, 193, 7, .12);
}

.tip-detail-actions {
    margin: 1rem 0 .5rem;
}

/* a few tips in a row as an inspiration: they scroll sideways on a phone */
.tip-strip {
    margin: 1.25rem 0;
    padding: .9rem;
    border-radius: 10px;
    background: #fff8e1;
    border: 1px solid rgba(0, 0, 0, .08);
}

.tip-strip-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .25rem .75rem;
    margin-bottom: .6rem;
}

.tip-strip-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--brand);
}

.tip-strip-more {
    font-size: .9rem;
}

.tip-strip-row {
    display: flex;
    gap: .75rem;
    overflow-x: auto;
    padding-bottom: .25rem;
    scroll-snap-type: x proximity;
}

.tip-mini {
    flex: 0 0 9.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 8px;
    color: #333;
    scroll-snap-align: start;
}

.tip-mini:hover {
    border-color: var(--brand);
    text-decoration: none;
    color: #333;
}

/* the card is a link that holds the photo and the words; the heart (a form) lies over the corner beside it, see css/discover.css */
.tip-mini-link {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    color: #333;
}

.tip-mini-link:hover {
    color: #333;
    text-decoration: none;
}

.tip-mini .tip-image {
    padding: .4rem;
    font-size: 2rem;
}

.tip-mini-title {
    padding: .35rem .6rem 0;
    font-size: .88rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--brand);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tip-mini-meta {
    padding: 0 .6rem .45rem;
    font-size: .82rem;
    color: #7a7872;
}

@media (min-width: 768px) {
    .tip-mini {
        flex-basis: 10.5rem;
    }
}

/* the tips of one person of the list: folded under his name */
.tip-person {
    margin: -.25rem 0 .75rem;
}

.tip-person > summary {
    cursor: pointer;
    color: #6b6a64;
    font-size: .9rem;
}

.tip-person > summary:hover {
    color: var(--brand);
}

.tip-person .tip-strip {
    margin-top: .5rem;
}

.login-tips {
    margin-top: 1rem;
}

.profile-interests {
    padding: .5rem .25rem;
}

/* the two buttons of a tip card are one height whatever the text (the icons differ) */
.tip-card-actions {
    align-items: stretch;
}

.tip-card-actions .btn {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
}

/* a row of the list of the tips for the administrator: the checkbox of the bulk, and the link that holds the rest */
.tip-admin-row {
    align-items: flex-start;
}

.tip-admin-check {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: .35rem .25rem 0 .1rem;
}

.tip-admin-row a.tip-admin-link {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    gap: .75rem;
    color: #333;
}

.tip-admin-row a.tip-admin-link:hover {
    text-decoration: none;
    color: #333;
}

.tip-select-all {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin: 0 0 .5rem;
    color: #55544f;
    font-size: .9rem;
}

/* the photo of the wish form shown large (www/js/wish-image.js): a click on it, on the cross or Esc closes it */
.wish-image-thumb {
    cursor: zoom-in;
}

.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 30000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    background: rgba(0, 0, 0, .85);
    cursor: zoom-out;
}

.image-lightbox img {
    max-width: 100%;
    max-height: 100%;
    border-radius: 6px;
    background: #fff;
    box-shadow: 0 4px 30px rgba(0, 0, 0, .5);
}

.image-lightbox-close {
    position: absolute;
    top: .5rem;
    right: .75rem;
    padding: 0 .6rem;
    border: 0;
    border-radius: 6px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: 2.2rem;
    line-height: 1.2;
    cursor: pointer;
}

/* the bar that leads to the tips on gifts, above the filter of the home page: quieter than the yellow button, still easy to see */
.tips-teaser {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin: 0 0 .75rem;
    padding: .6rem .9rem;
    border: 1px solid rgba(0, 0, 0, .1);
    border-radius: 10px;
    background: #fff8e1;
    color: var(--brand);
}

.tips-teaser:hover,
.tips-teaser:focus {
    background: #fff0bd;
    color: var(--brand);
    text-decoration: none;
}

.tips-teaser-icon {
    font-size: 1.35rem;
    color: #c98f00;
}

.tips-teaser-text {
    flex: 1 1 auto;
    min-width: 0;
}

.tips-teaser-hint {
    display: block;
    font-size: .88rem;
    color: #6b6a64;
}

@media (min-width: 576px) {
    /* on a wide screen the question follows the name in one line */
    .tips-teaser-hint {
        display: inline;
        margin-left: .5rem;
    }
}

/* the note that the tips are chosen by the profile (the page of the tips, under the tips for the user, the profile) */
.profile-hint,
.profile-tips-note {
    margin: .75rem 0 0;
    padding: .5rem .75rem;
    border-radius: 8px;
    background: #eef4fb;
    color: #34465a;
    font-size: .9rem;
}

.profile-tips-note {
    margin: 0 0 1rem;
}

/* the interests of the profile run in lines, not one under another */
.profile-interests {
    display: flex;
    flex-wrap: wrap;
    gap: .1rem 1.25rem;
}

.profile-interests div.form-check {
    display: inline-flex;
    min-height: 0;
}

/* "more tips" stands under the row of tips, on the right (it used to stand above them, where it was read before the tips) */
.tip-strip-foot {
    margin-top: .5rem;
    text-align: right;
}

/* the note about the profile keeps a gap from what follows it (the filter of the tips page); under the tips of the strip it ends the box */
.profile-hint {
    margin-bottom: 1rem;
}

.tip-strip .profile-hint {
    margin-bottom: 0;
}

/* the catalog of the Heureka products (the administrator) */
.catalog-table td {
    vertical-align: middle;
}

.catalog-thumb img {
    width: 60px;
    height: 60px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 6px;
}

.catalog-tools {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.catalog-tools .form-control {
    flex: 1 1 14rem;
    max-width: 24rem;
}

.catalog-import summary {
    cursor: pointer;
    margin-bottom: 0.5rem;
}

/* the question to an older user: may his wishes be offered as anonymous tips (Component/tip_consent.latte); orange, it must not be missed */
.tip-consent {
    display: flex;
    gap: 1rem;
    margin: 0 0 1rem;
    padding: 1rem 1.25rem;
    border: 1px solid #f0a04b;
    border-left: 6px solid #f28c28;
    border-radius: 10px;
    background: #ffe9cf;
    color: #4a2d00;
}

.tip-consent-icon {
    flex: 0 0 auto;
    font-size: 2rem;
    line-height: 1;
    color: #e57800;
}

.tip-consent-body {
    min-width: 0;
}

.tip-consent-title {
    margin: 0 0 .5rem;
    font-size: 1.25rem;
    font-weight: 700;
}

.tip-consent a:not(.btn) {
    color: #8a4b00;
    font-weight: 700;
    text-decoration: underline;
}

.tip-consent-look {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
}

.tip-consent-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem .75rem;
}

.tip-consent-actions form {
    margin: 0;
}

/* the green button is the answer that is wanted, so it is the larger one */
.tip-consent-actions .btn-success {
    padding: .5rem 1.5rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .tip-consent {
        padding: .9rem 1rem;
    }

    .tip-consent-icon {
        display: none;
    }

    .tip-consent-actions form,
    .tip-consent-actions .btn {
        width: 100%;
    }
}

/* the two quieter buttons of the question about the tips: dark on the orange, so that they read well */
a.tip-consent-view,
.tip-consent-decline {
    border: 1px solid #8a4b00;
    background: rgba(255, 255, 255, .55);
    color: #6b3a00;
}

a.tip-consent-view:hover,
a.tip-consent-view:focus,
.tip-consent-decline:hover,
.tip-consent-decline:focus {
    background: #fff;
    color: #4a2d00;
}

/* ===== Zpětná vazba (the box in the corner of every page and the page of the feedback) ===== */

/* the colours of the statuses: the same on the badge, the left edge of a piece and the buttons of the administrator */
:root {
    --fb-new: #3498db;
    --fb-considering: #8e6bbf;
    --fb-planned: var(--brand);
    --fb-confirmed: #0d8a72;
    --fb-in_progress: #f39c12;
    --fb-done: #18bc9c;
    --fb-finished: #2e7d32;
    --fb-declined: #7b8794;
    --fb-known: #5d7b9d;
    --fb-trash: #adb5bd;
}

.feedback {
    position: fixed;
    right: 14px;
    bottom: 14px;
    z-index: 1500;
}

a.feedback-fab {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    height: 48px;
    padding: 0 14px;
    border-radius: 24px;
    background: var(--brand);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 3px 10px rgba(0, 0, 0, .3);
}

a.feedback-fab:hover,
a.feedback-fab:focus {
    background: var(--brand-dark);
    color: #fff;
    text-decoration: none;
}

.feedback-fab i {
    font-size: 1.25rem;
    line-height: 1;
}

/* a phone shows just the round button, the word comes with room for it */
.feedback-label {
    display: none;
}

.feedback-panel {
    position: absolute;
    right: 0;
    bottom: 58px;
    width: min(380px, calc(100vw - 28px));
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, .3);
}

.feedback-panel[hidden] {
    display: none;
}

.feedback-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .75rem;
}

.feedback-head i {
    color: var(--brand);
}

.feedback-more {
    display: inline-block;
    margin-top: .75rem;
    font-weight: 700;
}

.feedback-form textarea {
    min-height: 110px;
}

.feedback-shot-tools {
    display: flex;
    gap: .5rem;
    margin-bottom: .5rem;
}

.feedback-shot-tools[hidden] {
    display: none;
}

.feedback-shot-preview {
    display: block;
    max-width: 100%;
    max-height: 160px;
    margin: .5rem 0;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.feedback-shot-preview[hidden] {
    display: none;
}

.feedback-shot-help {
    margin-top: .5rem;
    font-size: .85rem;
}

.feedback-shot-help summary {
    cursor: pointer;
    color: #006aeb;
}

@media (min-width: 768px) {
    .feedback {
        right: 22px;
        bottom: 22px;
    }

    .feedback-label {
        display: inline;
    }

    .feedback-panel {
        max-height: calc(100vh - 110px);
    }
}

/* the page: the new piece folded at the top, then the pieces, the newest first */
.feedback-new > summary {
    display: inline-block;
    cursor: pointer;
}

.feedback-new-form {
    max-width: 640px;
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.feedback-item {
    margin-bottom: 1rem;
    padding: 1rem 1.25rem;
    border-left: 5px solid var(--fb-new);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .08);
}

.feedback-item-news {
    box-shadow: 0 0 0 2px #e0245e, 0 1px 4px rgba(0, 0, 0, .08);
}

/* the folded card of a piece: the number, the heading with who and when, the badges; the status gives the colour of the edge and a light tint */
.feedback-item {
    padding: 0;
}

.feedback-item-summary {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .75rem 1.25rem;
    cursor: pointer;
    border-radius: 0 10px 10px 0;
    background: color-mix(in srgb, var(--fb-tint, var(--fb-new)) 9%, transparent);
    list-style: none;
}

.feedback-item-summary::-webkit-details-marker {
    display: none;
}

.feedback-item-summary .feedback-item-no {
    flex: 0 0 auto;
    min-width: 2.2rem;
    color: #6c757d;
    font-weight: 700;
}

.feedback-item-heading {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
}

.feedback-item-title {
    font-size: 1.05rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.feedback-item-caret {
    flex: 0 0 auto;
    color: #6c757d;
    transition: transform .15s;
}

.feedback-item[open] > .feedback-item-summary .feedback-item-caret {
    transform: rotate(180deg);
}

.feedback-item-body {
    padding: .25rem 1.25rem 1rem;
}

.feedback-item-who {
    margin: 0 0 .5rem;
}

.feedback-fold-tools {
    display: flex;
    gap: .4rem;
    justify-content: flex-end;
}

@media (max-width: 575px) {
    /* on a phone the status goes under the heading, the card stays a few lines */
    .feedback-item-summary {
        flex-wrap: wrap;
        padding: .65rem .85rem;
    }
}

.feedback-item-page {
    word-break: break-all;
}

.feedback-item-text {
    overflow-wrap: anywhere;
}

.feedback-item-shot img {
    max-width: 100%;
    max-height: 260px;
    margin-bottom: .75rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.feedback-status {
    flex-shrink: 0;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.feedback-edit,
.feedback-answer {
    margin-top: .75rem;
}

.feedback-edit > summary,
.feedback-answer > summary {
    cursor: pointer;
    color: #006aeb;
}

.feedback-reply {
    margin-top: .75rem;
    padding: .6rem .8rem;
    border-radius: 8px;
    background: #f1f3f5;
}

.feedback-reply-admin {
    background: #e8f0fb;
}

.feedback-reply-new {
    box-shadow: 0 0 0 2px #e0245e;
}

.feedback-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

.feedback-buttons .btn.active {
    box-shadow: inset 0 0 0 2px currentColor;
    font-weight: 700;
}

/* the colour of a status on the edge of a piece, on its badge and on the buttons of the administrator */
.feedback-item.feedback-status-new { border-left-color: var(--fb-new); --fb-tint: var(--fb-new); }
.feedback-item.feedback-status-considering { border-left-color: var(--fb-considering); --fb-tint: var(--fb-considering); }
.feedback-item.feedback-status-planned { border-left-color: var(--fb-planned); --fb-tint: var(--fb-planned); }
.feedback-item.feedback-status-confirmed { border-left-color: var(--fb-confirmed); --fb-tint: var(--fb-confirmed); }
.feedback-item.feedback-status-in_progress { border-left-color: var(--fb-in_progress); --fb-tint: var(--fb-in_progress); }
.feedback-item.feedback-status-done { border-left-color: var(--fb-done); --fb-tint: var(--fb-done); }
.feedback-item.feedback-status-finished { border-left-color: var(--fb-finished); --fb-tint: var(--fb-finished); }
.feedback-item.feedback-status-declined { border-left-color: var(--fb-declined); --fb-tint: var(--fb-declined); }
.feedback-item.feedback-status-known { border-left-color: var(--fb-known); --fb-tint: var(--fb-known); }
.feedback-item.feedback-status-trash { border-left-color: var(--fb-trash); --fb-tint: var(--fb-trash); }

.feedback-status.feedback-status-new, .btn.feedback-status-new { color: var(--fb-new); }
.feedback-status.feedback-status-considering, .btn.feedback-status-considering { color: var(--fb-considering); }
.feedback-status.feedback-status-planned, .btn.feedback-status-planned { color: var(--fb-planned); }
.feedback-status.feedback-status-confirmed, .btn.feedback-status-confirmed { color: var(--fb-confirmed); }
.feedback-status.feedback-status-in_progress, .btn.feedback-status-in_progress { color: var(--fb-in_progress); }
.feedback-status.feedback-status-done, .btn.feedback-status-done { color: var(--fb-done); }
.feedback-status.feedback-status-finished, .btn.feedback-status-finished { color: var(--fb-finished); }
.feedback-status.feedback-status-declined, .btn.feedback-status-declined { color: var(--fb-declined); }
.feedback-status.feedback-status-known, .btn.feedback-status-known { color: var(--fb-known); }
.feedback-status.feedback-status-trash, .btn.feedback-status-trash { color: var(--fb-trash); }

/* the id of a wish for the administrator (the detail and the card of a wish): to quote it when something is wrong */
.wish-id {
    color: #6c757d;
    font-size: .8rem;
    font-weight: 400;
    white-space: nowrap;
}

/* a tip is not a wish: the label "Tip" sits on its picture and the strip says what it is */
.tip-mini-media {
    position: relative;
    display: block;
}

.tip-mini-label {
    position: absolute;
    top: .35rem;
    left: .35rem;
    padding: .05rem .45rem;
    border-radius: 999px;
    background: var(--yellow);
    color: var(--brand-dark);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.3;
}

.tip-strip-note {
    margin: 0 0 .6rem;
    font-size: .88rem;
    color: #6b6a64;
}

.tip-person-hint {
    font-size: .8rem;
    color: #8a8880;
}

/* the screenshot of the feedback is folded: most pieces have none */
details.feedback-shot {
    margin-bottom: 1rem;
}

details.feedback-shot > summary {
    cursor: pointer;
    color: #006aeb;
}

/* the filter of the feedback is folded; its items have the colour of their status (the same as the buttons that set it) */
.feedback-status-new { --c: var(--fb-new); }
.feedback-status-considering { --c: var(--fb-considering); }
.feedback-status-planned { --c: var(--fb-planned); }
.feedback-status-confirmed { --c: var(--fb-confirmed); }
.feedback-status-in_progress { --c: var(--fb-in_progress); }
.feedback-status-done { --c: var(--fb-done); }
.feedback-status-finished { --c: var(--fb-finished); }
.feedback-status-declined { --c: var(--fb-declined); }
.feedback-status-known { --c: var(--fb-known); }
.feedback-status-trash { --c: var(--fb-trash); }

.feedback-filter > summary {
    cursor: pointer;
    list-style: none;
}

.feedback-filter > summary::-webkit-details-marker {
    display: none;
}

.feedback-filter[open] .feedback-filter-caret {
    transform: rotate(180deg);
}

.feedback-filter-current {
    color: var(--c, inherit);
    font-weight: 700;
}

.feedback-filter-list .nav-link {
    color: var(--c, var(--brand));
}

.feedback-filter-list .nav-link.active {
    background: var(--c, var(--brand));
    color: #fff;
}

.feedback-filter-list .nav-link.active .badge {
    color: var(--brand-dark);
}

/* the number of the threads with a new reply: next to the count, a white ring keeps it visible on the coloured active pill */
.feedback-filter-news {
    margin-left: .25rem;
    box-shadow: 0 0 0 1px #fff;
}

.feedback-filter-list .nav-link.active .feedback-filter-news {
    color: #fff;
}
/* the button "Zadej si přání" on the list of one person and its pop-up */
.reminder {
    margin: 0 0 .75rem;
}

.reminder-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 1rem 1.25rem;
    border: 1px solid #cdd6e2;
    border-radius: 10px;
    background: #fff;
    color: #333;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .35);
}

.reminder-dialog::backdrop {
    background: rgba(0, 0, 0, .55);
}

.reminder-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
    margin-bottom: .5rem;
}

.reminder-dialog textarea {
    min-height: 10rem;
}

.reminder-versions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem;
    margin-bottom: 1rem;
}

.reminder-versions-label {
    flex-basis: 100%;
}

/* the section Události of the dashboard: the log of what is written on the site */
.event-list {
    margin: 0;
    padding: 0;
    list-style: none;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 8px;
}

.event-item {
    display: flex;
    gap: .6rem;
    align-items: baseline;
    padding: .5rem .85rem;
    border-top: 1px solid #ecebe8;
    font-size: .9rem;
}

.event-item:first-child {
    border-top: 0;
}

.event-time {
    flex: 0 0 6.2rem;
    color: #7a7872;
    font-size: .8rem;
    white-space: nowrap;
}

.event-icon {
    flex: 0 0 1.2rem;
    color: var(--brand);
}

.event-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

.event-spoiler > summary {
    cursor: pointer;
    color: #7a7872;
    font-style: italic;
}

.event-data summary {
    display: inline;
    cursor: pointer;
    color: #7a7872;
    font-size: .75rem;
}

.event-data pre {
    margin: .35rem 0 0;
    padding: .5rem .75rem;
    border-radius: 6px;
    background: #f4f3ef;
    font-size: .75rem;
    white-space: pre-wrap;
}

/* ---- the seasonal skins of the header (App\Skins): a light touch, the colours of the site stay ----
   <html data-skin="..."> tells which one; the mark in front of the name is another picture (Component/logo_mark.latte) in the colour of the skin,
   the cold seasons let a light snow fall over the header (CSS only, moved by the compositor, off when the visitor wants less motion) */
html[data-skin] {
    --skin-accent: var(--brand);
    --skin-flake: rgba(110, 160, 215, .75);
}

html[data-skin="advent"] { --skin-accent: #2e7d32; }
html[data-skin="silvestr"] { --skin-accent: #d99a00; }
html[data-skin="halloween"] { --skin-accent: #e8710a; }
html[data-skin="velikonoce"] { --skin-accent: #8e24aa; }
html[data-skin="den-matek"] { --skin-accent: #d81b60; }
html[data-skin="den-otcu"] { --skin-accent: #1565c0; }
html[data-skin="valentyn"] { --skin-accent: #e0245e; }

html[data-skin] .logo-mark { color: var(--skin-accent); }

/* the snow is cut off at the top and at the sides only: overflow hidden would cut off the menu of the account that hangs below the header on a phone */
html[data-skin] #banner {
    position: relative;
    flex-wrap: wrap;
    clip-path: inset(0 0 -100vh 0);
}

html[data-skin="advent"] #banner::before,
html[data-skin="zima"] #banner::before,
html[data-skin="silvestr"] #banner::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: -90px;
    bottom: 0;
    pointer-events: none;
    background-image:
        radial-gradient(circle at 20px 30px, var(--skin-flake) 0 2px, transparent 2.500px),
        radial-gradient(circle at 80px 70px, var(--skin-flake) 0 1.500px, transparent 2px),
        radial-gradient(circle at 60px 10px, var(--skin-flake) 0 2.500px, transparent 3px),
        radial-gradient(circle at 110px 50px, var(--skin-flake) 0 1.500px, transparent 2px);
    background-size: 170px 90px, 130px 90px, 230px 90px, 97px 90px;
    animation: skin-snow 14s linear infinite;
}

@keyframes skin-snow {
    to { transform: translateY(90px); }
}

.skin-ornament {
    flex: 1 1 auto;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .35rem .85rem;
    min-width: 0;
}

.christmas-line {
    color: var(--brand);
    font-weight: 700;
    font-size: .95rem;
}

.skin-preview {
    padding: .1rem .5rem;
    border-radius: 999px;
    background: var(--yellow-light);
    color: var(--brand);
    font-size: .75rem;
}

/* the candles of the wreath: one more burns every week of Advent */
.advent-candles {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    height: 26px;
}

.advent-candle {
    position: relative;
    display: block;
    width: 7px;
    height: 15px;
    border-radius: 1px;
    background: #c62828;
}

.advent-candle.is-lit::before {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 100%;
    width: 7px;
    height: 10px;
    margin: 0 0 1px -3.500px;
    border-radius: 50% 50% 50% 50% / 65% 65% 35% 35%;
    background: #ffb300;
    box-shadow: 0 0 6px 2px rgba(255, 179, 0, .55);
    animation: skin-flame 2.400s ease-in-out infinite alternate;
}

.advent-candle:nth-child(2n).is-lit::before { animation-delay: -.8s; }
.advent-candle:nth-child(3n).is-lit::before { animation-delay: -1.500s; }

@keyframes skin-flame {
    from { transform: scale(1, 1); }
    to { transform: scale(.88, 1.12); }
}

@media (max-width: 575px) {
    /* on a phone the candles and the countdown have a line of their own under the name */
    .skin-ornament { order: 3; flex-basis: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    html[data-skin] #banner::before,
    .advent-candle.is-lit::before { animation: none; }
}

/* ---- the news (App\News, js/news.js): the tag "Nové" on a new thing and the bubble with a few words ---- */
.news-target {
    position: relative;
}

.news-badge {
    position: absolute;
    top: -.5rem;
    right: -.55rem;
    z-index: 5;
    padding: .05rem .38rem;
    border-radius: 999px;
    background: #e0245e;
    color: #fff;
    font-family: var(--font-body);
    font-size: .62rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .02em;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .25);
}

.news-badge:hover,
.news-badge:focus {
    background: #c21a4d;
    outline: none;
}

/* where the tag stands in a line of text (a label, a note) instead of on the corner of an element */
.news-target-inline .news-badge {
    position: static;
    display: inline-block;
    margin: 0 .35rem;
    vertical-align: middle;
}

.news-bubble {
    position: fixed;
    z-index: 1060;
    width: min(290px, calc(100vw - 16px));
    padding: .8rem .9rem;
    border: 2px solid #e0245e;
    border-radius: 10px;
    background: #fff;
    color: #333;
    box-shadow: 0 6px 22px rgba(0, 0, 0, .25);
    font-size: .9rem;
}

.news-bubble-text {
    margin: 0 0 .6rem;
}

/* the profile of a new account made through Google: "Máš starší účet?"; the managers of a person */
.profile-old-account,
.profile-managers {
    max-width: 640px;
    padding: 1rem 1.25rem;
    border: 1px solid #dedcd6;
    border-radius: 10px;
    background: #fff;
}

/* the editor of the groups of people in the profile (js/person-groups.js): a box for each group with a stripe and the chips of its people in the colour of the group
   (--group-color and --group-text are set on the box, also live while the colour is being picked); the people in no group are in a grey box at the end */
.group-editor {
    max-width: 640px;
}

.group-box {
    --group-color: #eceae4;
    --group-text: #1d2b3a;
    margin-bottom: .75rem;
    padding: .6rem .75rem .75rem;
    border: 1px solid #dedcd6;
    border-left: 8px solid var(--group-color);
    border-radius: 10px;
    background: #fff;
}

.group-head {
    display: flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: .5rem;
}

.group-handle,
.group-rest-title {
    user-select: none;
    -webkit-user-select: none;
}

.group-handle {
    flex: none;
    padding: .25rem .1rem;
    color: #6b7684;
    font-size: 1.3rem;
    line-height: 1;
    cursor: grab;
    touch-action: none;
}

.group-name {
    flex: 1 1 auto;
    min-width: 0;
    font-weight: 700;
}

.group-color {
    flex: none;
    width: 3rem;
    height: calc(1.5em + .75rem + 2px);
    padding: .15rem;
    border: 1px solid #b9b6ad;
    border-radius: .25rem;
    background: #fff;
    cursor: pointer;
}

.group-rest-title {
    font-weight: 700;
    color: #4d5966;
}

.group-people {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    min-height: 2.6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.group-people.is-empty::before {
    content: attr(data-empty-text);
    align-self: center;
    padding: 0 .25rem;
    color: #6b7684;
    font-size: .9rem;
}

.group-person {
    padding: .35rem .65rem;
    border-radius: 999px;
    background: var(--group-color);
    color: var(--group-text);
    box-shadow: 0 1px 2px rgba(0, 0, 0, .18);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}

.group-person .bi {
    opacity: .55;
}

.group-person.is-ghost,
.group-box.is-ghost {
    opacity: .4;
}

.group-person.is-chosen {
    box-shadow: 0 3px 8px rgba(0, 0, 0, .35);
}

.group-rest {
    background: #f4f3ef;
}

.group-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
}

@media (max-width: 575.98px) {
    .group-color {
        width: 2.6rem;
    }
}

/* the buttons of the invitation of a person the user manages: a gap between them, and under each other on a narrow screen */
.profile-invite-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

/* the buttons under the name on the profile of a person the user manages */
.profile-person-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-bottom: 1rem;
}

/* "Upravit profil" next to the name of a person the user manages (in the list of the wishes) and the list of the managed people in the own profile */
.person-manage-link {
    margin-left: .5rem;
    vertical-align: middle;
    font-size: .8rem;
    font-weight: 400;
}

.profile-managed-people {
    max-width: 640px;
}

.profile-managed-people-list {
    margin: 0 0 .75rem;
    padding: 0;
    list-style: none;
}

.profile-managed-people-list li {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .4rem .75rem;
    padding: .4rem 0;
    border-bottom: 1px solid #ebe9e3;
}

.profile-managed-people-list li:last-child {
    border-bottom: 0;
}

.profile-managed-people-name {
    flex: 1 1 10rem;
    font-weight: 600;
}

/* the filters of the administration of the tips, under the search */
.tip-filters {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: .5rem .9rem;
    margin-top: .6rem;
    font-size: .85rem;
}

.tip-filters label {
    display: flex;
    flex-direction: column;
    margin: 0;
    font-weight: 600;
}

.tip-filters label.tip-filter-check {
    flex-direction: row;
    align-items: center;
    gap: .35rem;
    padding-bottom: .35rem;
}

/* the status "Nedoporučeno ke schválení", the reason under a tip of the list, the buttons under the list of the tips */
.tip-status-notrecommended,
.tip-status-not-recommended {
    background: #fdebd0;
    color: #8a4b08;
}

.tip-admin-note {
    display: block;
    margin-top: .15rem;
    color: #8a4b08;
    font-size: .8rem;
}

.tip-bulk-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
    margin-top: 1rem;
}

.tip-bulk-category {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-left: auto;
}

/* ---- the showcase of a visitor: the tips by whom they are for, under the sign-in (Component/tip_showcase.latte) ---- */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

.showcase {
    margin: 2rem 0 1rem;
}

.showcase-intro {
    margin-bottom: 1.25rem;
    text-align: center;
}

.showcase-title {
    margin: 0 0 .4rem;
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--brand);
}

.showcase-lead {
    max-width: 40rem;
    margin: 0 auto 1rem;
    color: #55544f;
}

/* the choice of whom the gift is for: a row of pills, scrolled sideways on a phone and wrapped on a wide screen */
.showcase-chips {
    display: flex;
    gap: .5rem;
    padding: .25rem .1rem .5rem;
    overflow-x: auto;
    scrollbar-width: thin;
}

@media (min-width: 768px) {
    .showcase-chips {
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }
}

.showcase-chip {
    /* the colour of the section the chip leads to (the .showcase-tone-N classes set it) */
    --tone: #fff8e1;
    --tone-accent: #f0b429;
    flex: 0 0 auto;
    padding: .35rem .85rem;
    border-radius: 999px;
    background: var(--tone);
    border: 1px solid var(--tone-accent);
    color: var(--brand);
    font-weight: 700;
    font-size: .92rem;
    white-space: nowrap;
}

.showcase-chip:hover {
    filter: brightness(.95);
    text-decoration: none;
    color: var(--brand-dark);
}

/* the pages of the tips that are not TOP: one small grey button, the rest of them open under it (tip_landing_more.latte) */
.landing-more {
    margin: .1rem 0 .9rem;
}

.showcase-intro .landing-more {
    text-align: center;
}

.landing-more summary {
    display: inline-block;
    padding: .3rem .85rem;
    border-radius: 999px;
    background: #e3e6ea;
    border: 1px solid #c9ced5;
    color: #343a40;
    font-size: .9rem;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.landing-more summary::-webkit-details-marker {
    display: none;
}

.landing-more summary:hover {
    background: #d6dae0;
}

.landing-more-count {
    margin-left: .2rem;
    padding: 0 .4rem;
    border-radius: 999px;
    background: #fff;
    font-size: .8rem;
}

.landing-more-list {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .6rem;
}

.showcase-intro .landing-more-list {
    justify-content: center;
}

.landing-more-list a {
    padding: .25rem .75rem;
    border-radius: 999px;
    background: #f1f3f5;
    border: 1px solid #d6dae0;
    color: var(--brand);
    font-size: .88rem;
    font-weight: 600;
    white-space: nowrap;
}

.landing-more-list a:hover {
    background: #e3e6ea;
    text-decoration: none;
}

.showcase-section {
    --tone: #fff8e1;
    --tone-accent: #f0b429;
    margin: 0 0 1rem;
    padding: 1rem;
    border-radius: 14px;
    background: var(--tone);
    border: 1px solid rgba(0, 0, 0, .06);
    scroll-margin-top: 1rem;
}

.showcase-tone-1 { --tone: #e8f1fb; --tone-accent: #3d7fd1; }
.showcase-tone-2 { --tone: #fdecef; --tone-accent: #e0527a; }
.showcase-tone-3 { --tone: #e6f5ee; --tone-accent: #2f9e6e; }

.showcase-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .8rem;
}

.showcase-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: var(--tone-accent);
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.showcase-head-text {
    flex: 1 1 auto;
    min-width: 0;
}

.showcase-heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    line-height: 1.2;
}

.showcase-heading a {
    color: var(--brand);
}

.showcase-tagline {
    margin: .1rem 0 0;
    font-size: .9rem;
    color: #55544f;
}

.showcase-head .showcase-more {
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .15);
    color: var(--brand);
    font-weight: 700;
    white-space: nowrap;
}

.showcase-head .showcase-more:hover {
    background: var(--yellow-light);
    border-color: var(--yellow-hover);
    color: var(--brand-dark);
}

/* on a phone the button sits under the heading, so the heading keeps its room */
@media (max-width: 575px) {
    .showcase-head {
        flex-wrap: wrap;
    }

    .showcase-more {
        margin-left: 3.55rem;
    }
}

.showcase-section .tip-mini {
    box-shadow: 0 1px 3px rgba(0, 0, 0, .08);
    transition: transform .15s ease, box-shadow .15s ease;
}

.showcase-section .tip-mini:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .15);
}

@media (prefers-reduced-motion: reduce) {
    .showcase-section .tip-mini { transition: none; }
    .showcase-section .tip-mini:hover { transform: none; }
}

.showcase-cta {
    margin: 1.5rem 0 1rem;
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--yellow-light), #fff8e1);
    border: 1px solid rgba(0, 0, 0, .08);
    text-align: center;
}

.showcase-cta-title {
    margin: 0 0 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand);
}

.showcase-steps {
    display: grid;
    gap: .75rem;
    max-width: 52rem;
    margin: 0 auto 1.25rem;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

@media (min-width: 768px) {
    .showcase-steps {
        grid-template-columns: repeat(3, 1fr);
    }
}

.showcase-steps li {
    position: relative;
    padding: 2.4rem .9rem .8rem;
    border-radius: 10px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    counter-increment: step;
}

.showcase-steps li::before {
    content: counter(step);
    position: absolute;
    top: .6rem;
    left: 50%;
    transform: translateX(-50%);
    width: 1.7rem;
    height: 1.7rem;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    font-weight: 800;
    line-height: 1.7rem;
}

.showcase-cta-note {
    margin: .6rem 0 0;
    font-size: .85rem;
    color: #6b6a64;
}

/* the interests of the profile, under what people are into (Hudba, Čtení, ...) */
.profile-interest-group {
    margin: 0 0 .6rem;
    padding: 0;
    border: 0;
}

.profile-interest-group legend {
    margin: 0 0 .15rem;
    font-size: .9rem;
    font-weight: 700;
    color: var(--brand);
}

/* the TOP tips of a page of the tips: big blocks with the photo and the text, the photo on one side and then on the other */
.tip-top-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin: 1.25rem 0 1.75rem;
}

.tip-top {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1px solid #dedcd6;
    border-radius: 10px;
}

.tip-top-photo {
    position: relative;
}

.tip-top-media {
    display: block;
}

.tip-top-body {
    display: flex;
    flex-direction: column;
    padding: .25rem 1.1rem 1rem;
}

.tip-top-title {
    margin: 0 0 .5rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.tip-top-title a {
    color: var(--brand);
}

.tip-top-text {
    margin-bottom: .4rem;
    color: #33322e;
}

/* a long text is cut to a few lines; "Číst dál" opens it (js/tip-top.js) */
.tip-top-text.is-cut {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 6;
    line-clamp: 6;
    overflow: hidden;
}

.tip-top-text.is-cut.is-open {
    display: block;
    -webkit-line-clamp: unset;
    line-clamp: unset;
    overflow: visible;
}

.tip-top-expand {
    align-self: flex-start;
    margin-bottom: .6rem;
    font-weight: 700;
}

.tip-top .tip-card-actions {
    padding: .5rem 0 0;
}

/* the heading of the list that goes on under the TOP tips */
.tip-more-heading {
    margin: 1.5rem 0 1rem;
}

@media (min-width: 768px) {
    .tip-top {
        flex-direction: row;
        align-items: stretch;
    }

    /* every second block has the photo on the right */
    .tip-top:nth-child(even) {
        flex-direction: row-reverse;
    }

    .tip-top-photo {
        flex: 0 0 38%;
        max-width: 38%;
        display: flex;
    }

    .tip-top-media {
        flex: 1 1 auto;
    }

    /* a square photo, whatever the picture: a tall one (a tower, a poster) would stretch the whole block */
    .tip-top-media .tip-image {
        height: auto;
        aspect-ratio: 1 / 1;
    }

    /* the text starts at the top beside the photo whatever its length (a short one is not left in the middle) */
    .tip-top-body {
        flex: 1 1 auto;
        justify-content: flex-start;
        padding: 1.25rem 1.6rem;
    }
}

/* the heading over the TOP tips and the place of a tip among them (the medals of the steps of the winners) */
.tip-top-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
    margin: 1.5rem 0 .25rem;
    font-weight: 700;
}

.tip-top-heading-badge {
    padding: .25rem .85rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: .85rem;
    letter-spacing: .06em;
}

.tip-top-head {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .5rem;
}

.tip-top-head .tip-top-title {
    margin: 0;
}

.tip-top-label {
    margin: 0 0 .3rem;
    color: #b35c00;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
}

.tip-top-rank {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border: 2px solid rgba(0, 0, 0, .12);
    border-radius: 50%;
    background: #e9edf2;
    color: #3a4452;
    font-size: 1.3rem;
    font-weight: 800;
    line-height: 1;
}

.tip-top-rank-1 {
    background: #f6cf4a;
    color: #4a3500;
}

.tip-top-rank-2 {
    background: #d5dae1;
    color: #2f3a47;
}

.tip-top-rank-3 {
    background: #dea36a;
    color: #4a2a0a;
}

/* the end of a category: nothing more of ours, the way on is Heureka */
.tip-end {
    margin: 1.5rem 0;
    padding: 1.1rem 1.25rem;
    border: 1px dashed #cfc7ad;
    border-radius: 10px;
    background: #faf8f2;
    text-align: center;
}

.tip-end[hidden] {
    display: none;
}

.tip-end-text {
    margin-bottom: .75rem;
}

/* the small "i" after "Partnerský odkaz" sits in the line of the small text */
.affiliate-note .hint {
    min-width: 1.5rem;
    min-height: 1.25rem;
    vertical-align: middle;
}

/* ---- a short explanation in a popup (js/info-popup.js): "Proč si vyplnit profil?", the profile of a person ---- */
.info-popup-trigger {
    padding: 0;
    border: 0;
    background: none;
    color: var(--brand);
    font-size: .9rem;
    cursor: pointer;
}

.info-popup-trigger:hover {
    text-decoration: underline;
}

.info-popup {
    width: calc(100% - 1.5rem);
    max-width: 32rem;
    max-height: calc(100vh - 1.5rem);
    padding: 1.25rem 1.25rem 1rem;
    border: 0;
    border-radius: 14px;
    background: #fff;
    color: #333;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .4);
    overflow: auto;
}

.info-popup::backdrop {
    background: rgba(15, 20, 27, .6);
}

.info-popup-close {
    position: absolute;
    top: .5rem;
    right: .5rem;
    width: 2.2rem;
    height: 2.2rem;
    border: 0;
    border-radius: 50%;
    background: #eef1f5;
    color: #333;
    cursor: pointer;
}

.info-popup-title {
    margin: 0 2rem .75rem 0;
    font-size: 1.15rem;
    font-weight: 700;
}

.info-popup-facts {
    margin: 0;
}

.info-popup-facts dt {
    margin-top: .6rem;
    font-size: .8rem;
    font-weight: 600;
    color: #6b6a64;
}

.info-popup-facts dd {
    margin: 0;
    overflow-wrap: anywhere;
}

/* whose wish it is, above the title of the detail */
.wish-owner {
    margin-bottom: .35rem;
    color: var(--brand-dark);
}

.wish-owner.text-muted {
    color: #6c757d;
}

/* the icon next to a name that opens the profile of the person in a popup */
.person-profile-link {
    padding: .1rem .45rem;
    font-size: .85rem;
    vertical-align: middle;
}

/* "Ukázat" / "Skrýt" right after the sentence of the tips of a person, not on the far edge where it parts from the sentence: a folded line otherwise reads as the heading of the next person */
.tip-person > summary {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .25rem .5rem;
}

.tip-person-toggle {
    margin-left: .25rem;
    padding: .1rem .6rem;
    border-radius: 999px;
    background: #e9eff6;
    color: var(--brand);
    font-size: .8rem;
    font-weight: 600;
}

.tip-person-hide,
.tip-person[open] .tip-person-show {
    display: none;
}

.tip-person[open] .tip-person-hide {
    display: inline;
}

/* the buttons of a connection stand one under another, each with its short help */
.share-people-actions {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.share-action {
    display: flex;
    align-items: center;
    gap: .35rem;
}

.share-people-name {
    flex: 1 1 14rem;
}

/* the change against the period before (green: more, red: less) and the icon that opens the names behind a number */
.dash-tile-change {
    margin-left: .4rem;
    font-size: .85rem;
    font-weight: 700;
    color: #6b6a64;
    white-space: nowrap;
}

.dash-tile-change.is-up {
    color: #1b7f3b;
}

.dash-tile-change.is-down {
    color: #c0392b;
}

.dash-tile-detail {
    padding: 0 .25rem;
    border: 0;
    background: none;
    color: var(--brand);
    cursor: pointer;
}

.dash-detail-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.dash-detail-list li {
    padding: .35rem 0;
    border-bottom: 1px solid #eee;
}

.dash-detail-list li > span {
    display: block;
}

/* the number of the new wishes on the tab of the dashboard */
.dash-menu-count {
    display: inline-block;
    min-width: 1.4rem;
    margin-left: .35rem;
    padding: 0 .35rem;
    border-radius: 999px;
    background: #d9534f;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.4rem;
    text-align: center;
}

/* the list of the new wishes of the dashboard */
.dash-new-wishes {
    max-width: 48rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.dash-new-wishes li {
    padding: .4rem 0;
    border-bottom: 1px solid #eee;
}

.dash-new-wish-title {
    font-weight: 600;
    overflow-wrap: anywhere;
}

/* the proposed photo on the detail of a wish without one */
.image-suggestion {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem 1rem;
}

.image-suggestion-photo {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 8px;
    background: #fff;
    object-fit: contain;
}

.image-suggestion-body {
    flex: 1 1 14rem;
    min-width: 0;
}

.image-suggestion-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    margin-top: .5rem;
}

/* the buttons of the link stand under each other from the left edge; the box of the filter has the state button as tall as the two groups beside it */
.join-link-manage {
    flex-direction: column;
    align-items: flex-start;
}

.filter-icons {
    align-items: stretch;
}

.filter-menu {
    display: flex;
}

.filter-menu > summary {
    flex: 1;
}

/* the icons of the filter: as tall as the select beside them (38px), the icons bigger so that there is not so much empty space around them */
.filter-icons {
    align-items: center;
}

.filter-group {
    box-sizing: border-box;
    height: 38px;
    padding: 0;
    overflow: hidden;
}

.filter-group a.icon-action {
    display: flex;
    align-items: center;
    height: 100%;
    /* a phone gives every icon a 44 px minimum (css/discover.css): inside the 38 px group it would stick out below and the icon would sit low */
    min-height: 0;
    padding: 0 11px;
    border-radius: 0;
    font-size: 1.35rem;
    line-height: 1;
}

.filter-menu {
    display: block;
}

.filter-menu > summary {
    display: flex;
    align-items: center;
    box-sizing: border-box;
    height: 38px;
    padding: 0 12px;
    font-size: 1.35rem;
    line-height: 1;
}

/* the proposed photos on the detail of a wish without one: one card each, side by side as far as they fit */
.image-suggestion {
    display: block;
}

.image-suggestion-options {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    margin: .75rem 0;
}

.image-suggestion-option {
    display: flex;
    flex: 0 1 9rem;
    flex-direction: column;
    align-items: stretch;
    gap: .35rem;
    min-width: 0;
}

.image-suggestion-name {
    overflow-wrap: anywhere;
}

/* the page Doporuč Přeju si: the credits on the left, how they are earned next to them (a phone: under each other) */
.referral-hero {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1rem 1.1rem;
    border: 1px solid #e3e8ee;
    border-radius: 12px;
    background: #fff;
}

@media (min-width: 768px) {
    .referral-hero {
        grid-template-columns: 14rem 1fr;
        align-items: center;
    }
}

.referral-balance {
    text-align: center;
    padding: .75rem 1rem;
    border-radius: 10px;
    background: var(--brand);
    color: #fff;
}

.referral-balance-label {
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.referral-balance-value {
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
}

.referral-balance-note {
    margin: .25rem 0 0;
    font-size: .8rem;
    opacity: .9;
}

.referral-balance-note a {
    color: inherit;
    text-decoration: underline;
}

.referral-lead {
    font-size: 1.05rem;
    margin-bottom: .5rem;
}

.referral-quiet {
    margin: 0;
    font-size: .9rem;
    color: #555;
}

.referral-history {
    list-style: none;
    margin: 0;
    padding: 0;
}

.referral-history li {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem .75rem;
    padding: .35rem 0;
    border-bottom: 1px solid #e3e8ee;
}

.referral-history-amount {
    min-width: 3.5rem;
    font-weight: 700;
    color: #1e7e46;
}

.referral-history-amount.is-minus {
    color: #b03a2e;
}

/* the tree of the recommendations on the dashboard: every level is indented under the one above, with a line down the left */
.referral-tree,
.referral-tree ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.referral-tree ul {
    margin-left: .6rem;
    padding-left: 1rem;
    border-left: 2px solid #e3e8ee;
}

.referral-tree li {
    padding: .2rem 0;
}

.referral-tree-credits {
    display: inline-block;
    padding: 0 .45rem;
    border-radius: 999px;
    background: #e8f4ec;
    color: #1e7e46;
    font-size: .8rem;
    font-weight: 700;
}

/* Rubíny for a piece of feedback: the line in the piece and the form of the administrator */
.feedback-item-reward {
    margin: 0 0 .5rem;
    font-weight: 600;
}

.feedback-reward-form {
    margin-top: .75rem;
    padding-top: .5rem;
    border-top: 1px solid #dee2e6;
}

.feedback-reward-fields {
    display: flex;
    gap: .5rem;
    max-width: 16rem;
}

/* the ways of earning Rubíny on the page Rubíny, and the note about fair play */
.earn-list {
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.earn-list li {
    display: flex;
    align-items: center;
    gap: .75rem;
    padding: .55rem .25rem;
    border-bottom: 1px solid #dee2e6;
}

.earn-list li > .bi {
    flex-shrink: 0;
    width: 1.75rem;
    font-size: 1.35rem;
    text-align: center;
    color: #006aeb;
}

.earn-what {
    flex: 1;
    min-width: 0;
}

.earn-what small {
    display: block;
    color: #6c757d;
}

.earn-amount {
    flex-shrink: 0;
    font-weight: 700;
    white-space: nowrap;
    color: #1f6feb;
}

.earn-done {
    color: #1f9d6b;
    font-weight: 600;
}

.fair-play {
    margin-top: 1.5rem;
    padding: .9rem 1.1rem;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    background: #f8f9fa;
}

.fair-play h3 {
    margin-bottom: .5rem;
}

.fair-play .bi-heart-fill {
    color: #e0457b;
}

/* the values of the rewards in the dashboard */
.reward-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .4rem 0;
    border-bottom: 1px solid #dee2e6;
}

.reward-settings-row label {
    margin: 0;
}

.reward-settings-field {
    flex-shrink: 0;
    width: 11rem;
}

.reward-settings-field input {
    width: 6rem;
    display: inline-block;
}

/* the page Poklady (TreasuresPresenter): the game of the hidden rubies explained, with a sample treasure to click */
.treasures-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.treasures-hero-gem {
    flex: 0 0 auto;
    width: 6.5rem;
    height: 6.5rem;
    background: url("images/ruby.svg") center / contain no-repeat;
    filter: drop-shadow(0 0 14px rgba(255, 107, 143, .7));
}

.treasures-progress {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    color: #3d4b5c;
}

/* a piece of a page on the stage: the text a treasure lies in, as it looks on the site */
.treasures-stage {
    padding: 1rem 1.25rem;
    border: 1px solid #cdd6e2;
    border-radius: 10px;
    background: #fff;
    color: #2d3b48;
}

.treasures-stage p {
    margin: 0;
}

.treasures-stage .hidden-ruby:not(:disabled) {
    outline: 2px dashed rgba(224, 36, 94, .45);
    outline-offset: 3px;
    border-radius: 4px;
}

/* the row of gems: the same ruby, five sizes, each glinting after the other */
.treasures-gems {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 1.25rem;
    margin: 1.25rem 0 0;
}

.treasures-gem {
    display: block;
    background: url("images/ruby.svg") center / contain no-repeat;
}

.treasures-gem-1 { width: 1.1rem; height: 1.1rem; }
.treasures-gem-2 { width: 1.7rem; height: 1.7rem; }
.treasures-gem-3 { width: 2.6rem; height: 2.6rem; }
.treasures-gem-4 { width: 1.7rem; height: 1.7rem; }
.treasures-gem-5 { width: 1.1rem; height: 1.1rem; }

.treasures-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.treasures-steps li {
    display: flex;
    flex-direction: column;
    gap: .5rem;
}

.treasures-steps h3 {
    margin: .25rem 0 0;
    font-size: 1.1rem;
    font-weight: 800;
}

.treasures-steps p {
    margin: 0;
}

.treasures-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 9.5rem;
    text-align: center;
}

/* the sample of a glint: the gem a little bigger and with a glow, the moment the animation of the real one reaches */
.treasures-glint {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    background: url("images/ruby.svg") center / contain no-repeat;
    vertical-align: -.35em;
    filter: drop-shadow(0 0 5px #ff6b8f);
}

/* the sample of the pop-up: the real one lies on a page, here it is a picture in the flow */
.treasures-popup {
    position: static;
    transform: none;
    max-width: 100%;
    margin: 0;
}

.treasures-popup::after {
    display: none;
}

.treasures-balance {
    font-size: 1.6rem;
    font-weight: 800;
}

.treasures-rules {
    display: grid;
    gap: .6rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.treasures-rules li {
    display: flex;
    align-items: flex-start;
    gap: .75rem;
}

.treasures-rules .bi {
    flex: 0 0 auto;
    margin-top: .1rem;
    color: #e0245e;
    font-size: 1.25rem;
}

@media (prefers-reduced-motion: no-preference) {
    .treasures-hero-gem {
        animation: treasures-glow 3.2s ease-in-out infinite;
    }

    .treasures-gem {
        animation: treasures-gem-glint 4s ease-in-out infinite;
    }

    .treasures-gem-2 { animation-delay: .4s; }
    .treasures-gem-3 { animation-delay: .8s; }
    .treasures-gem-4 { animation-delay: 1.2s; }
    .treasures-gem-5 { animation-delay: 1.6s; }
}

@keyframes treasures-glow {
    0%, 100% { filter: drop-shadow(0 0 10px rgba(255, 107, 143, .5)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 22px rgba(255, 107, 143, .95)); transform: scale(1.06); }
}

@keyframes treasures-gem-glint {
    0%, 70%, 100% { transform: scale(1); filter: none; }
    80% { transform: scale(1.25); filter: drop-shadow(0 0 7px #ff6b8f); }
}

@media (max-width: 767.98px) {
    .treasures-steps {
        grid-template-columns: 1fr;
    }

    .treasures-visual {
        min-height: 0;
    }
}

@media (max-width: 575.98px) {
    .treasures-hero {
        flex-direction: column;
        align-items: flex-start;
        gap: .75rem;
    }

    .treasures-hero-gem {
        width: 4.5rem;
        height: 4.5rem;
    }
}
