body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
}

.status-dot {
    display: inline-block;
    width: .7rem;
    height: .7rem;
    border-radius: 50%;
}

/* ------------------------------------------------------------------ Dark theme
   Bootstrap 5.3 switches its own colours with data-bs-theme="dark"; these adjust the site's custom parts. */
[data-bs-theme="dark"] {
    --app-hero-from: #0a1430;
    --app-hero-mid: #10204a;
    --app-hero-to: #142a52;
    --app-hero-glow: rgba(56, 189, 248, .18);
    --bs-body-bg: #111418;
    --bs-tertiary-bg: #161a1f;
    --bs-secondary-bg: #1d2228;
}

[data-bs-theme="dark"] .navbar.bg-primary {
    background-color: #0f2a5c !important;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

[data-bs-theme="dark"] .card {
    --bs-card-bg: #1a1e24;
    --bs-card-border-color: rgba(255, 255, 255, .08);
}

[data-bs-theme="dark"] .shadow-sm {
    box-shadow: 0 .125rem .5rem rgba(0, 0, 0, .45) !important;
}

[data-bs-theme="dark"] footer {
    border-color: rgba(255, 255, 255, .08) !important;
}

/* The navbar is a shade darker than the top of the hero, with a soft shadow, so the two don't merge. */
[data-bs-theme="light"] .navbar.bg-primary {
    background-color: #0a58ca !important;
    box-shadow: 0 1px 0 rgba(0, 0, 0, .12), 0 .25rem .75rem rgba(0, 0, 0, .12);
}

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(60rem 30rem at 85% 30%, var(--app-hero-glow, rgba(45, 212, 191, .28)), transparent 70%),
        linear-gradient(135deg, var(--app-hero-from, #0d6efd) 0%, var(--app-hero-mid, #3b5bdb) 55%, var(--app-hero-to, #6741d9) 100%);
}

/* Home hero: big faint circles like on the news cards, chips, the trust line and the wave into the page below. */
.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, .07);
    pointer-events: none;
}
.hero::before { width: 520px; height: 520px; right: -120px; top: -160px; }
.hero::after { width: 300px; height: 300px; left: -110px; bottom: -150px; }
.hero-inner::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    right: 30%;
    bottom: -60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .05);
    pointer-events: none;
    z-index: -1;
}
.hero-brand { letter-spacing: .12em; color: rgba(255, 255, 255, .75); }
.hero-inner { padding-bottom: 5.5rem; }
.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .3rem .75rem;
    border-radius: 999px;
    font-size: .85rem;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    backdrop-filter: blur(4px);
}
.hero-trust { color: rgba(255, 255, 255, .85); }
.hero-wave {
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 100%;
    height: 4.5rem;
    fill: var(--bs-body-bg);
}

/* The app preview: a laptop with the member list and a phone with the fees in front of it. */
.hero-preview { position: relative; max-width: 38rem; margin: 0 auto 1rem; padding: 0 5.5rem 0 3.5rem; }
.hero-preview .mock-laptop { z-index: 1; }

