/* Concord & Wisdom Toolkit — front-end styles.
   Light, calm palette (navy + warm gold on ivory). Everything is scoped to .cwt-* so the existing theme is untouched. */
:root {
	--cwt-navy: #13294b;
	--cwt-navy-2: #1d3a66;
	--cwt-gold: #b8893b;
	--cwt-gold-2: #d9b877;
	--cwt-gold-ink: #8a6424;
	--cwt-ivory: #fbf8f2;
	--cwt-sand: #f3ead8;
	--cwt-mist: #eef3f8;
	--cwt-ink: #1f2a3d;
	--cwt-muted: #55627a;
	--cwt-line: #e3dccd;
	--cwt-radius: 14px;
	--cwt-shadow: 0 18px 50px -18px rgba(19, 41, 75, .35);
	/* Use the site's own Elementor global fonts when present, so new modules match the existing pages. */
	--cwt-font: var(--e-global-typography-text-font-family, -apple-system), BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", Roboto, "Helvetica Neue", Arial, sans-serif;
	--cwt-serif: var(--e-global-typography-primary-font-family, "Iowan Old Style"), "Palatino Linotype", Palatino, Georgia, "Songti SC", "Noto Serif SC", "Source Han Serif SC", serif;
}

.cwt-root, .cwt-scope, .cwt-block { font-family: var(--cwt-font); color: var(--cwt-ink); line-height: 1.6; }
.cwt-root *, .cwt-scope *, .cwt-block * { box-sizing: border-box; }
.cwt-sr, .cwt-hp { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cwt-ic { flex: none; }

/* Site-wide visible keyboard focus (WCAG 2.4.7). Applies to the existing theme too. */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--cwt-gold); outline-offset: 2px; }
.cwt-plain { margin: 0 0 12px 1.2em; padding: 0; }
.cwt-plain li { margin: 0 0 6px; }
.cwt-statement { border-top: 1px solid var(--cwt-line); padding-top: 36px; }
.cwt-transcript { margin: 0; border-top: 1px solid var(--cwt-line); }
.cwt-transcript summary { cursor: pointer; padding: 12px 16px; font-weight: 600; color: var(--cwt-navy); }
.cwt-transcript div { padding: 0 16px 16px; font-size: 14.5px; white-space: pre-line; max-height: 320px; overflow: auto; }

