/* Cookie banner: equal-weight choices (EU/IL requirement), bottom card. */
.dcm-banner { position: fixed; z-index: 1300; inset-inline: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); max-width: 980px; margin-inline: auto; background: var(--dk-paper, #fff); color: var(--dk-ink, #222); border: 1px solid var(--dk-line, #e5d9c7); border-radius: 24px; box-shadow: 0 24px 48px -18px rgba(74,52,30,.4); padding: 1rem 1.1rem; transform: translateY(20px); opacity: 0; transition: transform .35s cubic-bezier(.22,1,.36,1), opacity .35s; }
.dcm-banner.is-in { transform: none; opacity: 1; }
.dcm-banner__inner { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.dcm-banner__copy { flex: 1 1 420px; min-width: 0; }
.dcm-banner__title { font-family: var(--dk-font-display, sans-serif); font-size: 1.1rem; margin: 0 0 .25rem; color: var(--dk-teal, #1F4D4A); }
.dcm-banner__text { margin: 0; font-size: .9rem; line-height: 1.55; color: var(--dk-ink-2, #444); }
.dcm-banner__text a { color: var(--dk-teal-600, #2B6460); font-weight: 600; }
.dcm-banner__actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.dcm-banner__actions .dk-btn { min-width: 128px; }
@media (max-width: 600px) { .dcm-banner__actions { width: 100%; } .dcm-banner__actions .dk-btn { flex: 1 1 45%; } }

/* Preferences modal */
.dcm-modal { position: fixed; inset: 0; z-index: 1400; display: grid; place-items: center; padding: 16px; }
.dcm-modal[hidden] { display: none; }
.dcm-modal__backdrop { position: absolute; inset: 0; background: rgba(42,36,32,.5); }
.dcm-modal__dialog { position: relative; width: min(560px, 100%); max-height: calc(100dvh - 32px); overflow: auto; background: var(--dk-paper, #fff); border-radius: 28px; box-shadow: 0 24px 48px -18px rgba(74,52,30,.4); }
.dcm-modal__head { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 1.25rem .3rem; }
.dcm-modal__head h2 { margin: 0; font-size: 1.25rem; }
.dcm-modal__body { padding: .5rem 1.25rem 1rem; display: grid; gap: .6rem; }
.dcm-modal__foot { display: flex; flex-wrap: wrap; gap: .5rem; padding: .9rem 1.25rem 1.2rem; border-top: 1px solid var(--dk-line, #eee); }
.dcm-cat { display: flex; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem .9rem; border: 1px solid var(--dk-line, #eee); border-radius: 16px; background: var(--dk-cream, #fbf4e8); cursor: pointer; }
.dcm-cat p { margin: .2rem 0 0; font-size: .85rem; color: var(--dk-muted, #777); line-height: 1.5; }
.dcm-always { font-size: .78rem; font-weight: 700; color: var(--dk-moss, #5F7F4E); white-space: nowrap; }
.dcm-small { font-size: .8rem; color: var(--dk-muted, #777); margin: 0; }
.dcm-x { border: 0; background: transparent; font-size: 26px; line-height: 1; cursor: pointer; color: var(--dk-muted, #777); width: 40px; height: 40px; border-radius: 50%; }
.dcm-x:hover { background: var(--dk-cream-2, #f5ead6); }

/* Click-to-load embeds */
.dcm-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; background: var(--dk-teal, #1F4D4A); color: #fff; display: grid; place-items: center; text-align: center; margin: 1rem 0; }
.dcm-embed__thumb { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.dcm-embed__inner { position: relative; z-index: 1; padding: 1rem; max-width: 420px; }
.dcm-embed__icon { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--dk-clay, #C8572B); font-size: 26px; margin-bottom: .4rem; }
.dcm-embed__actions { display: flex; gap: .5rem; justify-content: center; flex-wrap: wrap; }
.dcm-embed.is-loaded iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Accessibility toolbar (opposite side from Guri) */
.dcm-a11y { position: fixed; z-index: 790; inset-inline-end: 14px; bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
@media (min-width: 960px) { .dcm-a11y { bottom: 24px; } }
.dcm-a11y__btn { width: 48px; height: 48px; border-radius: 50%; border: 3px solid var(--dk-paper, #fff); background: #1D4ED8; color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -10px rgba(0,0,0,.45); }
.dcm-a11y__btn:focus-visible { outline: 3px solid #F59E0B; outline-offset: 2px; }
.dcm-a11y__panel { position: absolute; bottom: 58px; inset-inline-end: 0; width: min(320px, calc(100vw - 28px)); background: var(--dk-paper, #fff); border: 1px solid var(--dk-line, #ddd); border-radius: 20px; box-shadow: 0 24px 48px -18px rgba(0,0,0,.35); padding: .8rem; color: var(--dk-ink, #222); }
.dcm-a11y__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.dcm-a11y__size { display: flex; align-items: center; justify-content: space-between; gap: .5rem; background: var(--dk-cream, #f6f1e7); border-radius: 14px; padding: .35rem; margin-bottom: .5rem; }
.dcm-a11y__size button { min-width: 48px; min-height: 40px; border: 0; border-radius: 10px; background: var(--dk-paper, #fff); font-weight: 800; cursor: pointer; }
.dcm-a11y__grid { display: grid; grid-template-columns: 1fr 1fr; gap: .4rem; }
.dcm-a11y__grid button { min-height: 52px; border: 1.5px solid var(--dk-line, #ddd); border-radius: 12px; background: var(--dk-paper, #fff); font: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; padding: .4rem; color: inherit; }
.dcm-a11y__grid button[aria-pressed="true"] { background: #1D4ED8; border-color: #1D4ED8; color: #fff; }
.dcm-a11y__foot { display: flex; justify-content: space-between; margin-top: .6rem; font-size: .85rem; }

/* Accessibility modes */
html.dk-a11y-contrast { --dk-bg: #fff; --dk-cream: #fff; --dk-cream-2: #f0f0f0; --dk-paper: #fff; --dk-ink: #000; --dk-ink-2: #000; --dk-muted: #222; --dk-teal: #002b28; --dk-teal-600: #003d38; --dk-clay: #8a2b07; --dk-line: #000; --dk-line-2: #000; }
html.dk-a11y-contrast body { background-image: none !important; }
html.dk-a11y-contrast img:not(.dk-avatar) { filter: contrast(1.1); }
html.dk-a11y-links a { text-decoration: underline !important; text-decoration-thickness: 2px !important; outline: 1px dashed currentColor; outline-offset: 2px; }
html.dk-a11y-font body, html.dk-a11y-font body * { font-family: Arial, 'Helvetica Neue', sans-serif !important; letter-spacing: .01em; }
html.dk-a11y-spacing body { line-height: 2 !important; }
html.dk-a11y-spacing p, html.dk-a11y-spacing li { line-height: 2 !important; word-spacing: .12em; }
html.dk-a11y-motion *, html.dk-a11y-motion *::before, html.dk-a11y-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html.dk-a11y-cursor, html.dk-a11y-cursor * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 9-7 2-3 7z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
html.dk-a11y-grayscale body { filter: grayscale(1); }
html.dk-a11y-focus *:focus { outline: 4px solid #F59E0B !important; outline-offset: 3px !important; box-shadow: none !important; }

.dcm-banner__guri { width: 92px; height: auto; flex: none; margin-top: -46px; filter: drop-shadow(0 10px 14px rgba(74,52,30,.25)); animation: dk-guri-idle 4s ease-in-out infinite; }
@media (max-width: 600px) { .dcm-banner__guri { width: 76px; margin-top: -54px; } }
.dcm-a11y__head { gap: .5rem; justify-content: flex-start; }
.dcm-a11y__head .dcm-x { margin-inline-start: auto; }
.dcm-a11y__guri { width: 48px; height: auto; margin-top: -26px; }
