/* SUURA theme layer: dark is the default look, light is optional. Pages are authored in their
   native look (data-native on <html>); the other theme is produced by a colour inversion,
   with photos, video and the dark sidebar/panels re-inverted so they keep their look. */
html[data-theme]:not([data-theme="x"]){color-scheme:dark}
html[data-theme="light"]{color-scheme:light}
html[data-native="dark"][data-theme="light"],html[data-native="light"][data-theme="dark"]{filter:invert(1) hue-rotate(180deg)}
html[data-native="dark"][data-theme="light"] body,html[data-native="light"][data-theme="dark"] body{min-height:100vh}
html[data-theme] video,html[data-theme] .keep,html[data-theme] .split .r,html[data-theme] .side{}
html[data-native="dark"][data-theme="light"] video,
html[data-native="light"][data-theme="dark"] .side,html[data-native="light"][data-theme="dark"] .split .r,html[data-native="light"][data-theme="dark"] .keep{filter:invert(1) hue-rotate(180deg)}
/* toggle */
.tg{font:500 12px/1 'Helvetica Neue',Arial,sans-serif;letter-spacing:.06em;display:inline-flex;align-items:center;gap:7px;cursor:pointer;border-radius:999px;padding:9px 14px;border:1px solid rgba(255,255,255,.28);background:#1b1b1c;color:#f5f5f5}
.tg.fx{position:fixed;right:16px;bottom:16px;z-index:60;box-shadow:0 4px 18px rgba(0,0,0,.35)}
html[data-native="light"] .tg.fx,html[data-native="tokens"][data-theme="light"] .tg.fx{background:#fff;color:#0a0a0a;border-color:#cfcfd2}
.tg.in{margin:10px 8px 0;background:#232323;color:#efefef;border-color:#2c2c2c}
.tg:focus-visible{outline:2px solid #C7CAD0;outline-offset:2px}
@media(min-width:900px){html[data-native="tokens"] .tg.fx{left:28px;right:auto;bottom:88px}}
@media(min-width:761px){html[data-native="light"] .tg.fx{left:28px;right:auto;bottom:88px}}

/* Halloween cursors, switched on by theme.js only until 2 Nov 2026 */
html.hw,html.hw body{cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M16 8c0-3 1-4 3-5' stroke='%2366a34a' stroke-width='2.6' fill='none' stroke-linecap='round'/><ellipse cx='10.5' cy='19' rx='7' ry='9' fill='%23f2801e'/><ellipse cx='21.5' cy='19' rx='7' ry='9' fill='%23f2801e'/><ellipse cx='16' cy='19' rx='5' ry='9.6' fill='%23ff9a3c'/><path d='M10 17l2.6 2.8-5 0zM22 17l2.6 2.8-5 0z' fill='%23231300' transform='translate(-.3 -3.5) scale(1)'/><path d='M10.5 23.5q5.5 3.6 11 0' stroke='%23231300' stroke-width='1.8' fill='none' stroke-linecap='round'/></svg>") 6 6,auto}
html.hw a,html.hw button,html.hw select,html.hw summary,html.hw label,html.hw [role=button],html.hw input[type=submit]{cursor:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><path d='M29 29L12 12' stroke='%23111' stroke-width='4.6' stroke-linecap='round'/><path d='M29 29L12 12' stroke='%23d6d9de' stroke-width='2.4' stroke-linecap='round'/><path d='M8 1l1.6 4.4L14 7l-4.4 1.6L8 13 6.4 8.6 2 7l4.4-1.6z' fill='%23ffd54a' stroke='%23a67c00' stroke-width='.6'/><circle cx='15.5' cy='3.5' r='1.1' fill='%23fff'/><circle cx='3' cy='14' r='1' fill='%23fff'/></svg>") 8 7,pointer}
html.hw input,html.hw textarea{cursor:text}
/* fullscreen video escapes the page's inversion, so it must not be re-inverted either */
html[data-theme] video:fullscreen{filter:none!important}
html[data-theme] video:-webkit-full-screen{filter:none!important}

/* shared site footer: one tidy block on every public page */
.sf{box-sizing:border-box;width:100%;margin:56px 0 0;padding:26px 0 34px;border-top:1px solid rgba(255,255,255,.14);text-align:center;font-family:inherit;font-size:13px;line-height:1.7;letter-spacing:.03em;color:#a9a9a9}
.sf p{margin:0 0 10px}
.sf .sfn{display:flex;flex-wrap:wrap;justify-content:center;gap:6px 20px}
.sf a,.sf button{color:#c9c9c9;text-decoration:none;font:inherit;letter-spacing:inherit;background:none;border:0;padding:0;cursor:pointer;border-bottom:1px solid transparent}
.sf a:hover,.sf button:hover{color:#fff;border-bottom-color:currentColor}
@media (max-width:520px){.sf{margin-top:40px;padding:22px 0 30px}.sf .sfn{gap:6px 16px}}

.sf button{text-transform:none!important;letter-spacing:.03em!important;font-weight:400!important;font-size:13px!important}

/* long tables become readable cards on phones */
@media (max-width:640px){
 table.stack{display:block;border:0}table.stack tbody,table.stack thead{display:block}
 table.stack tr.sh{display:none}
 table.stack tr{display:block;margin:0 0 10px;padding:8px 14px;border:1px solid rgba(255,255,255,.14);border-radius:12px}
 table.stack td,table.stack th{display:block;width:auto!important;border:0!important;padding:5px 0!important;text-align:left}
 table.stack td::before{content:attr(data-l);display:block;font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#a9a9a9;margin-bottom:1px}
}

/* phones: leave room under the content so the floating Light/Dark button never covers a button or the footer */
@media(max-width:760px){html[data-theme] body{padding-bottom:72px}html[data-theme] .l{padding-bottom:72px}}