/* Skip link */
.cwt-skip { position: fixed; left: 12px; top: -60px; z-index: 100000; background: var(--cwt-navy); color: #fff !important; padding: 10px 16px; border-radius: 8px; font: 600 15px/1.2 var(--cwt-font); text-decoration: none; transition: top .2s; }
.cwt-skip:focus { top: 12px; outline: 3px solid var(--cwt-gold-2); }

/* Buttons */
.cwt-btn { box-sizing: border-box; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; border: 1.5px solid transparent; font: 700 16px/1 var(--cwt-font); letter-spacing: .01em; text-decoration: none !important; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.cwt-btn:hover { transform: translateY(-1px); }
.cwt-btn-gold { background: linear-gradient(180deg, #94692a, #8a6424); color: #fff !important; box-shadow: 0 8px 20px -10px rgba(184, 137, 59, .9); }
.cwt-btn-gold:hover { box-shadow: 0 12px 26px -10px rgba(184, 137, 59, .95); }
.cwt-btn-navy { background: var(--cwt-navy); color: #fff !important; }
.cwt-btn-ghost { background: #fff; color: var(--cwt-navy) !important; border-color: var(--cwt-navy); }
.cwt-link { background: none; border: 0; padding: 0; color: var(--cwt-navy); font: 600 14px var(--cwt-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.cwt-root :focus-visible, .cwt-block :focus-visible, .cwt-scope :focus-visible { outline: 3px solid var(--cwt-gold); outline-offset: 2px; }

/* Floating dock (desktop: bottom-right; mobile: bottom bar) */
.cwt-dock { position: fixed; right: 22px; bottom: 22px; z-index: 9990; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.cwt-fab { display: inline-flex; align-items: center; gap: 9px; height: 52px; padding: 0 20px 0 18px; border-radius: 999px; border: 0; cursor: pointer; font: 700 16px/1 var(--cwt-font); box-shadow: var(--cwt-shadow); transition: transform .15s; }
.cwt-fab:hover { transform: translateY(-2px); }
.cwt-fab-book { background: linear-gradient(180deg, #94692a, #8a6424); color: #fff; }
.cwt-fab-ai { background: var(--cwt-navy); color: #fff; }
.cwt-fab-ai { padding-left: 8px; }
.cwt-fab-av { width: 36px; height: 36px; border-radius: 50%; display: block; flex: none; }
.cwt-l-short { display: none; }
.cwt-a11y-btn { position: fixed; left: 18px; bottom: 22px; z-index: 9990; width: 50px; height: 50px; border-radius: 50%; border: 2px solid #fff; background: var(--cwt-navy); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: var(--cwt-shadow); }
.cwt-a11y-btn .cwt-ic { width: 26px; height: 26px; }
.cwt-a11y-btn.is-on { border-color: var(--cwt-gold-2); box-shadow: 0 0 0 3px var(--cwt-gold-2), var(--cwt-shadow); }
.cwt-a11y-btn.is-on::after { content: ""; position: absolute; top: -2px; right: -2px; width: 14px; height: 14px; border-radius: 50%; background: #d4351c; border: 2px solid #fff; }

/* Panels & modal */
.cwt-panel { position: fixed; z-index: 9995; background: #fff; border-radius: 18px; box-shadow: 0 30px 80px -20px rgba(19, 41, 75, .45); border: 1px solid var(--cwt-line); display: flex; flex-direction: column; overflow: hidden; }
.cwt-panel[hidden], .cwt-modal[hidden] { display: none !important; }
.cwt-panel-head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--cwt-line); }
.cwt-panel-head h2 { margin: 0; font: 700 20px/1.25 var(--cwt-serif); color: inherit; letter-spacing: 0; }
.cwt-panel-head p { margin: 2px 0 0; font-size: 12.5px; opacity: .8; }
.cwt-head-navy { background: var(--cwt-ivory); color: var(--cwt-navy); border-bottom: 3px solid var(--cwt-gold); }
.cwt-x { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 14px 0 10px; border-radius: 999px; border: 2px solid currentColor; background: transparent; color: inherit; font: 700 15px/1 var(--cwt-font); cursor: pointer; }
.cwt-x:hover { background: rgba(127, 127, 127, .16); }
.cwt-head-navy .cwt-x { border-color: var(--cwt-navy); }
.cwt-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 2px solid var(--cwt-gold-2); }

.cwt-a11y { left: 18px; bottom: 84px; width: 320px; max-height: calc(100vh - 110px); }
.cwt-a11y-body { padding: 14px 18px 18px; overflow: auto; display: grid; gap: 8px; }
.cwt-a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-weight: 600; font-size: 15px; }
.cwt-seg { display: inline-flex; border: 1.5px solid var(--cwt-navy); border-radius: 10px; overflow: hidden; }
.cwt-seg button { min-width: 44px; height: 40px; border: 0; background: #fff; color: var(--cwt-navy); font: 700 15px var(--cwt-serif); cursor: pointer; }
.cwt-seg button[aria-checked="true"] { background: var(--cwt-navy); color: #fff; }
.cwt-toggle { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 46px; padding: 0 14px; border: 1px solid var(--cwt-line); border-radius: 12px; background: var(--cwt-ivory); color: var(--cwt-ink); font: 600 15px var(--cwt-font); cursor: pointer; text-align: left; }
.cwt-toggle i { width: 40px; height: 22px; border-radius: 999px; background: #cfd6e1; position: relative; transition: background .2s; }
.cwt-toggle i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.cwt-toggle[aria-pressed="true"] { border-color: var(--cwt-navy); }
.cwt-toggle[aria-pressed="true"] i { background: var(--cwt-gold); }
.cwt-toggle[aria-pressed="true"] i::after { transform: translateX(18px); }
.cwt-read { justify-content: center; width: 100%; margin-top: 4px; }
.cwt-a11y-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }
.cwt-a11y-actions .cwt-btn { justify-content: center; width: 100%; padding: 0 12px; }
.cwt-a11y-foot { display: flex; justify-content: center; padding-top: 4px; }

.cwt-modal { position: fixed; inset: 0; z-index: 9998; background: rgba(15, 28, 52, .55); display: grid; place-items: center; padding: 20px; backdrop-filter: blur(3px); }
.cwt-modal-card { width: min(760px, 100%); max-height: calc(100vh - 40px); background: #fff; border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--cwt-shadow); }
.cwt-modal-body { padding: 20px 24px 24px; overflow: auto; background: var(--cwt-ivory); }

/* Booking form */
.cwt-book { font-size: 16px; }
.cwt-book-lead { margin: 0 0 14px; color: var(--cwt-muted); }
.cwt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.cwt-f { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cwt-wide { grid-column: 1 / -1; }
.cwt-f > label, .cwt-f legend { font-weight: 700; font-size: 15.5px; color: var(--cwt-navy); }
.cwt-req { color: #b3261e; }
.cwt-book input:not([type="radio"]):not([type="checkbox"]), .cwt-book select, .cwt-book textarea {
	width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #cdd5e1; border-radius: 10px; background: #fff; color: var(--cwt-ink); font: 16px/1.4 var(--cwt-font); box-shadow: none; margin: 0;
}
.cwt-book textarea { min-height: 96px; resize: vertical; }
.cwt-book input:focus, .cwt-book select:focus, .cwt-book textarea:focus { border-color: var(--cwt-navy); outline: 3px solid rgba(184, 137, 59, .35); outline-offset: 0; }
.cwt-book [aria-invalid="true"] { border-color: #b3261e !important; background: #fff6f5 !important; }
.cwt-radios { border: 0; padding: 0; margin: 0; flex-direction: row; flex-wrap: wrap; gap: 8px; }
.cwt-radios legend { width: 100%; margin-bottom: 6px; padding: 0; }
.cwt-radios label, .cwt-check-row label { display: inline-flex; align-items: flex-start; gap: 8px; font-weight: 500; font-size: 14.5px; color: var(--cwt-ink); cursor: pointer; }
.cwt-radios label { padding: 10px 14px; border: 1.5px solid #cdd5e1; border-radius: 10px; background: #fff; align-items: center; }
.cwt-radios label:has(input:checked) { border-color: var(--cwt-navy); background: var(--cwt-mist); }
.cwt-check-row { justify-content: center; }
.cwt-check-row input, .cwt-radios input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--cwt-navy); flex: none; }
.cwt-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin: 18px 0 0; }
.cwt-alt { display: inline-flex; align-items: center; gap: 6px; color: var(--cwt-navy) !important; font-weight: 600; text-decoration: none !important; }
.cwt-status { margin: 12px 0 0; font-weight: 600; min-height: 1.4em; }
.cwt-status.is-error { color: #b3261e; }
.cwt-done { padding: 26px; border-radius: var(--cwt-radius); background: #fff; border: 1px solid var(--cwt-line); text-align: center; }
.cwt-done .cwt-ic { width: 44px; height: 44px; color: #fff; background: var(--cwt-gold); border-radius: 50%; padding: 9px; margin-bottom: 10px; }
.cwt-done p { margin: 0; font-size: 16px; }

/* Chat */
.cwt-chat { right: 22px; bottom: 22px; width: 400px; height: min(640px, calc(100vh - 44px)); }
.cwt-log { flex: 1; overflow-y: auto; padding: 16px; background: var(--cwt-ivory); display: flex; flex-direction: column; gap: 10px; scroll-behavior: smooth; }
.cwt-msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: 16px; line-height: 1.6; word-wrap: break-word; }
.cwt-msg p { margin: 0 0 .55em; }
.cwt-msg p:last-child { margin-bottom: 0; }
.cwt-msg a { color: var(--cwt-navy); font-weight: 600; text-decoration: underline; }
.cwt-bot { background: #fff; border: 1px solid var(--cwt-line); border-bottom-left-radius: 4px; align-self: flex-start; }
.cwt-user { background: var(--cwt-navy); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; white-space: pre-wrap; }
.cwt-msg .cwt-btn { margin-top: 8px; min-height: 40px; padding: 0 16px; font-size: 14px; }
.cwt-typing { display: inline-flex; gap: 4px; }
.cwt-typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--cwt-gold); animation: cwt-b 1s infinite ease-in-out; }
.cwt-typing i:nth-child(2) { animation-delay: .15s; }
.cwt-typing i:nth-child(3) { animation-delay: .3s; }
@keyframes cwt-b { 0%, 80%, 100% { opacity: .3; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
.cwt-quick { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 0; background: #fff; scrollbar-width: none; }
.cwt-quick button { flex: none; border: 1.5px solid var(--cwt-gold-2); background: #fffaf0; color: var(--cwt-gold-ink); border-radius: 999px; padding: 7px 12px; font: 600 13px var(--cwt-font); cursor: pointer; }
.cwt-chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 14px; background: #fff; }
.cwt-chat-form textarea { flex: 1; min-height: 46px; max-height: 140px; padding: 11px 14px; border: 1.5px solid #cdd5e1; border-radius: 14px; font: 16px/1.4 var(--cwt-font); resize: none; color: var(--cwt-ink); background: #fff; margin: 0; }
.cwt-chat-form textarea:focus { border-color: var(--cwt-navy); outline: none; }
.cwt-send { width: 46px; height: 46px; flex: none; border-radius: 50%; border: 0; background: #8a6424; color: #fff; display: grid; place-items: center; cursor: pointer; }
.cwt-send:disabled { opacity: .5; cursor: default; }
.cwt-note { margin: 0; padding: 0 14px 12px; background: #fff; font-size: 11.5px; color: var(--cwt-muted); line-height: 1.45; }

/* Content blocks inserted into pages */
.cwt-scope { clear: both; }
.cwt-block { max-width: 1140px; margin: 56px auto; padding: 0 20px; }
.cwt-h2 { font: 700 clamp(30px, 3.6vw, 44px)/1.18 var(--cwt-serif); color: var(--cwt-navy); margin: 0 0 16px; letter-spacing: -.005em; }
.cwt-h3 { font: 700 clamp(22px, 2.2vw, 28px)/1.3 var(--cwt-serif); color: var(--cwt-navy); margin: 36px 0 14px; }
.cwt-eyebrow { margin: 0 0 10px; font: 700 14px/1.2 var(--cwt-font); letter-spacing: .16em; text-transform: uppercase; color: var(--cwt-gold-ink); }
.cwt-lede { font-size: 18px; color: var(--cwt-muted); margin: 0 0 22px; }
.cwt-fine { font-size: 13px; color: var(--cwt-muted); margin-top: 18px; }
.cwt-book-wrap { background: var(--cwt-ivory); border: 1px solid var(--cwt-line); border-radius: 22px; padding: 34px clamp(18px, 4vw, 44px); }

.cwt-cred { background: linear-gradient(180deg, var(--cwt-ivory), #fff); border: 1px solid var(--cwt-line); border-radius: 26px; padding: clamp(22px, 4vw, 48px); }
.cwt-cred-grid { display: grid; grid-template-columns: minmax(200px, 300px) 1fr; gap: clamp(22px, 4vw, 48px); align-items: start; }
.cwt-cred-photo img { width: 100%; height: auto; border-radius: 20px; display: block; box-shadow: 0 24px 50px -24px rgba(19, 41, 75, .5); border-bottom: 5px solid var(--cwt-gold); background: #fff; }
.cwt-facts { display: grid; gap: 0; margin: 0 0 22px; border-top: 1px solid var(--cwt-line); }
.cwt-facts > div { display: grid; grid-template-columns: 110px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--cwt-line); }
.cwt-facts dt { font-weight: 700; color: var(--cwt-gold-ink); font-size: 15.5px; }
.cwt-facts dd { margin: 0; font-size: 16.5px; font-weight: 500; }
.cwt-facts a { color: var(--cwt-navy); font-weight: 600; }
.cwt-stat { display: grid; gap: 4px; padding: 18px 22px; border-radius: 16px; background: #fff7e8; border: 1px solid #ecd3a1; border-top: 5px solid var(--cwt-gold); color: var(--cwt-ink); }
.cwt-stat strong { font: 700 36px/1.1 var(--cwt-serif); color: var(--cwt-gold-ink); }
.cwt-stat span { font-size: 16.5px; font-weight: 500; }
.cwt-stat small { font-size: 12px; color: var(--cwt-muted); }
.cwt-talks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.cwt-talks li { display: grid; gap: 6px; align-content: start; padding: 18px 20px; background: #fff; border: 1px solid var(--cwt-line); border-left: 4px solid var(--cwt-gold); border-radius: 12px; font-size: 16px; font-weight: 600; color: var(--cwt-navy); }
.cwt-talks time { font-weight: 700; font-size: 14px; color: var(--cwt-gold-ink); letter-spacing: .04em; }

.cwt-faq .cwt-qa { border: 1px solid var(--cwt-line); border-radius: 14px; background: #fff; margin: 0 0 10px; overflow: hidden; }
.cwt-qa summary { list-style: none; cursor: pointer; padding: 18px 54px 18px 20px; position: relative; }
.cwt-qa summary::-webkit-details-marker { display: none; }
.cwt-qa summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; border-radius: 50%; background: var(--cwt-sand); color: var(--cwt-navy); font: 600 20px/28px var(--cwt-font); text-align: center; }
.cwt-qa[open] summary::after { content: "–"; background: var(--cwt-navy); color: #fff; }
.cwt-qa h3 { margin: 0; font: 700 18.5px/1.45 var(--cwt-font); color: var(--cwt-navy); }
.cwt-qa .cwt-a { padding: 0 20px 18px; font-size: 16.5px; }
.cwt-qa .cwt-a p { margin: 0 0 10px; }
.cwt-qa .cwt-a a { color: var(--cwt-navy); font-weight: 600; }

.cwt-vgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.cwt-vcard { background: #fff; border: 1px solid var(--cwt-line); border-radius: 16px; overflow: hidden; }
.cwt-vcard h3 { margin: 14px 16px 6px; font: 700 18px/1.4 var(--cwt-font); }
.cwt-vcard h3 a { color: var(--cwt-navy); text-decoration: none; }
.cwt-vcard p { margin: 0 16px 16px; font-size: 14.5px; color: var(--cwt-muted); }
.cwt-player { position: relative; aspect-ratio: 16 / 9; background: var(--cwt-navy); }
.cwt-player iframe, .cwt-player video, .cwt-play, .cwt-play img { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.cwt-play { padding: 0; cursor: pointer; background: var(--cwt-navy); }
.cwt-play-ic { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: rgba(184, 137, 59, .95); color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s; }
.cwt-play-ic .cwt-ic { width: 28px; height: 28px; fill: #fff; stroke: none; margin-left: 4px; }
.cwt-play:hover .cwt-play-ic { transform: translate(-50%, -50%) scale(1.08); }

.cwt-access { background: var(--cwt-ivory); border: 1px solid var(--cwt-line); border-radius: 26px; padding: clamp(22px, 4vw, 48px); }
.cwt-access-grid { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
.cwt-access-art { width: 100%; height: auto; border-radius: 18px; }
.cwt-checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.cwt-checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; font-weight: 500; }
.cwt-checks .cwt-ic { color: #fff; background: var(--cwt-gold); border-radius: 50%; padding: 3px; width: 22px; height: 22px; margin-top: 2px; }

/* Tablet & phone */
@media (max-width: 900px) {
	.cwt-cred-grid, .cwt-access-grid { grid-template-columns: 1fr; }
	.cwt-cred-photo { max-width: 260px; }
	.cwt-access-art { max-width: 420px; }
}
@media (max-width: 640px) {
	.cwt-dock { left: 0; right: 0; bottom: 0; flex-direction: row; gap: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .97); border-top: 1px solid var(--cwt-line); box-shadow: 0 -8px 24px -12px rgba(19, 41, 75, .25); }
	.cwt-fab { flex: 1; justify-content: center; height: 48px; margin: 0 4px; box-shadow: none; }
	.cwt-fab .cwt-l-long { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cwt-fab .cwt-l-short { display: inline; }
	.cwt-fab { white-space: nowrap; font-size: 15px; padding: 0 12px; gap: 7px; }
	.cwt-fab-av { width: 30px; height: 30px; }
	.cwt-a11y-btn { bottom: calc(9px + env(safe-area-inset-bottom)); left: 10px; width: 46px; height: 46px; z-index: 9991; box-shadow: none; }
	.cwt-dock { padding-left: 62px; }
	html.cwt-has-dock body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
	.cwt-chat, .cwt-a11y { inset: 0; width: 100%; height: 100%; max-height: none; border-radius: 0; }
	.cwt-modal { padding: 0; }
	.cwt-modal-card { max-height: 100%; height: 100%; border-radius: 0; }
	.cwt-modal-body { padding: 16px; }
	.cwt-grid { grid-template-columns: 1fr; }
	.cwt-facts > div { grid-template-columns: 1fr; gap: 2px; }
	.cwt-block { margin: 36px auto; padding: 0 16px; }
	.cwt-book-wrap { padding: 24px 16px; border-radius: 16px; }
	.cwt-btn { width: 100%; justify-content: center; }
	.cwt-actions .cwt-alt { width: 100%; justify-content: center; }
}

/* ---------- Accessibility modes (set on <html> by the toolbar) ---------- */
html.cwt-size-1 body > *:not(.cwt-root):not(script) { zoom: 1.15; }
html.cwt-size-2 body > *:not(.cwt-root):not(script) { zoom: 1.3; }
html.cwt-size-1 .cwt-root { font-size: 112%; }
html.cwt-size-2 .cwt-root { font-size: 125%; }
html.cwt-contrast body, html.cwt-contrast body *:not(img):not(svg):not(svg *):not(video):not(iframe) { background-color: #fff !important; color: #000 !important; border-color: #000 !important; text-shadow: none !important; box-shadow: none !important; }
html.cwt-contrast body a, html.cwt-contrast body a * { color: #0000c8 !important; text-decoration: underline !important; }
html.cwt-contrast .cwt-btn, html.cwt-contrast .cwt-fab, html.cwt-contrast .cwt-a11y-btn, html.cwt-contrast .cwt-send, html.cwt-contrast .cwt-head-navy, html.cwt-contrast .cwt-user, html.cwt-contrast .cwt-stat, html.cwt-contrast .cwt-seg button[aria-checked="true"], html.cwt-contrast .cwt-toggle[aria-pressed="true"] i { background: #000 !important; color: #fff !important; }
html.cwt-contrast .cwt-btn *, html.cwt-contrast .cwt-fab *, html.cwt-contrast .cwt-head-navy *, html.cwt-contrast .cwt-user *, html.cwt-contrast .cwt-stat *, html.cwt-contrast .cwt-a11y-btn *, html.cwt-contrast .cwt-send * { background: transparent !important; color: #fff !important; }
html.cwt-links body a { text-decoration: underline !important; text-underline-offset: 3px; background: #fff3c4 !important; color: #0b2a5b !important; outline: 1px solid #b8893b; }
html.cwt-readable body, html.cwt-readable body p, html.cwt-readable body li, html.cwt-readable body dd, html.cwt-readable body span { line-height: 1.9 !important; letter-spacing: .03em !important; word-spacing: .12em !important; }
html.cwt-font body, html.cwt-font body *:not(svg):not(svg *):not([class*="icon"]):not(i) { font-family: Verdana, Tahoma, "Microsoft YaHei", "PingFang SC", sans-serif !important; font-style: normal !important; }
html.cwt-focus :focus, html.cwt-focus :focus-visible { outline: 4px solid #d4351c !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #ffdd00 !important; }
html.cwt-grayscale body > *:not(.cwt-root) { filter: grayscale(1); }
html.cwt-motion *, html.cwt-motion *::before, html.cwt-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.cwt-cursor, html.cwt-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l14 10-6.5 1.2L15 21l-3 1.3-3.5-7.8L4 19z' fill='%23000' stroke='%23fff' stroke-width='1.4'/%3E%3C/svg%3E") 4 2, auto !important; }
html.cwt-reading [data-cwt-speaking] { background: #fff3c4 !important; outline: 2px solid var(--cwt-gold); }

@media (prefers-reduced-motion: reduce) {
	.cwt-root *, .cwt-block * { animation: none !important; transition: none !important; }
}
@media print {
	.cwt-root, .cwt-skip { display: none !important; }
}

/* ===== Client portal ===== */
.cwt-portal { max-width: 920px; margin: 0 auto; font-family: var(--cwt-font); color: var(--cwt-ink); }
.cwt-portal-gate { background: var(--cwt-ivory); border: 1px solid var(--cwt-line); border-radius: 22px; padding: clamp(24px, 4vw, 44px); text-align: center; }
.cwt-portal-gate-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 18px; }
.cwt-portal-head p { font-size: 17px; line-height: 1.7; color: var(--cwt-muted); }
.cwt-portal-status { display: inline-block; background: var(--cwt-sand); border: 1px solid var(--cwt-line); border-radius: 999px; padding: 6px 16px; color: var(--cwt-ink) !important; font-size: 15px !important; }
.cwt-portal-sec { border: 1px solid var(--cwt-line); border-radius: 18px; padding: 22px clamp(18px, 3vw, 30px) 26px; margin: 24px 0 0; background: #fff; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 22px; }
.cwt-portal-sec > legend { font: 700 20px/1.3 var(--cwt-serif); color: var(--cwt-navy); padding: 0 8px; }
.cwt-portal-sec > p, .cwt-portal-sec > ul, .cwt-drop, .cwt-files { grid-column: 1 / -1; }
.cwt-pf { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cwt-pf-wide { grid-column: 1 / -1; }
.cwt-pf fieldset { border: 0; margin: 0; padding: 0; }
.cwt-pf-l { font-weight: 600; font-size: 15.5px; color: var(--cwt-ink); }
.cwt-req { color: #b32d2e; }
.cwt-pf input[type=text], .cwt-pf input[type=email], .cwt-pf input[type=tel], .cwt-pf input[type=date], .cwt-pf select, .cwt-pf textarea { width: 100%; box-sizing: border-box; font: 16px/1.5 var(--cwt-font); padding: 11px 13px; border: 1.5px solid #c9ced6; border-radius: 10px; background: #fff; color: var(--cwt-ink); }
.cwt-pf textarea { min-height: 110px; resize: vertical; }
.cwt-pf :focus-visible { outline: 3px solid var(--cwt-gold); outline-offset: 1px; border-color: var(--cwt-navy); }
.cwt-pf.is-invalid input, .cwt-pf.is-invalid select, .cwt-pf.is-invalid textarea { border-color: #b32d2e; background: #fff7f7; }
.cwt-pf.is-invalid .cwt-pf-l { color: #b32d2e; }
.cwt-pf-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.cwt-pf-checks label { display: inline-flex; gap: 8px; align-items: center; font-size: 15.5px; min-height: 36px; }
.cwt-pf-checks input { width: 20px; height: 20px; accent-color: var(--cwt-navy); }
.cwt-portal-checklist { margin: 0; padding-left: 20px; color: var(--cwt-muted); line-height: 1.8; }
.cwt-drop { border: 2px dashed #c3b28f; border-radius: 16px; padding: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; background: var(--cwt-ivory); color: var(--cwt-muted); }
.cwt-drop.is-over { background: #f3e9d6; border-color: var(--cwt-gold); }
.cwt-drop .cwt-btn { cursor: pointer; }
.cwt-drop:focus-within .cwt-btn { outline: 3px solid var(--cwt-gold); outline-offset: 2px; }
.cwt-files { list-style: none; margin: 0; padding: 0; }
.cwt-files li { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--cwt-line); font-size: 15px; }
.cwt-files li progress { grid-column: 1 / -1; width: 100%; height: 6px; }
.cwt-file-n { overflow-wrap: anywhere; }
.cwt-file-s { color: var(--cwt-muted); font-size: 14px; }
.cwt-files li.is-error .cwt-file-s { color: #b32d2e; }
.cwt-file-x { background: none; border: 1px solid var(--cwt-line); border-radius: 999px; padding: 6px 12px; cursor: pointer; color: var(--cwt-ink); font: inherit; font-size: 14px; min-height: 36px; }
.cwt-file-x:hover { border-color: #b32d2e; color: #b32d2e; }
.cwt-portal-msg { min-height: 1.6em; margin: 18px 0 0; font-weight: 600; }
.cwt-portal-msg.is-ok { color: #1d6b35; }
.cwt-portal-msg.is-error { color: #b32d2e; }
.cwt-portal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; margin-top: 10px; }
.cwt-portal-fine { margin-top: 18px; font-size: 14px; color: var(--cwt-muted); }
@media (max-width: 700px) {
	.cwt-portal-sec { grid-template-columns: 1fr; }
	.cwt-portal-actions { flex-direction: column-reverse; }
	.cwt-portal-actions .cwt-btn { width: 100%; justify-content: center; }
	.cwt-files li { grid-template-columns: 1fr auto; }
	.cwt-file-s { grid-column: 1; grid-row: 2; }
}
.cwt-portal-auth { max-width: 1040px; }
.cwt-portal-lead { font-size: 17.5px; line-height: 1.7; color: var(--cwt-muted); text-align: center; max-width: 46em; margin: 0 auto 26px; }
.cwt-auth-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 26px; align-items: start; }
.cwt-auth-card { background: #fff; border: 1px solid var(--cwt-line); border-radius: 20px; padding: clamp(22px, 3vw, 34px); box-shadow: var(--cwt-shadow); }
.cwt-auth-card .cwt-h2 { margin-top: 0; font-size: 26px; }
.cwt-auth-card form p, .cwt-reg .cwt-pf { margin: 0 0 14px; }
.cwt-auth-card label { display: block; font-weight: 600; font-size: 15.5px; margin-bottom: 6px; }
.cwt-auth-card input[type=text], .cwt-auth-card input[type=password], .cwt-auth-card input[type=email], .cwt-auth-card select { width: 100%; box-sizing: border-box; font: 16px/1.5 var(--cwt-font); padding: 11px 13px; border: 1.5px solid #c9ced6; border-radius: 10px; background: #fff; }
.cwt-auth-card input:focus-visible, .cwt-auth-card select:focus-visible { outline: 3px solid var(--cwt-gold); outline-offset: 1px; }
.cwt-auth-card .login-remember label { display: inline-flex; gap: 8px; align-items: center; font-weight: 400; }
.cwt-auth-card #cwt-login-submit { background: var(--cwt-navy); color: #fff; border: 0; border-radius: 999px; padding: 13px 26px; font: 700 16px var(--cwt-font); cursor: pointer; min-height: 48px; }
.cwt-reg-agree { display: flex !important; gap: 10px; align-items: flex-start; font-weight: 400 !important; font-size: 14.5px !important; line-height: 1.6; color: var(--cwt-muted); margin: 6px 0 14px; }
.cwt-reg-agree input { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.cwt-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cwt-portal-bar { max-width: 920px; margin: 0 auto 18px; display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; background: var(--cwt-ivory); border: 1px solid var(--cwt-line); border-radius: 14px; padding: 12px 18px; font-size: 15px; }
.cwt-portal-bar p { margin: 0; }
.cwt-portal-matters { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cwt-portal-matters a { display: inline-block; padding: 6px 14px; border-radius: 999px; border: 1px solid var(--cwt-line); text-decoration: none; color: var(--cwt-ink); background: #fff; }
.cwt-portal-matters a[aria-current] { background: var(--cwt-navy); color: #fff; border-color: var(--cwt-navy); }
.cwt-portal-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.cwt-portal-new select { font: 15px var(--cwt-font); padding: 8px 10px; border-radius: 8px; border: 1px solid #c9ced6; max-width: 100%; }
@media (max-width: 800px) { .cwt-auth-grid { grid-template-columns: 1fr; } }
.cwt-portal-new select { min-width: 0; flex: 1 1 220px; }
.cwt-portal-bar > * { min-width: 0; max-width: 100%; }
@media (max-width: 600px) { .cwt-portal-new { width: 100%; } .cwt-portal-new label { width: 100%; } .cwt-portal-new select { width: 100%; } }
.cwt-faq-nav ul { list-style: none; margin: 0 0 28px; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.cwt-faq-nav a { display: inline-block; padding: 8px 16px; border: 1px solid var(--cwt-line); border-radius: 999px; background: #fff; color: var(--cwt-navy); text-decoration: none; font-weight: 600; font-size: 15px; }
.cwt-faq-nav a:hover, .cwt-faq-nav a:focus-visible { background: var(--cwt-navy); color: #fff; }
.cwt-faq-group { margin: 0 0 40px; scroll-margin-top: 140px; }
.cwt-faq-group .cwt-h2 { font-size: clamp(24px, 2.6vw, 32px); }
