/* Readability pass: calm backgrounds behind text, a cleaner closing section and booking panel */

/* ---------- backgrounds never compete with text ---------- */
html:not(.ch-theme-dark) .fx-layer .fx-rays { display: none; }
html:not(.ch-theme-dark) .fx-layer .fx-threads { opacity: 0.5; }
html:not(.ch-theme-dark) .fx-layer .fx-dots-lit { opacity: 0.3; }
html .fx-layer .fx-threads { -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 80%); mask-image: linear-gradient(90deg, transparent 30%, #000 80%); }
@media (max-width: 1279px) { html .fx-layer .fx-doodle { display: none; } }

/* closing section: dots at the sides only, threads along the bottom edge only, clear middle */
html .ch-closing .fx-dots { -webkit-mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); mask-image: linear-gradient(90deg, #000, transparent 22%, transparent 78%, #000); }
html .ch-closing .fx-dots-lit { display: none; }
html .ch-closing .fx-layer .fx-threads { -webkit-mask-image: linear-gradient(transparent 76%, #000); mask-image: linear-gradient(transparent 76%, #000); }
html .ch-closing .fx-layer .fx-rays { opacity: 0.45; }

/* ---------- closing section ---------- */
html body section.ch-closing { padding-top: clamp(90px, 11vw, 150px); padding-bottom: clamp(100px, 12vw, 160px); }
html { --chx-bg: #FFFFFF; --chx-text: #121316; --chx-sub: #43474E; --chx-soft: #FFFFFF; --chx-line: #D9DBDF; }
html.ch-theme-dark { --chx-bg: #08090A; --chx-text: #F3F4F5; --chx-sub: #C2C5CA; --chx-soft: #141619; --chx-line: rgba(255, 255, 255, 0.18); }
html .ch-closing-icon { width: 64px; height: 64px; border-radius: 18px; background: #F05526; color: #FFFFFF; box-shadow: none; }
html body section.ch-closing h2 { margin-top: 30px !important; }
html body section.ch-closing h2 em { font-style: normal; color: #D1461A; }
html.ch-theme-dark body section.ch-closing h2 em { color: #FF7A45; }
html body section.ch-closing p { opacity: 1; color: var(--chx-sub) !important; font-size: 17px !important; }
html body section.ch-closing .ch-closing-actions { gap: 12px; }
html body section.ch-closing .ch-closing-actions button { padding: 15px 28px; border-radius: 999px; font-size: 15px; }
html body section.ch-closing .ch-closing-actions .ch-closing-solid { border: 1.5px solid #C2410C; background: #C2410C !important; color: #FFFFFF !important; }
html body section.ch-closing .ch-closing-actions .ch-closing-solid:hover { border-color: #9A3412; background: #9A3412 !important; }
html body section.ch-closing .ch-closing-actions .ch-closing-soft { border: 1.5px solid var(--chx-line); background: var(--chx-soft) !important; color: var(--chx-text) !important; }
html body section.ch-closing .ch-closing-actions .ch-closing-soft:hover { border-color: var(--chx-text); }
html body section.ch-closing ul.ch-closing-points { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 44px 0 0; padding: 22px 0 0; border-top: 1px solid var(--chx-line); list-style: none; }
html body section.ch-closing .ch-closing-points li { display: flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 700; color: var(--chx-text) !important; }
.ch-closing-points li::before { content: ''; width: 5px; height: 10px; border: solid #D1461A; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }

/* ---------- booking panel ---------- */
html { --bk-bg: #FFFFFF; --bk-text: #121316; --bk-sub: #55595F; --bk-field: #F4F4F2; --bk-line: #DCDEE1; }
html.ch-theme-dark { --bk-bg: #111214; --bk-text: #F3F4F5; --bk-sub: #B2B6BC; --bk-field: #1B1D21; --bk-line: rgba(255, 255, 255, 0.14); }

/* dims the page so the panel stands apart from whatever is behind it */
html .ch-book.is-open::before { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(6, 7, 8, 0.45); }
html body .ch-book .ch-book-panel { width: 400px; max-height: calc(100vh - 110px); border: 1px solid var(--bk-line); border-radius: 22px; background: var(--bk-bg); color: var(--bk-text); animation: bk-in 0.3s cubic-bezier(0.34, 1.35, 0.5, 1); }
html body .ch-book .ch-book-panel[hidden] { display: none; }
@keyframes bk-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
html body .ch-book .ch-book-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 4px; border-top: 5px solid #F05526; border-radius: 22px 22px 0 0; background: transparent; }
html body .ch-book .ch-book-head p { margin: 0 0 2px; font-size: 22px; font-weight: 800; color: var(--bk-text) !important; }
html body .ch-book .ch-book-head span { font-size: 13.5px; color: var(--bk-sub) !important; }
html body .ch-book .ch-book-head .ch-book-x { flex: 0 0 34px; height: 34px; border: 1px solid var(--bk-line); border-radius: 50%; background: transparent; color: var(--bk-text); font-size: 22px; line-height: 1; cursor: pointer; }
html body .ch-book .ch-book-head .ch-book-x:hover { border-color: #F05526; color: #F05526; }
html body .ch-book .ch-book-form { gap: 11px; padding: 14px 22px 4px; }
.ch-book-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
html body .ch-book .ch-book-form label { font-size: 12.5px; font-weight: 700; color: var(--bk-text) !important; }
html body .ch-book .ch-book-form em { color: var(--bk-sub) !important; }
html body .ch-book .ch-book-form :is(input, textarea):not(.ch-book-trap) { min-width: 0; padding: 10px 12px; border: 1px solid var(--bk-line); border-radius: 11px; background: var(--bk-field); color: var(--bk-text); }
html body .ch-book .ch-book-form :is(input, textarea):focus { border-color: #F05526; outline: 2px solid rgba(240, 85, 38, 0.35); outline-offset: 0; }
html.ch-theme-dark .ch-book input[type="datetime-local"] { color-scheme: dark; }
html body .ch-book .ch-book-form button[type="submit"] { padding: 13px; border-radius: 999px; font-size: 15px; }
html body .ch-book .ch-book-status { color: var(--bk-sub); }
html body .ch-book .ch-book-status:empty { min-height: 0; }
html body .ch-book .ch-book-status.is-ok { color: #1B8A45; }
html body .ch-book .ch-book-status.is-error { color: #E0483B; }
html body .ch-book .ch-book-alt { margin: 6px 0 0; padding: 12px 22px 16px; border-top: 1px solid var(--bk-line); text-align: center; color: var(--bk-sub) !important; }
html.ch-theme-dark body .ch-book .ch-book-alt a { color: #FF7A45; }

@media (max-width: 640px) {
    html body .ch-book .ch-book-panel { width: calc(100vw - 28px); max-height: calc(100dvh - 90px); }
    .ch-book-pair { grid-template-columns: minmax(0, 1fr); }
}

html body section.ch-closing p { max-width: 640px; text-wrap: balance; }

/* ---------- full-colour 3D icons (Fluent Emoji, MIT licence, see images/icons/LICENSE.txt) ---------- */
html body img.ic { display: block; width: 24px; height: 24px; max-width: none; object-fit: contain; filter: drop-shadow(0 4px 5px rgba(60, 20, 0, 0.22)); }
html body #___gatsby .svx .svx-card .svx-tags a b { flex: 0 0 36px; height: 36px; background: rgba(255, 255, 255, 0.1); }
html body #___gatsby .svx .svx-card .svx-tags a b img.ic { width: 26px; height: 26px; transition: transform 0.25s cubic-bezier(0.34, 1.7, 0.5, 1); }
html body #___gatsby .svx .svx-card .svx-tags a:hover b { background: #FFFFFF; }
html body #___gatsby .svx .svx-card .svx-tags a:hover b img.ic { transform: scale(1.2) rotate(-9deg); }
html body .svx .svx-tool-grid li { gap: 12px; min-height: 142px; }
html body .svx .svx-tool-grid li img.ic { width: 62px; height: 62px; filter: drop-shadow(0 10px 10px rgba(60, 20, 0, 0.25)); transition: transform 0.35s cubic-bezier(0.34, 1.7, 0.5, 1); }
html body .svx .svx-tool-grid li:hover img.ic { transform: translateY(-5px) scale(1.12) rotate(-7deg); }
html body .svx .svx-lines li { align-items: center; }
html body .svx .svx-lines .svx-icon { display: grid; flex: 0 0 62px; width: 62px; height: 62px; place-items: center; border-radius: 18px; background: var(--sv-surface); }
html body .svx .svx-lines .svx-icon img.ic { width: 40px; height: 40px; }
html body .svx .dk-chip img.ic { width: 20px; height: 20px; filter: none; }
html body .svx .dk-chat-head img.ic { width: 24px; height: 24px; filter: none; }
html body span.ch-closing-icon { width: 84px; height: 84px; border-radius: 24px; background: var(--chx-soft); box-shadow: 0 18px 40px -18px rgba(240, 85, 38, 0.7); }
.ch-closing-icon img { width: 56px; height: 56px; }
html body .ab .ab-3d img { width: 100%; height: 100%; object-fit: contain; }

/* orange tile behind each icon, so pale and dark artwork both stay visible in either theme */
html body .svx .svx-tool-grid li img.ic { width: 78px; height: 78px; padding: 11px; border-radius: 24px; background: linear-gradient(145deg, #FFA66F, #EE4F1C); filter: none; box-shadow: 0 14px 22px -12px rgba(200, 60, 10, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.45); }
html body #___gatsby .svx .svx-card .svx-tags a b, html body #___gatsby .svx .svx-card .svx-tags a:hover b { background: linear-gradient(145deg, #FFA66F, #EE4F1C); }
html body .svx .svx-lines .svx-icon { background: linear-gradient(145deg, #FFA66F, #EE4F1C); }
html body .svx .svx-lines .svx-icon img.ic { filter: drop-shadow(0 3px 3px rgba(80, 20, 0, 0.35)); }

html body span.ch-closing-icon { background: linear-gradient(145deg, #FFA66F, #EE4F1C); }
.ch-closing-icon img { filter: drop-shadow(0 4px 4px rgba(80, 20, 0, 0.35)); }

/* ---------- restraint: type and spacing instead of icons and decoration ---------- */
.fx-doodle, .fx-dots, .fx-spark { display: none !important; }
html body #___gatsby .svx .svx-card .svx-tags a b { display: none; }
html body #___gatsby .svx .svx-card .svx-tags a { min-height: 42px; padding: 9px 14px; }
.dk-chip::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #F05526; }
.ab-why-top { justify-content: flex-end; }

html body #___gatsby .svx dl.svx-connect { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; margin: 0; }
html body #___gatsby .svx .svx-connect > div { padding: 20px 0 22px; border-top: 1px solid var(--sv-line); }
html body #___gatsby .svx .svx-connect dt { font-family: "Cabinet Grotesk", sans-serif; font-size: 24px; font-weight: 800; letter-spacing: -0.015em; color: var(--sv-text); }
html body #___gatsby .svx .svx-connect dd { margin: 5px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--sv-muted); }
@media (max-width: 620px) { html body #___gatsby .svx dl.svx-connect { grid-template-columns: minmax(0, 1fr); } }

/* ---------- neutral backgrounds: no warm haze on dark ---------- */
html .fx-rays { display: none !important; }
html body .ab-hero-v2 { background: #08090A; }
html body .ab-hero-v2-bg { background: radial-gradient(circle at 70% 30%, rgba(240, 85, 38, 0.22), transparent 45%), repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 28px, transparent 28px 56px); }

/* ---------- content that has not been added is not shown ---------- */
img[src=""] { display: none !important; }
.cs-hero-text p:empty, .dt-hero-text p:empty, .wp-panel-text span:empty, .wp-story-text p:empty, .ch-hpin-track p:empty { display: none; }
/* panels that would hold a photo stay dark, so their white text remains readable */
#___gatsby .dt-hero:not(:has(> img)), .ind a:not(:has(img)), .chx-slide:not(:has(img)) { background-color: #141619; }
