/* Communita accessibility button and panel. Matches "Accessibility tool" designs in Paper. */
.cma { --cma-green: #1E5A3C; --cma-deep: #143F2A; --cma-stone: #F3EFE7; --cma-line: #E2DACB; --cma-soft: #EFE9DE; --cma-ink: #1C2620; --cma-muted: #56605A; font-family: "Figtree", system-ui, sans-serif; }
.cma *, .cma *::before, .cma *::after { box-sizing: border-box; }
.cma-sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cma-toggle { position: fixed; left: 32px; bottom: 32px; z-index: 990; display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 8px; border: 3px solid #FFFFFF; border-radius: 999px; background: var(--cma-deep); color: #FFFFFF; font: 600 15px/18px "Figtree", system-ui, sans-serif; cursor: pointer; box-shadow: 0 8px 24px rgba(20,63,42,.3); }
.cma-toggle:hover { background: var(--cma-green); }
.cma-toggle:focus-visible, .cma button:focus-visible, .cma a:focus-visible, .cma input:focus-visible + span, .cma-switch:focus-visible { outline: 3px solid #C42B2F; outline-offset: 3px; }
.cma-toggle__icon { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: #FFFFFF; color: var(--cma-deep); }
.cma.is-active .cma-toggle__icon { box-shadow: 0 0 0 3px #EADFCB; }
.cma-scrim { position: fixed; inset: 0; z-index: 991; background: rgba(20,63,42,.35); }
.cma-panel { position: fixed; left: 32px; bottom: 104px; z-index: 992; width: 380px; max-width: calc(100vw - 32px); max-height: calc(100vh - 136px); overflow: auto; display: flex; flex-direction: column; background: #FFFFFF; border-radius: 24px; box-shadow: 0 24px 60px rgba(20,63,42,.22); color: var(--cma-ink); }
.cma-panel[hidden], .cma-scrim[hidden] { display: none; }
.cma-handle { display: none; }
.cma-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px 24px; border-bottom: 1px solid var(--cma-line); }
.cma-head__icon { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 50%; background: var(--cma-green); color: #FFFFFF; }
.cma-head__icon svg { width: 22px; height: 22px; }
.cma-title { flex: 1; margin: 0; font: 500 24px/30px "Newsreader", Georgia, serif; color: var(--cma-deep); letter-spacing: 0; }
.cma-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--cma-stone); color: var(--cma-ink); cursor: pointer; }
.cma-body { padding: 20px 24px 8px; }
.cma-size { margin: 0 0 8px; padding: 0; border: 0; }
.cma-size legend { padding: 0; margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.cma-seg { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--cma-stone); }
.cma-seg__opt { position: relative; flex: 1; cursor: pointer; }
.cma-seg__opt input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.cma-seg__opt span[aria-hidden] { display: flex; justify-content: center; align-items: center; height: 40px; border-radius: 999px; font-weight: 600; color: var(--cma-muted); }
.cma-seg__opt--0 span[aria-hidden] { font-size: 15px; }
.cma-seg__opt--1 span[aria-hidden] { font-size: 19px; }
.cma-seg__opt--2 span[aria-hidden] { font-size: 23px; }
.cma-seg__opt input:checked + span { background: var(--cma-green); color: #FFFFFF; }
.cma-list { list-style: none; margin: 0; padding: 0; }
.cma-list li { margin: 0; padding: 0; border-bottom: 1px solid var(--cma-soft); }
.cma-list li:last-child { border-bottom: 0; }
.cma-list li::before { content: none !important; }
.cma-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; cursor: pointer; }
.cma-row__text { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.cma-row__label { font-size: 16px; font-weight: 600; line-height: 20px; }
.cma-row__desc { font-size: 13px; line-height: 18px; color: var(--cma-muted); }
.cma-switch { appearance: none; -webkit-appearance: none; position: relative; flex-shrink: 0; width: 48px; height: 28px; margin: 0; border-radius: 999px; background: #D9D2C4; cursor: pointer; transition: background .2s; }
.cma-switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s; }
.cma-switch:checked { background: var(--cma-green); }
.cma-switch:checked::after { transform: translateX(20px); }
.cma-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 24px 20px; background: #FAF7F1; border-top: 1px solid var(--cma-line); }
.cma-link { font-size: 14px; font-weight: 600; color: var(--cma-green); text-decoration: none; }
.cma-note { font-size: 13px; color: var(--cma-muted); }
.cma-reset { padding: 9px 16px; border: 1px solid var(--cma-line); border-radius: 999px; background: #FFFFFF; color: var(--cma-ink); font: 600 14px/18px "Figtree", system-ui, sans-serif; cursor: pointer; }
.cma-reset:hover { background: var(--cma-stone); }
@media (max-width: 640px) {
	.cma-toggle { left: 16px; bottom: 16px; padding: 6px; }
	.cma-toggle__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.cma-panel { left: 0; right: 0; bottom: 0; width: auto; max-width: none; max-height: 88vh; border-radius: 24px 24px 0 0; }
	.cma-handle { display: block; align-self: center; width: 40px; height: 4px; margin-top: 10px; border-radius: 2px; background: var(--cma-line); }
	.cma-head { padding: 12px 16px 12px 20px; }
	.cma-head__icon { display: none; }
	.cma-body { padding: 16px 20px 6px; }
	.cma-row__desc { display: none; }
	.cma-foot { padding: 14px 20px 28px; }
}

/* ---------- The options themselves ---------- */

/* Text size: scales the whole page, including fixed pixel sizes. */
html.cma-size-1 body > *:not(.cma):not(script):not(style) { zoom: 1.15; }
html.cma-size-2 body > *:not(.cma):not(script):not(style) { zoom: 1.3; }

/* High contrast: darker greys, darker brand colours, visible edges. */
html.cma-contrast { --muted: #1C2620; --ink: #000000; --line: #56605A; --taupe: #3E3328; --brand-green: #0F3D26; --cm-muted: #1C2620; --cm-ink: #000000; --cm-line: #56605A; }
html.cma-contrast body { color: #000000; }
html.cma-contrast .cm-small, html.cma-contrast .cm-body, html.cma-contrast .cm-eyebrow, html.cma-contrast small { color: inherit !important; }
html.cma-contrast input, html.cma-contrast select, html.cma-contrast textarea, html.cma-contrast button { border-color: #1C2620 !important; }
html.cma-contrast img { filter: contrast(1.1); }
html.cma-contrast :focus-visible { outline: 3px solid #C42B2F !important; outline-offset: 3px; }

/* Easy-to-read font. */
html.cma-font body *:not(svg):not(svg *):not(.cma-seg__opt span) { font-family: Verdana, Tahoma, "Segoe UI", Arial, sans-serif !important; letter-spacing: .02em !important; word-spacing: .06em; }

/* Underline links. */
html.cma-links a:not(.cma-toggle) { text-decoration: underline !important; text-decoration-thickness: 2px !important; text-underline-offset: 3px; }

/* More line spacing. */
html.cma-spacing p, html.cma-spacing li, html.cma-spacing dd, html.cma-spacing blockquote, html.cma-spacing .cm-body { line-height: 1.9 !important; }
html.cma-spacing p { margin-bottom: 1em; }

/* Stop movement. */
html.cma-motion *, html.cma-motion *::before, html.cma-motion *::after { animation-duration: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; scroll-behavior: auto !important; }

/* Larger cursor. */
html.cma-cursor, html.cma-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 2l15 9.5-6.5 1.5 4 7-3 1.5-4-7L4 19z' fill='%23143F2A' stroke='%23fff' stroke-width='1.4' stroke-linejoin='round'/%3E%3C/svg%3E") 6 3, auto !important; }
html.cma-cursor a, html.cma-cursor button, html.cma-cursor label, html.cma-cursor summary, html.cma-cursor [role="button"] { 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='M9 11V4.5a1.5 1.5 0 0 1 3 0V10m0-1.5a1.5 1.5 0 0 1 3 0V11m0-1a1.5 1.5 0 0 1 3 0v4.5a6.5 6.5 0 0 1-6.5 6.5h-.8a6 6 0 0 1-4.6-2.2L3.6 15a1.6 1.6 0 0 1 2.4-2L9 15.5' fill='%23143F2A' stroke='%23fff' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/svg%3E") 12 4, pointer !important; }

@media (prefers-reduced-motion: reduce) {
	.cma-switch, .cma-switch::after { transition: none; }
}
html.cm-menu-open .cma-toggle, html.cm-menu-open .cma-panel { display: none; }
