/* Cookie controls keep their own contrast, independently of the page theme. */
.cc-root{--cc-ink:#20384e;--cc-accent:#bda36b;--cc-soft:#eef2f6;--cc-paper:#fffefa;--cc-muted:#586b76;font-family:var(--font-family-sans,"Kodchasan",Tahoma,sans-serif);color:var(--cc-ink);line-height:1.7;text-align:left}
.cc-root[data-tone=emerald]{--cc-ink:#204536;--cc-soft:#eef4ef;--cc-muted:#536e60}.cc-root[data-tone=ivory]{--cc-ink:#54452e;--cc-soft:#f4f0e7;--cc-muted:#71664f}
.cc-root *{box-sizing:border-box}.cc-root [hidden]{display:none!important}
.cc-banner{position:fixed;z-index:1800;left:20px;right:20px;bottom:20px;max-width:1360px;max-height:calc(100dvh - 40px);overflow:auto;margin:auto;padding:24px 32px;background:var(--cc-paper);border:1px solid #d8caa8;border-top:3px solid var(--cc-accent);border-radius:18px;box-shadow:0 16px 60px #122c3930,0 3px 10px #122c3912}
.cc-banner-heading,.cc-modal-heading{display:flex;align-items:center;gap:16px}.cc-banner-heading img,.cc-modal-heading img{width:42px;height:52px;object-fit:contain;flex:none}.cc-banner-heading>div,.cc-modal-heading>div{min-width:0;flex:1}
.cc-root .cc-eyebrow{display:block;color:var(--cc-muted);font-size:11px;letter-spacing:.04em}.cc-root :is(h2,h3,p){margin:0;color:var(--cc-ink)}
#cookie-consent h2{font-size:22px!important;font-weight:700!important;line-height:1.5}#cookie-consent h3{font-size:16px!important;font-weight:600!important;line-height:1.6}
.cc-root .cc-close{display:grid;place-items:center;width:40px;height:40px;flex:none;background:var(--cc-soft);border:1px solid transparent;border-radius:12px;color:var(--cc-ink);font:inherit;font-size:25px!important;line-height:1;cursor:pointer}
.cc-description{margin:16px 0 20px!important;white-space:pre-line;font-size:14px;line-height:1.9}.cc-banner-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
.cc-root .cc-detail{padding:8px 0;border:0;background:none;color:var(--cc-ink);font:inherit;font-size:14px;text-decoration:underline;text-underline-offset:5px;cursor:pointer}
.cc-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap}.cc-root .cc-btn{min-height:46px;min-width:132px;display:inline-flex;align-items:center;justify-content:center;padding:11px 20px;border:1px solid #cbd3d5;border-radius:10px;background:var(--cc-soft);color:var(--cc-ink);font:inherit;font-size:14px;font-weight:600;line-height:1.6;text-decoration:none;box-shadow:none;cursor:pointer;transition:background .15s,transform .15s}
.cc-root .cc-primary{background:var(--cc-ink);color:#fffefa;border-color:var(--cc-ink)}.cc-root .cc-save{background:var(--cc-paper);border-color:var(--cc-accent)}
.cc-root .cc-btn:hover{transform:translateY(-1px);box-shadow:0 4px 10px #162e3614}.cc-root .cc-primary:hover{background:var(--cc-ink);color:#fffefa}.cc-root button:disabled{opacity:.55;cursor:wait;transform:none}
.cc-root :is(a,button,input,summary):focus-visible{outline:3px solid var(--cc-accent);outline-offset:3px}.cc-root .cc-reopen{position:fixed;z-index:40;left:auto;right:max(22px,env(safe-area-inset-right));bottom:max(28px,env(safe-area-inset-bottom));display:grid;place-items:center;width:54px;height:54px;padding:0;background:linear-gradient(145deg,#223d51,#102a3b);color:#ecd08a;border:1px solid #b99a54;border-radius:18px;font:inherit;box-shadow:0 7px 20px #0c243226,inset 0 1px 0 #ffffff18;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease}.cc-reopen svg{width:23px;height:23px;pointer-events:none}
/* Reserve one button plus its gap only while the cookie shortcut is visible. */
body:has(.cc-root:not([hidden]) .cc-reopen:not([hidden])){--cookie-control-clearance:64px}
.site-theme[data-mourning-position=bottom-right] .cc-reopen{bottom:calc(var(--mourning-size) * .8 + 16px + env(safe-area-inset-bottom,0px))}
.cc-reopen-label{position:absolute;right:calc(100% + 12px);top:50%;padding:8px 13px;border:1px solid #b99a5470;border-radius:11px;background:#142f42;color:#f5e5b9;box-shadow:0 5px 16px #102a3b20;font-size:12px;line-height:1.7;white-space:nowrap;pointer-events:none;opacity:0;visibility:hidden;transform:translate(5px,-50%);transition:opacity .18s ease,transform .18s ease,visibility .18s ease}
.cc-reopen:focus-visible .cc-reopen-label{opacity:1;visibility:visible;transform:translate(0,-50%)}
.cc-root .cc-reopen:active{transform:scale(.96)}
@media(hover:hover){.cc-root .cc-reopen:hover{color:#ffe6a6;border-color:#e5c67f;box-shadow:0 9px 24px #0c243238,inset 0 0 0 1px #d3b57325;transform:translateY(-2px)}.cc-reopen:hover .cc-reopen-label{opacity:1;visibility:visible;transform:translate(0,-50%)}}
@media(max-width:600px){body:has(.cc-root:not([hidden]) .cc-reopen:not([hidden])){--cookie-control-clearance:52px}.cc-root .cc-reopen{right:max(12px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));width:44px;height:44px;border-radius:15px}.cc-reopen svg{width:21px;height:21px}.site-theme[data-mourning-position=bottom-right] .cc-reopen{bottom:calc(var(--mourning-size) * .8 + 16px + env(safe-area-inset-bottom,0px))}}
@media print{.cc-root{display:none!important}}
.cc-root[data-layout=card] .cc-banner{right:auto;max-width:520px;width:calc(100% - 40px);padding:24px}.cc-root[data-layout=card] .cc-banner-bottom{gap:12px}.cc-root[data-layout=card] .cc-actions{width:100%;display:grid;grid-template-columns:1fr 1fr}.cc-root[data-layout=card] .cc-actions>:last-child{grid-column:1/-1}
.cc-root .cc-dialog{position:fixed;inset:0;width:min(820px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 48px);margin:auto;padding:0;border:1px solid #ddd3bd;border-radius:22px;background:var(--cc-paper);color:var(--cc-ink);box-shadow:0 30px 90px #0c23394d;font:inherit;overflow:hidden}
.cc-root .cc-dialog[open]{display:flex;flex-direction:column}.cc-dialog::backdrop{background:#142a3c8c;backdrop-filter:blur(6px)}
.cc-modal-heading{padding:24px 30px;border-bottom:1px solid #e3e6e0;flex:none}.cc-modal-body{padding:24px 30px;overflow:auto;min-height:0;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--cc-accent) var(--cc-soft)}
.cc-modal-body>p{font-size:14px;line-height:1.9;margin:12px 0 18px;white-space:pre-line}.cc-root .cc-policy{display:inline-block;margin-bottom:20px;color:var(--cc-ink);text-decoration:underline;text-underline-offset:4px;overflow-wrap:anywhere}
.cc-category{padding:0;background:var(--cc-soft);border:1px solid #dde3e2;border-radius:14px;margin:16px 0;overflow:hidden}.cc-category summary{cursor:pointer;padding:18px;display:flex;align-items:center;gap:12px;justify-content:space-between;list-style:none}.cc-category summary::-webkit-details-marker{display:none}.cc-category>summary:before{content:'＋';font-size:18px;align-self:flex-start}.cc-category[open]>summary:before{content:'−'}.cc-category summary>span:first-of-type{flex:1;min-width:0}.cc-category strong{display:block}.cc-category strong small,.cc-statistics-heading h3 small{display:block;font-size:12px;font-weight:400;color:var(--cc-muted)}.cc-category summary>span>span{display:block;font-size:12px;color:var(--cc-muted);margin-top:5px}
.cc-required{white-space:nowrap;font-size:12px;padding:4px 8px;border:1px solid #c5d3c9;border-radius:20px;background:#e0ece3;color:#264733}.cc-category-body{padding:0 18px 18px;font-size:14px;line-height:1.9}.cc-category-body>p{margin-bottom:14px}
.cc-statistics-heading{padding:18px;display:flex;align-items:center;justify-content:space-between;gap:20px}.cc-statistics-heading p{font-size:12px;color:var(--cc-muted);margin-top:6px}.cc-statistics details>summary{padding-top:0;text-decoration:underline;text-underline-offset:4px;font-size:13px}
.cc-switch{position:relative;display:inline-flex;flex:none;cursor:pointer}.cc-switch input{position:absolute;width:100%;height:100%;opacity:0;margin:0;cursor:pointer}.cc-switch>span{display:block;width:50px;height:28px;border-radius:18px;background:#bcc6ce;box-shadow:inset 0 0 0 1px #8d9fab;pointer-events:none}.cc-switch>span:after{content:'';display:block;width:22px;height:22px;margin:3px;background:white;border-radius:50%;box-shadow:0 1px 4px #122a3b30;transition:transform .2s}.cc-switch input:checked+span{background:var(--cc-ink)}.cc-switch input:checked+span:after{transform:translateX(22px)}.cc-switch input:focus-visible+span{outline:3px solid var(--cc-accent);outline-offset:3px}
.cc-table-wrap{overflow:auto}.cc-root table{width:100%;border-collapse:collapse;table-layout:fixed;font-size:13px}.cc-root :is(th,td){text-align:left;border-bottom:1px solid #d5dfe1;padding:12px 8px;vertical-align:top;color:var(--cc-ink);overflow-wrap:anywhere}.cc-root th:first-child{width:45%}.cc-root td small{display:block;color:var(--cc-muted);font-size:12px}.cc-root td code{font:inherit;font-size:12px;overflow-wrap:anywhere}.cc-root .cc-note{color:var(--cc-muted);font-size:12px!important;margin:14px 0 0;line-height:1.8}
.cc-modal-footer{flex:none;padding:18px 30px;border-top:1px solid #e1e6df;background:var(--cc-paper)}.cc-modal-footer .cc-actions{justify-content:space-between}.cc-modal-footer .cc-save{margin-left:auto}.cc-root .cc-error{width:100%;color:#a52c30;font-size:13px;margin:12px 0;white-space:pre-line}.cc-preview-note{padding:10px;border:1px dashed var(--cc-accent);border-radius:8px;font-size:12px}
.cc-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
@media(max-width:640px){.cc-banner{left:10px;right:10px;bottom:10px;padding:18px;max-height:calc(100dvh - 20px);border-radius:14px}.cc-root[data-layout=card] .cc-banner{width:calc(100% - 20px);padding:18px}.cc-banner-heading{gap:10px}.cc-banner-heading img,.cc-modal-heading img{width:32px;height:42px}#cookie-consent h2{font-size:19px!important}.cc-description{margin:12px 0!important}.cc-banner-bottom{gap:8px}.cc-banner-bottom .cc-actions{display:grid;grid-template-columns:1fr 1fr;width:100%}.cc-banner-bottom .cc-actions>:last-child{grid-column:1/-1}.cc-root .cc-btn{min-width:0;padding:10px 12px;font-size:13px}.cc-root .cc-dialog{width:calc(100% - 20px);max-height:calc(100dvh - 20px);border-radius:16px}.cc-modal-heading{padding:16px;gap:12px}.cc-modal-body{padding:16px}.cc-modal-footer{padding:14px 16px}.cc-modal-footer .cc-actions{display:grid;grid-template-columns:1fr 1fr}.cc-modal-footer .cc-save{grid-column:1/-1;width:100%;margin:0}.cc-category summary{padding:14px;gap:6px;flex-wrap:wrap}.cc-required{margin-left:auto}.cc-category-body{padding:0 12px 14px}.cc-statistics-heading{padding:14px}.cc-root td,.cc-root th{padding:10px 5px}}
@media(prefers-reduced-motion:reduce){.cc-root .cc-btn,.cc-root .cc-reopen,.cc-reopen-label,.cc-switch>span:after{transition:none}.cc-root .cc-btn:hover,.cc-root .cc-reopen:hover{transform:none}}
@media(forced-colors:active){.cc-root :is(.cc-banner,.cc-dialog,.cc-btn,.cc-category,.cc-reopen,.cc-reopen-label){border-color:ButtonText;background:Canvas;color:CanvasText}.cc-switch>span{border:1px solid ButtonText}.cc-switch input:checked+span{background:Highlight}.cc-switch>span:after{background:ButtonText}}