/* Zora at the front corner of the laptop, with a speech bubble. */
.hero-zora { position: absolute; left: -4.6rem; bottom: -2.2rem; width: 8.2rem; height: 13.3rem; z-index: 3; }
.hero-zora .zora-greeter { position: absolute; left: 0; bottom: 0; height: 100%; filter: drop-shadow(0 .6rem .8rem rgba(0, 0, 0, .3)); }
.hero-zora-bubble {
    position: absolute;
    left: 2.4rem;
    top: -2.4rem;
    width: 9rem;
    padding: .4rem .6rem;
    border-radius: 1rem 1rem 1rem .25rem;
    background: #fff;
    color: #0b3d91;
    font-size: .72rem;
    font-weight: 600;
    line-height: 1.25;
    box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .2);
}
[data-bs-theme="dark"] .hero-zora-bubble { background: #1f2937; color: #cfe2ff; }

/* The logged-in user's organizations in the hero. */
.hero-org-card { position: relative; z-index: 1; border: 0; border-radius: 1rem; color: var(--bs-body-color); }
.hero-org-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: .7rem;
    background: var(--bs-primary-bg-subtle);
    color: var(--bs-primary-text-emphasis);
}
.hero-org-card .list-inline-item { margin-right: .9rem; }
.hero-blob {
    position: absolute;
    inset: 10% 0 0 15%;
    background: radial-gradient(circle at 40% 40%, rgba(255, 255, 255, .55), rgba(125, 211, 252, .25) 45%, transparent 70%);
    filter: blur(40px);
}
.hero-preview {
    --mock-bg: #fff;
    --mock-fg: #212529;
    --mock-muted: #6c757d;
    --mock-line: #e9ecef;
    --mock-soft: #f1f3f5;
    --mock-bezel: #1f2329;
    --mock-nav: #0d6efd;
    --mock-paid-bg: #d1e7dd;
    --mock-paid-fg: #0a3622;
    --mock-open-bg: #fff3cd;
    --mock-open-fg: #664d03;
}
[data-bs-theme="dark"] .hero-preview {
    --mock-bg: #1a1e24;
    --mock-fg: #dee2e6;
    --mock-muted: #9aa4ae;
    --mock-line: #2b3138;
    --mock-soft: #22272e;
    --mock-bezel: #05070a;
    --mock-nav: #0f2a5c;
    --mock-paid-bg: #0f3d2a;
    --mock-paid-fg: #75d6a5;
    --mock-open-bg: #3d3210;
    --mock-open-fg: #ffd866;
}
[data-bs-theme="dark"] .hero-blob { opacity: .35; }
.mock-laptop { position: relative; }
.mock-screen {
    background: var(--mock-bg);
    color: var(--mock-fg);
    border: .55rem solid var(--mock-bezel);
    border-bottom-width: .8rem;
    border-radius: .8rem .8rem .3rem .3rem;
    overflow: hidden;
    font-size: .68rem;
    box-shadow: 0 1.5rem 3rem rgba(0, 0, 0, .3);
}
.mock-base {
    height: .7rem;
    margin: 0 -7%;
    background: linear-gradient(#c9ced4, #8d939a);
    border-radius: 0 0 1rem 1rem;
    box-shadow: 0 .8rem 1.2rem rgba(0, 0, 0, .25);
}
[data-bs-theme="dark"] .mock-base { background: linear-gradient(#4a5058, #22262b); }
.mock-browser {
    display: flex;
    align-items: center;
    gap: .25rem;
    padding: .3rem .5rem;
    background: var(--mock-soft);
    border-bottom: 1px solid var(--mock-line);
}
.mock-browser i { width: .4rem; height: .4rem; border-radius: 50%; background: #ff5f57; }
.mock-browser i:nth-child(2) { background: #febc2e; }
.mock-browser i:nth-child(3) { background: #28c840; }
.mock-browser span {
    margin-left: .5rem;
    padding: .05rem .6rem;
    border-radius: 999px;
    background: var(--mock-bg);
    color: var(--mock-muted);
    font-size: .58rem;
}
.mock-nav { display: flex; justify-content: space-between; padding: .4rem .7rem; background: var(--mock-nav); color: #fff; }
.mock-nav-sm { justify-content: center; padding-top: 1.1rem; }
.mock-page { padding: .6rem .7rem .7rem; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .45rem; font-size: .85rem; }
.mock-btn { padding: .15rem .5rem; border-radius: .3rem; background: #0d6efd; color: #fff; font-size: .6rem; }
.mock-search {
    padding: .2rem .5rem;
    margin-bottom: .45rem;
    border: 1px solid var(--mock-line);
    border-radius: .3rem;
    color: var(--mock-muted);
}
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { color: var(--mock-muted); font-weight: 600; text-align: left; padding: .2rem .3rem; border-bottom: 1px solid var(--mock-line); }
.mock-table td { padding: .25rem .3rem; border-bottom: 1px solid var(--mock-line); white-space: nowrap; }
.mock-badge { padding: .05rem .4rem; border-radius: 999px; font-size: .58rem; font-weight: 600; }
.mock-badge.is-paid, .mock-dot.is-paid { background: var(--mock-paid-bg); color: var(--mock-paid-fg); }
.mock-badge.is-open, .mock-dot.is-open { background: var(--mock-open-bg); color: var(--mock-open-fg); }
.mock-phone {
    position: absolute;
    right: 0;
    bottom: -1.6rem;
    width: 9.5rem;
    z-index: 2;
    padding: .35rem;
    border-radius: 1.5rem;
    background: var(--mock-bezel);
    box-shadow: 0 1.2rem 2.5rem rgba(0, 0, 0, .4);
}
.mock-phone-screen {
    position: relative;
    overflow: hidden;
    border-radius: 1.2rem;
    background: var(--mock-bg);
    color: var(--mock-fg);
    font-size: .62rem;
    min-height: 15rem;
}
.mock-notch {
    position: absolute;
    top: .3rem;
    left: 50%;
    width: 2.6rem;
    height: .55rem;
    border-radius: 999px;
    background: var(--mock-bezel);
    transform: translateX(-50%);
}
.mock-progress-label { display: flex; justify-content: space-between; margin-bottom: .2rem; color: var(--mock-muted); }
.mock-progress { height: .35rem; border-radius: 999px; background: var(--mock-soft); margin-bottom: .5rem; overflow: hidden; }
.mock-progress span { display: block; height: 100%; background: linear-gradient(90deg, #20c997, #0d6efd); }
.mock-fee { display: flex; align-items: center; gap: .3rem; padding: .3rem 0; border-bottom: 1px solid var(--mock-line); }
.mock-fee span:first-child { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-fee-amount { font-weight: 600; }
.mock-dot { width: .45rem; height: .45rem; border-radius: 50%; }
.mock-upn {
    margin-top: .55rem;
    padding: .35rem;
    text-align: center;
    border: 1px dashed var(--mock-line);
    border-radius: .4rem;
    color: var(--mock-muted);
    letter-spacing: .05em;
}

/* News and ads on the home page: a clear border and a small padding around the content, the image inside rounded. */
.news-card,
.ad-card {
    --bs-card-border-color: var(--bs-border-color);
    padding: .5rem;
}

.news-card .news-item-image,
.ad-card .card-img-top {
    border-radius: var(--bs-border-radius);
}

.news-card .card-img-top,
.ad-card .card-img-top {
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.news-card:hover,
.ad-card:hover {
    border-color: var(--bs-primary);
}

.news-body p {
    line-height: 1.7;
}

/* Home page: one news item per row, cut off at a fixed height and faded out (news_more.js); "More" opens the whole
   item in a modal. The primary item is first and twice as tall, with a bigger image. Ads and the survey beside them. */
/* The news image is shown whole (contain), whatever its shape; a blurred, darker copy of it (--news-image, set in
   home/_news_item.html.twig) fills the space beside or above and below it. */
.news-image-frame {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 12rem;
    border-radius: var(--bs-border-radius);
    background: var(--bs-tertiary-bg);
}

.news-image-frame::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    background: var(--news-image) center / cover no-repeat;
    filter: blur(1.25rem) brightness(.7);
}

.news-image-frame > * {
    position: relative;
}

.news-item-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.news-item-text {
    position: relative;
    max-height: 13rem;
    overflow: hidden;
}

.news-item-text::after {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 3rem;
    background: linear-gradient(transparent, var(--bs-card-bg, var(--bs-body-bg)));
}

.news-item-text.is-full {
    max-height: none;
}

.news-item-text.is-full::after {
    display: none;
}

.news-primary .news-image-frame { min-height: 0; height: auto; aspect-ratio: 2 / 1; max-height: 24rem; }

/* On phones the image is above the text: a fixed 16:9 frame, so a portrait image doesn't make the item very tall. */
@media (max-width: 767.98px) {
    .news-image-frame { height: auto; aspect-ratio: 16 / 9; }
}
.news-primary .news-item-text { max-height: 9rem; }

.news-item-text p:last-child {
    margin-bottom: 0;
}

#home-ads .ad-card .card-img-top {
    aspect-ratio: 2 / 1;
}

/* Theme choices in the profile: small light/dark previews */
.theme-choice {
    border: 2px solid var(--bs-border-color);
}

.btn-check:checked + .theme-choice {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 .2rem rgba(13, 110, 253, .25);
}

.theme-preview {
    display: block;
    height: 4.5rem;
    padding: .5rem;
}

.theme-preview span {
    display: block;
    height: .6rem;
    border-radius: .3rem;
    margin-bottom: .4rem;
}

.theme-preview span:first-child {
    width: 60%;
    background: #0d6efd;
}

.theme-preview span:last-child {
    width: 85%;
}

.theme-preview-light {
    background: #f8f9fa;
}

.theme-preview-light span:last-child {
    background: #dee2e6;
}

.theme-preview-dark {
    background: #161a1f;
}

.theme-preview-dark span:first-child {
    background: #3d8bfd;
}

.theme-preview-dark span:last-child {
    background: #343a40;
}

.theme-preview-auto {
    background: linear-gradient(135deg, #f8f9fa 50%, #161a1f 50%);
}

.theme-preview-auto span:last-child {
    background: #6c757d;
}

/* Opinions carousel on the home page: controls on the card background, readable in both themes. */
.opinions-carousel { min-height: 12rem; }
.opinions-carousel .carousel-item { padding-bottom: 2.5rem !important; }
.opinions-carousel .carousel-control-prev-icon,
.opinions-carousel .carousel-control-next-icon { filter: invert(1) grayscale(100); }
.opinions-carousel .carousel-indicators [data-bs-target] { background-color: var(--bs-body-color); }
[data-bs-theme="dark"] .opinions-carousel .carousel-control-prev-icon,
[data-bs-theme="dark"] .opinions-carousel .carousel-control-next-icon { filter: none; }
.opinions-carousel blockquote p { font-size: 1.15rem; font-style: italic; }
.feedback-card textarea { resize: vertical; }
/* The subscription choice when registering an organization (templates/org/new.html.twig). */
/* The registration steps (templates/org/setup/_stepper.html.twig). */
.setup-step-number { width: 2rem; height: 2rem; }
.setup-step-line { height: 2px; min-width: 1rem; }
.setup-agreement-text { max-height: 22rem; }
.setup-agreement-text h2 { font-size: 1rem; font-weight: 600; margin-top: 1rem; }
.setup-agreement-text h2:first-child { margin-top: 0; }

.subscription-choice { cursor: pointer; }
.subscription-choice:has(:checked) { border-color: var(--bs-primary); box-shadow: 0 0 0 .15rem rgba(var(--bs-primary-rgb), .25); }

/* Help chat (templates/_help_chat.html.twig) */
.help-chat { position: fixed; right: 1rem; bottom: 1rem; z-index: 1080; }
.help-chat-panel { position: absolute; right: 0; bottom: 0; width: min(24rem, calc(100vw - 2rem)); max-height: min(36rem, calc(100vh - 2rem)); display: flex; flex-direction: column; }
.help-chat.is-open .help-chat-toggle { visibility: hidden; }
.help-chat-log { overflow-y: auto; flex: 1 1 auto; display: flex; flex-direction: column; gap: .5rem; }
.help-msg { padding: .5rem .75rem; border-radius: 1rem; max-width: 90%; white-space: pre-line; }
.help-msg-bot { background: var(--bs-secondary-bg); align-self: flex-start; border-bottom-left-radius: .25rem; }
.help-msg-user { background: var(--bs-primary); color: #fff; align-self: flex-end; border-bottom-right-radius: .25rem; }
.help-ai-label, .help-chat-disclosure { font-size: .75rem; }
.help-avatar { border-radius: 50%; flex: none; }
.zora-avatar { display: inline-block; overflow: hidden; background: radial-gradient(circle at 50% 35%, #fff, #d6e6f5 75%); box-shadow: inset 0 0 0 1px rgba(13, 110, 253, .15); }
.zora-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Zora beside the open chat (help/_zora_greeter.html.twig): she sways, waves now and then while turning her head and
   eyes to the chat, and blinks. */
.zora-greeter-wrap { display: none; position: absolute; right: calc(min(24rem, 100vw - 2rem) - .5rem); bottom: 0; width: 13rem; height: min(21.1rem, calc(100vh - 4rem)); pointer-events: none; }
@media (min-width: 992px) and (min-height: 600px) {
    .help-chat.is-open .zora-greeter-wrap { display: block; animation: zora-in .4s ease-out; }
}
.zora-greeter { width: 100%; height: 100%; }
.zora-body { transform-box: view-box; transform-origin: 100px 205px; animation: zora-sway 6s ease-in-out infinite; }
.zora-wave { transform-box: view-box; transform-origin: 146px 154px; animation: zora-wave 5s ease-in-out infinite; }
.zora-wave-hand { transform-box: view-box; transform-origin: 162px 130px; animation: zora-wave-hand 5s ease-in-out infinite; }
.zora-head { transform-box: view-box; transform-origin: 100px 112px; animation: zora-turn 5s ease-in-out infinite; }
.zora-greeter .zora-look { animation: zora-glance 5s ease-in-out infinite; }
.zora-greeter :is(.zora-yaw-features, .zora-yaw-fringe, .zora-yaw-face, .zora-yaw-back, .zora-yaw-ear-near, .zora-yaw-ear-far) { transform-box: view-box; transform-origin: 100px 66px; }
.zora-greeter .zora-yaw-features { transform-origin: 100px 66px; animation: zora-yaw-features 5s ease-in-out infinite; }
.zora-greeter .zora-yaw-face { transform-origin: 80px 66px; animation: zora-yaw-face 5s ease-in-out infinite; }
.zora-greeter .zora-yaw-fringe { transform-origin: 80px 66px; animation: zora-yaw-fringe 5s ease-in-out infinite; }
.zora-greeter .zora-yaw-back { animation: zora-yaw-back 5s ease-in-out infinite; }
.zora-greeter .zora-yaw-ear-near { transform-box: fill-box; transform-origin: center; animation: zora-yaw-ear-near 5s ease-in-out infinite; }
.zora-greeter .zora-yaw-ear-far { transform-box: fill-box; transform-origin: center; animation: zora-yaw-ear-far 5s ease-in-out infinite; }
.zora-greeter .zora-yaw-side { animation: zora-yaw-side 5s ease-in-out infinite; }
.zora-eyes { transform-box: fill-box; transform-origin: center; animation: zora-blink 4.5s infinite; }
/* Her dance after "Yes, it helped" (help_chat.js): the rendered animation in place of the drawn Zora, standing on the
   stack of books that stays where it is, or small in the chat. */
.zora-greeter-wrap.is-dancing .zora-greeter > g:not(.zora-books) { visibility: hidden; }
.zora-dance { position: absolute; bottom: calc(35% - 1.6rem); left: 49%; width: 22.5rem; max-width: none; transform: translateX(-46.5%); animation: zora-dance-in .3s ease-out; }
@keyframes zora-dance-in { from { opacity: 0; } }
.zora-dance.zora-dance-inline { position: static; display: block; width: 9rem; margin: .25rem auto 0; transform: none; }
/* Thinking after "No, it did not help" (help_chat.js): her chin on her hand, the head tilted, the eyes up at a thought
   cloud with Bootstrap's growing dots. */
.zora-think-arm, .zora-thought { display: none; }
.is-thinking .zora-wave { display: none; }
.is-thinking .zora-think-arm { display: inline; }
.is-thinking .zora-head { animation: zora-ponder 3s ease-in-out infinite; }
.is-thinking .zora-greeter [class*="zora-yaw-"] { animation: none; }
.zora-greeter-wrap.is-thinking .zora-greeter .zora-look { animation: none; transform: translate(1px, -1.5px); }
.is-thinking .zora-thought { display: block; position: absolute; left: 42%; top: -2.2rem; width: 6.5rem; height: 4.2rem; animation: zora-thought-in .5s ease-out; }
.zora-thought-cloud { position: absolute; right: 0; top: 0; display: flex; gap: .3rem; align-items: center; padding: .7rem .85rem; background: #fff; border-radius: 1.4rem; box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .18); isolation: isolate; }
.zora-thought-cloud::before, .zora-thought-cloud::after { content: ""; position: absolute; background: #fff; border-radius: 50%; z-index: -1; }
.zora-thought-cloud::before { width: 1.7rem; height: 1.7rem; left: .35rem; top: -.65rem; }
.zora-thought-cloud::after { width: 1.3rem; height: 1.3rem; right: .45rem; top: -.45rem; }
.zora-thought-cloud .spinner-grow { width: .6rem; height: .6rem; --bs-spinner-animation-speed: 1.1s; }
.zora-thought-cloud .spinner-grow:nth-child(2) { animation-delay: .25s; }
.zora-thought-cloud .spinner-grow:nth-child(3) { animation-delay: .5s; }
.zora-thought-puff { position: absolute; background: #fff; border-radius: 50%; box-shadow: 0 .15rem .4rem rgba(0, 0, 0, .15); animation: zora-puff 1.6s ease-in-out infinite; }
.zora-thought-puff-1 { width: .4rem; height: .4rem; left: .7rem; bottom: .15rem; }
.zora-thought-puff-2 { width: .6rem; height: .6rem; left: 1.25rem; bottom: .75rem; animation-delay: .3s; }
/* Reading the help file while Zora writes her answer ("Ask Zora", help_chat.js): the board comes up in front of her,
   the head bends to it, the eyes run along the lines, and the same thought cloud. */
.zora-clipboard { transform-box: view-box; transform-origin: 64px 160px; transition: transform .5s ease-out; }
.zora-board { transform-box: view-box; transform-origin: 91px 171px; transition: transform .5s ease-out; }
.is-reading .zora-clipboard { transform: rotate(-30deg); }
.is-reading .zora-board { transform: translate(7px, 9px) rotate(44deg); }
.is-reading .zora-board-shadow { opacity: 0; }
.is-reading .zora-wave, .is-reading .zora-wave-hand, .is-reading .zora-greeter [class*="zora-yaw-"] { animation: none; }
.is-reading .zora-head { animation: none; transform: translateX(-1px) rotate(-6deg); transition: transform .5s ease-out; }
.zora-greeter-wrap.is-reading .zora-greeter .zora-look { animation: zora-read 1.6s ease-in-out infinite; }
.is-reading .zora-thought { display: block; position: absolute; left: 42%; top: -2.2rem; width: 6.5rem; height: 4.2rem; animation: zora-thought-in .5s ease-out; }
@keyframes zora-read { 0%, 100% { transform: translate(-1.6px, 1.6px); } 70% { transform: translate(.6px, 1.6px); } 85% { transform: translate(-1.6px, 2px); } }
@keyframes zora-ponder { 0%, 100% { transform: translateX(1px) rotate(4deg); } 50% { transform: translateX(1px) rotate(6.5deg); } }
@keyframes zora-thought-in { from { opacity: 0; transform: translateY(.6rem) scale(.8); } }
@keyframes zora-puff { 50% { transform: translateY(-.15rem); } }
@keyframes zora-in { from { opacity: 0; transform: translateX(1.5rem); } }
@keyframes zora-sway { 50% { transform: rotate(1.2deg); } }
/* A cheerful wave: the forearm lifts and swings three times, the open hand wiggles against it at the wrist. */
@keyframes zora-wave { 0%, 56%, 100% { transform: rotate(0); } 62% { transform: rotate(-24deg); } 67%, 77%, 87% { transform: rotate(-8deg); } 72%, 82% { transform: rotate(-26deg); } 92% { transform: rotate(-20deg); } }
@keyframes zora-wave-hand { 0%, 58%, 96%, 100% { transform: rotate(0); } 64%, 74%, 84% { transform: rotate(12deg); } 69%, 79%, 89% { transform: rotate(-14deg); } }
/* In step with zora-wave: the head turns to her left (towards the chat) with a small tilt, and the eyes follow. The
   turn is drawn in 2D: the features slide towards the chat and come closer together, the face narrows, the far ear
   hides behind the cheek, the near ear and the side of the head come into view and the hair behind moves the other way. */
@keyframes zora-turn { 0%, 56%, 100% { transform: rotate(0); } 64%, 92% { transform: translateX(2px) rotate(5deg); } }
@keyframes zora-yaw-features { 0%, 56%, 100% { transform: none; } 64%, 92% { transform: translateX(2.6px) scaleX(.92); } }
@keyframes zora-yaw-fringe { 0%, 56%, 100% { transform: none; } 64%, 92% { transform: translateX(.6px) scaleX(.97); } }
@keyframes zora-yaw-face { 0%, 56%, 100% { transform: none; } 64%, 92% { transform: scaleX(.95); } }
@keyframes zora-yaw-back { 0%, 56%, 100% { transform: none; } 64%, 92% { transform: translateX(-2.2px); } }
@keyframes zora-yaw-ear-near { 0%, 56%, 100% { transform: none; } 64%, 92% { transform: translateX(1.6px) scaleX(1.25); } }
@keyframes zora-yaw-ear-far { 0%, 56%, 100% { transform: none; opacity: 1; } 64%, 92% { transform: translateX(-3.5px); opacity: 0; } }
@keyframes zora-yaw-side { 0%, 56%, 100% { opacity: 0; } 64%, 92% { opacity: .3; } }
@keyframes zora-glance { 0%, 56%, 100% { transform: translateX(0); } 62%, 94% { transform: translateX(1.2px); } }
@keyframes zora-blink { 0%, 94%, 100% { transform: scaleY(1); } 97% { transform: scaleY(.1); } }
@media (prefers-reduced-motion: reduce) {
    .zora-greeter-wrap, .zora-dance, .zora-thought, .zora-thought-puff, .zora-clipboard, .zora-board, .zora-body, .zora-wave, .zora-wave-hand, .zora-head, .zora-greeter .zora-look, .zora-eyes, .zora-greeter [class*="zora-yaw-"] { animation: none !important; }
}

/* The honeypot field of App\Form\HoneypotType: off screen for people, still there for bots. */
.honeypot { position: absolute; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------------ Phones and tablets
   Bootstrap breakpoints: phones < 768px, tablets 768–1199px (portrait and landscape), computers from 1200px.
   The layout adapts to the screen (and to touch input), not to a guessed device type. */

/* Notched phones (viewport-fit=cover): keep content and the help button clear of the rounded corners. */
body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
}

footer {
    padding-bottom: calc(1rem + env(safe-area-inset-bottom)) !important;
}

.help-chat {
    right: calc(1rem + env(safe-area-inset-right));
    bottom: calc(1rem + env(safe-area-inset-bottom));
}

/* Navbar folded under the menu button (below 1200px): a long menu scrolls instead of running off the screen. */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        max-height: calc(100dvh - 4rem);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .navbar-collapse .navbar-nav .nav-link {
        padding-top: .6rem;
        padding-bottom: .6rem;
    }

    .navbar-collapse .dropdown-menu {
        border: 0;
        background: rgba(255, 255, 255, .08);
        --bs-dropdown-link-color: #fff;
        --bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);
        --bs-dropdown-header-color: rgba(255, 255, 255, .75);
        --bs-dropdown-divider-bg: rgba(255, 255, 255, .2);
        color: rgba(255, 255, 255, .85);
    }

    .navbar-collapse .dropdown-menu .text-body-secondary {
        color: rgba(255, 255, 255, .7) !important;
    }

    .navbar-collapse .navbar-nav:last-child {
        padding: .5rem 0;
        border-top: 1px solid rgba(255, 255, 255, .2);
    }
}

/* Organization menu folded under its button on phones and tablets (templates/org/_layout.html.twig). */
.org-nav-icon {
    width: 1.25rem;
    height: 1.25rem;
    filter: invert(.5);
}

[data-bs-theme="dark"] .org-nav-icon {
    filter: invert(.8);
}

/* Phones */
@media (max-width: 767.98px) {
    h1, .h1 { font-size: 1.6rem; }
    .h3 { font-size: 1.35rem; }
    .display-4 { font-size: 2.4rem; }
    .display-6 { font-size: 1.8rem; }

    .card-body { padding: .9rem; }

    /* Wide tables scroll sideways inside their card instead of widening the page. */
    .table-responsive { -webkit-overflow-scrolling: touch; }
    .table { font-size: .9rem; }
    .table > :not(caption) > * > * { padding: .45rem .5rem; }

    /* Dialog buttons share the full width. */
    .modal-footer .btn { flex: 1 1 auto; }

    /* The help chat takes the whole screen. */
    .help-chat.is-open {
        inset: 0;
    }

    .help-chat.is-open .help-chat-panel {
        position: fixed;
        inset: 0;
        width: 100%;
        max-height: none;
        height: 100dvh;
        border-radius: 0;
        padding-bottom: env(safe-area-inset-bottom);
    }

    .help-chat-toggle .fw-semibold { display: none; }
    .help-chat-toggle { padding-right: .25rem !important; }

    #announcement-banners .alert,
    #verify-email-banner { font-size: .9rem; }
}

/* Touch screens (phones and tablets): fingers need larger targets than a mouse pointer, and iOS zooms into
   form fields with text smaller than 16px. */
@media (pointer: coarse) {
    .form-control,
    .form-select,
    .form-control-sm,
    .form-select-sm,
    .input-group-sm > .form-control,
    .input-group-sm > .form-select {
        font-size: 1rem;
    }

    .btn-sm {
        min-height: 2.25rem;
        padding-left: .7rem;
        padding-right: .7rem;
    }

    .btn:not(.btn-close),
    .page-link {
        min-height: 2.75rem;
        display: inline-flex;
        align-items: center;
    }

    .list-group-item-action,
    .dropdown-item,
    .nav-link {
        min-height: 2.75rem;
        display: flex;
        align-items: center;
    }

    .btn:not(.btn-close) { justify-content: center; }

    .form-check-input {
        width: 1.25em;
        height: 1.25em;
    }

    .btn-close { padding: .75rem; }

    /* No hover on touch: keep hover-only effects from sticking after a tap. */
    .news-card:hover,
    .ad-card:hover {
        border-color: var(--bs-card-border-color);
    }
}

/* WhatsApp share buttons on the mass messages page, in WhatsApp's green (dark text passes the contrast check). */
.btn-whatsapp {
    --bs-btn-color: #0b3d1f;
    --bs-btn-bg: #25d366;
    --bs-btn-border-color: #25d366;
    --bs-btn-hover-color: #0b3d1f;
    --bs-btn-hover-bg: #1ebe5a;
    --bs-btn-hover-border-color: #1ebe5a;
    --bs-btn-active-color: #0b3d1f;
    --bs-btn-active-bg: #1aa94f;
    --bs-btn-active-border-color: #1aa94f;
    --bs-btn-focus-shadow-rgb: 37, 211, 102;
}
.whatsapp-icon { flex-shrink: 0; }

/* Subscription plans that the administrator disabled: still shown, greyed; clicking explains why (plan_unavailable.js). */
.plan-disabled {
    cursor: not-allowed;
    filter: grayscale(1);
    opacity: .55;
}

/* Help center: "… more" unfolds an article on the index; the label follows the collapse state. */
.help-more[aria-expanded="true"] .help-more-label,
.help-more[aria-expanded="false"] .help-less-label { display: none; }
.help-article-body h2 { font-size: .95rem; margin-top: 1rem; }
.help-article-body p:last-child, .help-article-body ul:last-child { margin-bottom: .25rem; }

/* The administrators' platform overview in the home hero. */
.hero-stat { padding: .6rem .3rem; border-radius: .7rem; background: var(--bs-tertiary-bg); height: 100%; }

/* A public discount on the subscription (templates/home/_public_discount.html.twig): under the survey it fills the
   space beside the news down to the bottom of the last news item. */
.home-discount {
    flex: 1 1 auto;
    color: #fff;
    border: 0;
    background: radial-gradient(circle at 85% 15%, rgba(255, 255, 255, .25), transparent 40%), linear-gradient(135deg, #fd7e14, #d63384 70%, #6f42c1);
}
.home-discount-kicker { letter-spacing: .08em; opacity: .85; }
.home-discount-percent { font-size: 3.2rem; line-height: 1; font-weight: 800; text-shadow: 0 .15rem .5rem rgba(0, 0, 0, .2); }
.home-discount-left { background: rgba(255, 255, 255, .22); color: #fff; font-size: .85rem; }
/* The percent and the days left of a public discount on a plan card. */
.public-discount-ribbon { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .35rem .25rem .25rem; margin-bottom: .35rem; border-radius: 999px; background: linear-gradient(135deg, #fd7e14, #d63384); color: #fff; font-size: .85rem; font-weight: 600; }
.public-discount-percent { padding: .1rem .55rem; border-radius: 999px; background: #fff; color: #d63384; font-size: 1.05rem; font-weight: 800; }
.public-discount-left { padding-right: .35rem; }

/* On large screens the news and the side column end on one line: the side column's last box (the discount) grows to
   the bottom of the news, and when the side column is the taller one the other news items grow instead. */
@media (min-width: 992px) {
    #home-news { display: flex; flex-direction: column; }
    #home-news > .news-card:not(.news-primary) { flex: 1 1 auto; }
    #home-news > .news-card:not(.news-primary) > .row { height: 100%; }
    #home-news > .news-card:last-of-type, #home-side > :last-child { margin-bottom: 0 !important; }
}

/* News images in the lightbox (templates/news/_image.html.twig, _gallery.html.twig, assets/lightbox.js). */
.news-image-link { display: block; height: 100%; cursor: zoom-in; }
.news-gallery-carousel { max-width: 32rem; background: var(--bs-tertiary-bg); }
.news-gallery-image { height: 14rem; object-fit: cover; cursor: zoom-in; }
.news-gallery-carousel .carousel-indicators { margin-bottom: .4rem; }
.goverlay { background: rgba(0, 0, 0, .92); }
/* The "i" of info popovers (templates/_info.html.twig) and the icons of input groups. */
.info-popover{display:inline-flex;vertical-align:-.1em;cursor:help;font-size:.95em}
.info-popover:focus-visible{outline:2px solid var(--bs-primary);outline-offset:2px;border-radius:50%}
.popover{--bs-popover-max-width:20rem;font-size:.875rem}
.input-group-text .bi{width:1em;height:1em}

/* File fields (file_widget in templates/form/input_group.html.twig): the hidden input comes first, so the button gets
   the group's left corners; it shows the focus of the input. */
.file-input>[data-file-input-button]{margin-left:0!important;border-top-left-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}
.file-input>[data-file-input-button] .bi{vertical-align:-.125em}
.file-input>input:focus-visible+[data-file-input-button]{box-shadow:0 0 0 .25rem rgba(var(--bs-primary-rgb),.25);z-index:5}
.file-input>[data-file-input-name]{cursor:pointer}

/* The main menu is fixed to the top and the footer to the bottom of the window, as in Bootstrap's "navbar-fixed" and
   "navbar-bottom" examples (templates/_navbar.html.twig, templates/base.html.twig). The page keeps room for both:
   assets/app.js keeps their heights in --app-navbar-height and --app-footer-height. Links to #anchors stop below the
   menu; the help chat sits above the footer. */
body{padding-top:var(--app-navbar-height,3.5rem);padding-bottom:var(--app-footer-height,2.5rem)}
html{scroll-padding-top:calc(var(--app-navbar-height,3.5rem) + 1rem)}
.app-footer{z-index:1029}
.app-footer{padding-bottom:calc(.5rem + env(safe-area-inset-bottom))!important}
.help-chat:not(.is-open){bottom:calc(var(--app-footer-height,0px) + .75rem)}
@media (min-width:768px){
    .help-chat.is-open{bottom:calc(var(--app-footer-height,0px) + .75rem)}
    .help-chat-panel{max-height:min(36rem,calc(100dvh - var(--app-footer-height,0px) - 6rem))}
}

/* Required form fields: a red * after the label (Symfony adds the "required" class to their labels), explained by the
   note at the top of the form (form_start in templates/form/input_group.html.twig). */
.form-label.required::after,
.col-form-label.required::after,
.form-check-label.required::after,
legend.required::after {
    content: " *";
    color: var(--bs-danger);
}

.form-required-note .text-danger { font-weight: 600; }

/* Documents → Header, footer and stamp: drop zones for the images (assets/file_drop.js) and the A4 preview
   (assets/document_layout.js). */
.file-drop-zone { border: 2px dashed var(--bs-border-color); border-radius: .5rem; padding: .75rem 1rem; transition: border-color .15s, background-color .15s; }
.file-drop-zone.is-dragover { border-color: var(--bs-primary); background-color: var(--bs-primary-bg-subtle); }
.file-drop-preview { width: 7rem; height: 4.5rem; display: flex; align-items: center; justify-content: center; background: var(--bs-tertiary-bg); border-radius: .375rem; overflow: hidden; }
.file-drop-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.layout-preview-sticky { position: sticky; top: calc(var(--app-navbar-height, 4rem) + 1rem); }
.layout-preview { aspect-ratio: 210 / 297; max-width: 26rem; margin: 0 auto; background: #fff; color: #222; border: 1px solid var(--bs-border-color); display: flex; flex-direction: column; padding: 4% 7%; font-size: .55rem; line-height: 1.3; }
.layout-preview-header, .layout-preview-footer { min-height: 8%; display: flex; align-items: center; gap: 4%; }
.layout-preview-footer { margin-top: auto; border-top: 1px solid #bbb; padding-top: 2%; font-size: .48rem; color: #555; }
.layout-preview-header img { max-height: 3.2rem; max-width: 40%; }
.layout-preview-footer img { max-height: 1.8rem; max-width: 30%; }
.layout-preview [data-part-text] { white-space: pre-line; flex: 1; }
.layout-preview-body { padding: 6% 0; }
.layout-preview-title { height: .7rem; width: 55%; background: #d0d4d9; border-radius: 2px; margin-bottom: 6%; }
.layout-preview-line { height: .35rem; background: #e5e8eb; border-radius: 2px; margin-bottom: 3%; }
.layout-preview-stamp { margin-top: 8%; min-height: 1px; }
.layout-preview-stamp img { max-height: 3.4rem; max-width: 30%; }

/* Toasts of new notifications (templates/_toasts.html.twig): below the navbar, above the help chat and modals' backdrop. */
.app-toasts { margin-top: 3.75rem; z-index: 1090; }

/* The membership card preview in its dialogs (org/members/_card_preview.html.twig): the PDF card (85.6 × 54 mm,
   MembershipCard) scaled to the width of the column, 1 mm = 1.168cqw; the colors of the theme in data-theme. */
.mc-preview[data-theme="light"] {
    --mc-paper: var(--mc-light-paper); --mc-back: var(--mc-light-back); --mc-band: var(--mc-light-band);
    --mc-band-text: var(--mc-light-band-text); --mc-text: var(--mc-light-text); --mc-label: var(--mc-light-label);
    --mc-accent: var(--mc-light-accent); --mc-line: var(--mc-light-line);
}
.mc-preview[data-theme="dark"] {
    --mc-paper: var(--mc-dark-paper); --mc-back: var(--mc-dark-back); --mc-band: var(--mc-dark-band);
    --mc-band-text: var(--mc-dark-band-text); --mc-text: var(--mc-dark-text); --mc-label: var(--mc-dark-label);
    --mc-accent: var(--mc-dark-accent); --mc-line: var(--mc-dark-line);
}
.mc-card {
    container-type: inline-size; position: relative; aspect-ratio: 85.6 / 54; overflow: hidden;
    background: var(--mc-paper); color: var(--mc-text); border: 1px solid var(--bs-border-color);
    border-radius: 3.5cqw; box-shadow: var(--bs-box-shadow-sm); transition: background-color .2s, color .2s;
}
.mc-card small { display: block; font-size: 1.95cqw; color: var(--mc-label); text-transform: uppercase; line-height: 1.3; }
.mc-band {
    position: absolute; inset: 0 0 auto 0; height: 16.4cqw; background: var(--mc-band); color: var(--mc-band-text);
    display: flex; align-items: center; gap: 2.5cqw; padding: 0 4.7cqw 0 4cqw;
}
.mc-logo { max-height: 11.7cqw; max-width: 16cqw; }
.mc-initials {
    flex: none; width: 10.5cqw; height: 10.5cqw; border-radius: 50%; background: var(--mc-accent); color: var(--mc-band);
    display: grid; place-items: center; font-size: 3.8cqw; font-weight: 700;
}
.mc-org { flex: 1; min-width: 0; font-size: 3.1cqw; line-height: 1.2; text-transform: uppercase; }
.mc-org strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mc-org small { color: var(--mc-band-text); font-size: 2.1cqw; margin-top: .6cqw; }
.mc-year { color: var(--mc-accent); font-size: 5cqw; font-weight: 700; }
.mc-name { position: absolute; left: 5.8cqw; right: 5.8cqw; top: 22.2cqw; }
.mc-name strong { display: block; font-size: 4.9cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-position { display: inline-block; margin-top: .9cqw; padding: .45cqw 1.9cqw; border-radius: 1.2cqw; font-style: normal; font-weight: 700; font-size: 2.4cqw; text-transform: uppercase; }
.mc-fields { position: absolute; left: 5.8cqw; right: 5.8cqw; top: 42cqw; display: grid; grid-template-columns: 1.3fr 1.5fr 1fr; gap: 1cqw; }
.mc-fields strong { display: block; font-size: 3.5cqw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-stripe { position: absolute; inset: auto 0 0 0; height: 2.34cqw; background: var(--mc-accent); }
.mc-stripe-band { background: var(--mc-band); }
.mc-back { background: var(--mc-back); }
.mc-details { position: absolute; left: 5.8cqw; top: 4.7cqw; width: 58cqw; display: flex; flex-direction: column; font-size: 2.3cqw; line-height: 1.35; }
.mc-details strong { font-size: 2.9cqw; text-transform: uppercase; margin-bottom: 1cqw; }
.mc-qr {
    position: absolute; right: 5.3cqw; top: 4.7cqw; width: 30.8cqw; text-align: center; color: #000;
}
.mc-qr svg { width: 100%; height: auto; background: #fff; padding: 1.4cqw; }
.mc-qr small { margin-top: 1cqw; text-transform: none; }
.mc-signature {
    position: absolute; left: 5.8cqw; top: 52.6cqw; width: 39.7cqw; border-top: 1px solid var(--mc-line);
    font-size: 1.95cqw; color: var(--mc-label); padding-top: .6cqw;
}

/* Board and access → Access by role: on (blue), off (an empty grey outline) and locked (striped, with a lock: fixed by
   the rules, cannot be changed), so the three never look alike. View and Edit of a role share a cell split by a line. */
.access-table th.access-role { min-width: 0; white-space: normal; line-height: 1.2; }
/* Compact cells so the table fits the page on a laptop; it only scrolls sideways on narrow screens. */
.access-table > :not(caption) > * > * { padding: .3rem .35rem; }
.access-table thead th:not(.access-role) { font-size: .8rem; font-weight: 500; }
/* Every View and Edit cell is the same width; the long role names wrap above them, the area column takes the rest. */
.access-table tbody td, .access-table thead tr + tr th { width: 4.25rem; }
.access-table tbody th, .access-table tbody td:first-child { min-width: 7rem; }
.access-table td.access-view, .access-table th.access-view { border-left: 2px solid var(--bs-border-color); }
.access-table td:not(.access-view) { border-left: 1px dashed var(--bs-border-color); }
/* Bootstrap's .form-switch leaves 2.5em on the left for a label; the switches here have none, so the View and Edit
   cells shrink to the switch. */
.access-table .form-switch { padding-left: 0; margin: 0; min-height: 0; display: inline-flex; }
.access-table .form-switch .form-check-input { width: 2.1em; height: 1.1em; cursor: pointer; float: none; margin: 0; }
.access-table .form-switch .form-check-input:not(:checked):not(:disabled) { background-color: var(--bs-body-bg); border-color: var(--bs-secondary-color); }
.access-switch-locked { display: inline-flex; align-items: center; gap: .3rem; color: var(--bs-secondary-color); cursor: not-allowed; }
.access-switch-locked .form-check-input:disabled { opacity: 1; cursor: not-allowed; border-color: var(--bs-secondary-color);
    background-color: var(--bs-secondary-color);
    background-image: var(--bs-form-switch-bg), repeating-linear-gradient(45deg, rgba(255, 255, 255, .25) 0 3px, transparent 3px 6px); }
.access-table td.access-cell-locked { background-color: var(--bs-tertiary-bg); }
/* Locked off: the empty switch, striped and greyed out (never allowed). */
.access-switch-locked .form-check-input:disabled:not(:checked) { background-color: var(--bs-secondary-bg); opacity: .75;
    background-image: var(--bs-form-switch-bg), repeating-linear-gradient(45deg, rgba(0, 0, 0, .08) 0 3px, transparent 3px 6px); }

/* The section titles of the organization's pages (card headers): all the same size and bold, like Access by role on
   Board and access (Bootstrap fs-5 fw-bold). */
.org-main .card-header { font-size: 1.25rem; font-weight: 700; }
.org-main .card-header .btn, .org-main .card-header .form-control, .org-main .card-header .form-select, .org-main .card-header .nav { font-weight: 400; }

/* Board and access → "i" of Officers and Bodies: the hierarchy of the bodies of a društvo (org/_structure_modal), drawn
   as an SVG with translated HTML boxes; on narrow screens it scrolls sideways instead of shrinking the text. */
.structure-diagram-wrap { overflow-x: auto; }
.structure-diagram { display: block; width: 100%; min-width: 760px; height: auto; font-family: inherit; }
.structure-box { box-sizing: border-box; height: 100%; padding: 10px 14px; border-radius: 10px; text-align: center; display: flex; flex-direction: column; justify-content: center; gap: 2px; font-size: 15px; line-height: 1.25; }
.structure-title { font-weight: 800; text-transform: uppercase; font-size: 20px; letter-spacing: .02em; }
.structure-subtitle { font-size: 15px; opacity: .9; margin-bottom: 4px; }
.structure-line { font-size: 14px; }
.structure-assembly { background: #1f5fae; color: #fff; border: 3px solid #7fd3ff; box-shadow: 0 0 18px rgba(127, 211, 255, .8); }
.structure-board { background: #13294b; color: #fff; border: 2px solid #3f78b8; justify-content: flex-start; padding-top: 18px; gap: 8px; text-align: left; }
.structure-board .structure-title, .structure-board .structure-subtitle { text-align: center; }
.structure-supervisory { background: #d8ecfa; color: #13294b; border: 2px solid #13294b; }
.structure-officers { background: #eef6fc; color: #13294b; border: 2px dashed #13294b; }
.structure-label { font-size: 15px; font-weight: 600; color: #13294b; line-height: 1.2; }
.structure-note { font-size: 13px; color: #13294b; background: rgba(255, 255, 255, .7); border-radius: 8px; padding: 8px 10px; }

/* Board and access → People with access (full width): the role select fits the longest role, "Also:" beside it. */
.access-role-select { width: 15rem; max-width: 100%; }
.access-remove-cell { width: 1%; white-space: nowrap; }
#people-table > :not(caption) > * > :first-child { padding-left: .75rem; }
#people-table > :not(caption) > * > :last-child { padding-right: .75rem; }

/* Board and access → Invite: the Send invitation button sits at the bottom of the card, 5px above its border. */
.invite-card-body { padding-bottom: 5px; }

/* Stepper (like the Bootstrap 6 stepper): numbered markers joined by a line, vertical on phones, horizontal from lg. */
.stepper { list-style: none; margin: 0; display: flex; flex-direction: column; }
.stepper-item { position: relative; display: flex; gap: .75rem; padding-bottom: 1.25rem; }
.stepper-item:last-child { padding-bottom: 0; }
.stepper-item:not(:last-child)::after { content: ""; position: absolute; left: 1rem; top: 2.25rem; bottom: .25rem; width: 2px; transform: translateX(-50%); background: var(--bs-border-color); }
.stepper-item.is-done:not(:last-child)::after { background: var(--bs-success); }
.stepper-marker { flex: 0 0 2rem; width: 2rem; height: 2rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; font-weight: 600; border: 2px solid var(--bs-border-color); background: var(--bs-body-bg); color: var(--bs-secondary-color); }
.stepper-item.is-done .stepper-marker { background: var(--bs-success); border-color: var(--bs-success); color: #fff; }
.stepper-item.is-current .stepper-marker { background: var(--bs-primary); border-color: var(--bs-primary); color: #fff; box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .25); }
.stepper-item.is-attention .stepper-marker { background: var(--bs-body-bg); border-color: var(--bs-danger); color: var(--bs-danger); }
.stepper-item.is-current.is-attention .stepper-marker { background: var(--bs-danger); color: #fff; box-shadow: 0 0 0 .25rem rgba(var(--bs-danger-rgb), .25); }
.stepper-body { min-width: 0; padding-top: .3rem; }
.stepper-body ul { text-align: start; padding-left: 1.1rem; }
@media (min-width: 992px) {
    .stepper { flex-direction: row; }
    .stepper-item { flex: 1 1 0; flex-direction: column; align-items: center; text-align: center; padding: 0 .5rem; }
    .stepper-item:not(:last-child)::after { left: calc(50% + 1.25rem); right: calc(-50% + 1.25rem); top: 1rem; bottom: auto; width: auto; height: 2px; transform: translateY(-50%); }
    .stepper-body { padding-top: .5rem; }
}

/* The public page in the side menu: a link out of the administration, in the colours of the site's public face. */
.org-nav .org-nav-public { background: var(--bs-primary-bg-subtle); color: var(--bs-primary-text-emphasis); font-weight: 600; border-top: 1px solid var(--bs-primary-border-subtle); }
.org-nav .org-nav-public:hover, .org-nav .org-nav-public:focus { background: var(--bs-primary-border-subtle); color: var(--bs-primary-text-emphasis); }

/* The Trix editor of the public page text: no file tools; the text styles of the public page. */
trix-toolbar .trix-button-group--file-tools { display: none; }
trix-editor.trix-content { min-height: 12rem; }
.trix-content h1, .page-text h1 { font-size: 1.35rem; }
.page-text blockquote { border-inline-start: 3px solid var(--bs-border-color); padding-inline-start: 1rem; color: var(--bs-secondary-color); }

/* The logo on the public page: at most 7rem high and 14rem wide, never stretched. */
.public-logo { max-height: 7rem; max-width: 14rem; object-fit: contain; flex-shrink: 0; }

/* The preview of the public page in Settings: stays in view while the form scrolls; the frame is scaled for "Computer". */
@media (min-width: 992px) { .public-preview { position: sticky; top: 1rem; } }
.public-preview-viewport { overflow: hidden; background: var(--bs-tertiary-bg); }
.public-preview-viewport iframe { display: block; border: 0; transform-origin: top left; background: var(--bs-body-bg); }
