/* content that comes from the admin (loaded after site.css) */
.mega-card.mc3[style] { grid-template-columns: repeat(var(--mc, 3), minmax(0, 1fr)); }
.mg-h:not([href]):hover { text-decoration: none; }
@media (min-width: 901px) { .foot-grid[style] { grid-template-columns: minmax(0, 1.4fr) repeat(var(--fn, 3), minmax(0, 1fr)); } }

.cms-preview { align-self: flex-start; margin-bottom: 18px; padding: 10px 16px; border-radius: 12px; background: #FFE9B8; color: #4A3200; font-size: .92rem; font-weight: 600; }
.cms-pic { margin: 0; border-radius: 22px; overflow: hidden; background: var(--bg2); box-shadow: 0 0 0 1px var(--line), 0 50px 90px -60px var(--shadow); }
.cms-pic img { display: block; width: 100%; height: auto; max-height: 640px; object-fit: contain; }

/* partner logos keep a white ground in both themes, because most are made for one */
.pc2-logo { align-self: flex-start; max-width: 100%; padding: 10px 16px; border-radius: 14px; background: #FFFFFF; box-shadow: inset 0 0 0 1px var(--line); }
.pc2-logo img { display: block; width: auto; height: auto; max-width: min(220px, 100%); max-height: 64px; }
.pc-pair.one { grid-template-columns: minmax(0, 720px); }

/* page sections: order can change, so spacing no longer depends on the neighbour */
.sec.flush { padding-top: 0; }
.hero + .sec.flush, .pg-sec + .sec.flush { padding-top: clamp(44px, 4.6vw, 76px); }
.pg-sec.alt + .pg-sec.alt { box-shadow: inset 0 -1px 0 var(--line); }
.svc + .pg-band-sec, .hero + .pg-band-sec { padding-top: clamp(56px, 7vw, 104px); }
.vis-grid > :only-child { grid-column: 1 / -1; }
.bp-grid > :only-child { grid-column: 1 / -1; }
.chat.no-side { grid-template-columns: minmax(0, 1fr); }
.rich { max-width: 72ch; font-size: 1.05rem; line-height: 1.7; overflow-wrap: anywhere; }
.rich > * + * { margin-top: 1em; }
.rich :is(h2, h3, h4) { margin-top: 1.4em; font: 600 1.25rem/1.3 var(--f-disp); }
.rich ul, .rich ol { padding-inline-start: 1.4em; }
.rich ul { list-style: disc; }
.rich ol { list-style: decimal; }
.rich li + li { margin-top: .35em; }
.rich a { color: var(--accent); text-decoration: underline; text-underline-offset: .2em; }
.rich blockquote { padding-inline-start: 1em; border-inline-start: 3px solid var(--line); color: var(--ink2); }
.rich + .btns { margin-top: 28px; }
.pic-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 5vw, 72px); align-items: center; }
.pic-grid .h2 { margin-bottom: 18px; }
.pic-grid.pic-none { grid-template-columns: minmax(0, 1fr); }
.pic-start > .cms-pic { order: -1; }
@media (max-width: 900px) { .pic-grid { grid-template-columns: minmax(0, 1fr); } }
.faq { max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; cursor: pointer; font: 600 1.08rem/1.4 var(--f-disp); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; width: 11px; height: 11px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-3px) rotate(45deg); transition: transform .25s; }
.faq details[open] summary span { transform: translateY(3px) rotate(225deg); }
.faq p { padding-bottom: 20px; max-width: 72ch; color: var(--ink2); line-height: 1.7; }
.faq summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.cms-bar { position: fixed; inset-inline: 0; bottom: 0; z-index: 90; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 20px; padding: 10px 16px; background: #FFE9B8; color: #4A3200; font-size: .92rem; font-weight: 600; }
.cms-bar a { color: inherit; }

/* the question about visitor counting */
.consent { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 80; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px; max-width: 900px; margin-inline: auto; padding: 18px 22px; border-radius: 20px; background: var(--bg2); color: var(--ink); box-shadow: 0 0 0 1px var(--line), 0 30px 70px -30px var(--shadow); font-size: .95rem; line-height: 1.55; }
.consent[hidden] { display: none; }
.consent p { flex: 1 1 320px; }
.consent a, .apply-note a { color: var(--accent); }
.foot-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.foot-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* the admin's own pictures in carousels */
.ritem > img, .lb > #lbImg { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.lb > #lbImg[hidden], .lb > .bnr-host[hidden] { display: none; }
.lb > #lbImg { height: auto; max-height: 92svh; object-fit: contain; }
.piccar { min-width: 0; }
.piccar-track { display: flex; gap: clamp(14px, 1.8vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px; margin: -4px; }
.piccar-track::-webkit-scrollbar { display: none; }
.piccar-track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 18px; }
.piccar-item { flex: none; max-width: min(900px, 86%); scroll-snap-align: start; list-style: none; }
.piccar-item figure { margin: 0; }
.piccar-item :is(a, button) { display: block; padding: 0; border: 0; border-radius: 18px; overflow: hidden; background: var(--bg3); box-shadow: 0 0 0 1px var(--line); }
.piccar-item button { cursor: zoom-in; }
.piccar-item img { display: block; width: auto; max-width: 100%; height: clamp(220px, 34vw, 460px); object-fit: cover; }
.piccar-item figcaption { margin-top: 12px; padding-inline: 4px; color: var(--ink2); font-size: .95rem; }
.piccar-ctl { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
:root[dir="rtl"] [data-piccar-next] .arr, [data-piccar-prev] .arr { transform: scaleX(-1); }
:root[dir="rtl"] [data-piccar-prev] .arr { transform: none; }
