/* Three site themes on case pages: pink / white (light) / black (dark).
   The homepage defines the same pink palette inline. */
html[data-theme="pink"] {
  --text: #000;
  --heading: #000;
  --intro-text: #000;
  --muted: #2a1220;
  --link: #2a1220;
  --link-hover: #000;
  --focus: #000;
  --bg: #ed2e8e;
  --pearl-base: #ed2e8e;
  --bg-fade: rgba(237, 46, 142, 0);
  --bg-fade-mid: rgba(237, 46, 142, .82);
  --glass: rgba(237, 46, 142, .55);
  --glass-fade: rgba(237, 46, 142, 0);
  background-color: #ed2e8e;
}

/* Cursor per theme: black on pink, pink on white, white on black. */
@media (hover: hover) and (pointer: fine) {
  html[lang][data-theme="pink"] { --fig-cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2254%22%20height%3D%2240%22%20viewBox%3D%220%200%2054%2040%22%3E%3Cpath%20d%3D%22M3.2%202.6%20C2.3%202.2%201.6%203%202%203.9%20L8.4%2019.2%20C8.8%2020.1%2010.1%2020%2010.3%2019%20L12.2%2012.2%20L19%2010.3%20C20%2010.1%2020.1%208.8%2019.2%208.4%20Z%22%20fill%3D%22%23090909%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2219%22%20width%3D%2238%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23090909%22/%3E%3Ctext%20x%3D%2233.0%22%20y%3D%2231.6%22%20text-anchor%3D%22middle%22%20font-family%3D%22Inter%2C-apple-system%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2211%22%20font-weight%3D%22600%22%20fill%3D%22%23fff%22%3EYou%3C/text%3E%3C/svg%3E") 2 2, pointer; --fig-cursor-case: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2293%22%20height%3D%2240%22%20viewBox%3D%220%200%2093%2040%22%3E%3Cpath%20d%3D%22M3.2%202.6%20C2.3%202.2%201.6%203%202%203.9%20L8.4%2019.2%20C8.8%2020.1%2010.1%2020%2010.3%2019%20L12.2%2012.2%20L19%2010.3%20C20%2010.1%2020.1%208.8%2019.2%208.4%20Z%22%20fill%3D%22%23090909%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2219%22%20width%3D%2277%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23090909%22/%3E%3Ctext%20x%3D%2252.5%22%20y%3D%2231.6%22%20text-anchor%3D%22middle%22%20font-family%3D%22Inter%2C-apple-system%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2211%22%20font-weight%3D%22600%22%20fill%3D%22%23fff%22%3EView%20case%3C/text%3E%3C/svg%3E") 2 2, pointer; }
  html[lang][data-theme="light"] { --fig-cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2254%22%20height%3D%2240%22%20viewBox%3D%220%200%2054%2040%22%3E%3Cpath%20d%3D%22M3.2%202.6%20C2.3%202.2%201.6%203%202%203.9%20L8.4%2019.2%20C8.8%2020.1%2010.1%2020%2010.3%2019%20L12.2%2012.2%20L19%2010.3%20C20%2010.1%2020.1%208.8%2019.2%208.4%20Z%22%20fill%3D%22%23ed2e8e%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2219%22%20width%3D%2238%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23ed2e8e%22/%3E%3Ctext%20x%3D%2233.0%22%20y%3D%2231.6%22%20text-anchor%3D%22middle%22%20font-family%3D%22Inter%2C-apple-system%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2211%22%20font-weight%3D%22600%22%20fill%3D%22%23fff%22%3EYou%3C/text%3E%3C/svg%3E") 2 2, pointer; --fig-cursor-case: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2293%22%20height%3D%2240%22%20viewBox%3D%220%200%2093%2040%22%3E%3Cpath%20d%3D%22M3.2%202.6%20C2.3%202.2%201.6%203%202%203.9%20L8.4%2019.2%20C8.8%2020.1%2010.1%2020%2010.3%2019%20L12.2%2012.2%20L19%2010.3%20C20%2010.1%2020.1%208.8%2019.2%208.4%20Z%22%20fill%3D%22%23ed2e8e%22%20stroke%3D%22%23fff%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2219%22%20width%3D%2277%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23ed2e8e%22/%3E%3Ctext%20x%3D%2252.5%22%20y%3D%2231.6%22%20text-anchor%3D%22middle%22%20font-family%3D%22Inter%2C-apple-system%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2211%22%20font-weight%3D%22600%22%20fill%3D%22%23fff%22%3EView%20case%3C/text%3E%3C/svg%3E") 2 2, pointer; }
  html[lang][data-theme="dark"] { --fig-cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2254%22%20height%3D%2240%22%20viewBox%3D%220%200%2054%2040%22%3E%3Cpath%20d%3D%22M3.2%202.6%20C2.3%202.2%201.6%203%202%203.9%20L8.4%2019.2%20C8.8%2020.1%2010.1%2020%2010.3%2019%20L12.2%2012.2%20L19%2010.3%20C20%2010.1%2020.1%208.8%2019.2%208.4%20Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23121315%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2219%22%20width%3D%2238%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23fff%22/%3E%3Ctext%20x%3D%2233.0%22%20y%3D%2231.6%22%20text-anchor%3D%22middle%22%20font-family%3D%22Inter%2C-apple-system%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2211%22%20font-weight%3D%22600%22%20fill%3D%22%23121315%22%3EYou%3C/text%3E%3C/svg%3E") 2 2, pointer; --fig-cursor-case: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2293%22%20height%3D%2240%22%20viewBox%3D%220%200%2093%2040%22%3E%3Cpath%20d%3D%22M3.2%202.6%20C2.3%202.2%201.6%203%202%203.9%20L8.4%2019.2%20C8.8%2020.1%2010.1%2020%2010.3%2019%20L12.2%2012.2%20L19%2010.3%20C20%2010.1%2020.1%208.8%2019.2%208.4%20Z%22%20fill%3D%22%23fff%22%20stroke%3D%22%23121315%22%20stroke-width%3D%221.5%22%20stroke-linejoin%3D%22round%22/%3E%3Crect%20x%3D%2214%22%20y%3D%2219%22%20width%3D%2277%22%20height%3D%2218%22%20rx%3D%225%22%20fill%3D%22%23fff%22/%3E%3Ctext%20x%3D%2252.5%22%20y%3D%2231.6%22%20text-anchor%3D%22middle%22%20font-family%3D%22Inter%2C-apple-system%2CHelvetica%2CArial%2Csans-serif%22%20font-size%3D%2211%22%20font-weight%3D%22600%22%20fill%3D%22%23121315%22%3EView%20case%3C/text%3E%3C/svg%3E") 2 2, pointer; }
}

/* RU-origin English cases retain the bilingual light/dark control. */
.theme-toggle--bilingual { display: none !important; }
html.lang-switch-enabled .theme-switch { display: none !important; }
html.lang-switch-enabled .theme-toggle--bilingual { display: inline-flex !important; }
