/* Appearance shares the site's design-system tokens and component geometry. */
:root{color-scheme:light;--ds-page:#f3f3f3;}
#theme_toggle[hidden]{display:none !important;}
#header #header_left #theme_toggle{cursor:pointer;}
#header #theme_toggle i{font-size:19px;line-height:1;}
@media(max-width:380px){
 #header{--header-gap:6px;}
 #header #logo_container img{height:26px;}
 #header #header_left .language_switch{min-width:58px;padding-inline:8px !important;}
}
@media screen {
 html[data-theme="dark"]{
  color-scheme:dark;
  --main-color:#43d88c;--secondary-color:#dce8e4;
  --ds-brand:#52c9bb;--ds-brand-strong:#72d4ca;
  --ds-brand-strip:radial-gradient(circle farthest-corner at 10% 20%,#183b38 0%,#1c392e 99.7%);
  --ds-page:#101b1c;--ds-surface:#1b2829;--ds-surface-muted:#253435;
  --ds-text:#dce8e4;--ds-text-muted:#a9bbb5;--ds-on-brand:#10251d;
  --ds-border:#354846;--ds-border-strong:#617b74;
  --ds-shadow-sm:0 1px 4px rgba(0,0,0,.2);
  --ds-shadow-md:0 3px 12px rgba(0,0,0,.35);
  --ds-shadow-surface:0 2px 5px rgba(0,0,0,.18),0 8px 20px -12px rgba(0,0,0,.5);
  --ds-shadow-surface-hover:0 4px 10px rgba(0,0,0,.25),0 12px 26px -12px rgba(0,0,0,.55);
 }
 html[data-theme="dark"] body{background:var(--ds-page);color:var(--ds-text);}
 html[data-theme="dark"] .theme_gradient{background-image:radial-gradient(circle farthest-corner at 10% 20%,#006d70 0%,#008143 99.7%) !important;}
 html[data-theme="dark"] #post_sort{background:var(--ds-surface);border-color:var(--ds-border);}
 html[data-theme="dark"] #categories{--category-marker-color:var(--ds-surface);}
 html[data-theme="dark"] #post_sort #post_listing li a::after{border-bottom-color:var(--ds-page);}
 html[data-theme="dark"] :is(#home .flex-item,.block_style,#post_actions,#toc,.search-results__header,.fancybox-content,.infoWindow){background-color:var(--ds-surface);color:var(--ds-text);border-color:var(--ds-border);}
 html[data-theme="dark"] #container #content div#content_container{background:var(--ds-surface);}
 html[data-theme="dark"] :is(#container,.page-container) :is(#left,#right) .side_block>.block_style{background:var(--ds-surface);}
 html[data-theme="dark"] :is(.gray,.grey,.lightgray,.post_details,.post_info,.post_meta){color:var(--ds-text-muted) !important;}
 html[data-theme="dark"] .details,html[data-theme="dark"] .details :is(a,i){color:var(--ds-text-muted);}
 html[data-theme="dark"] :is(.gray,.grey,.lightgray) a{color:var(--ds-text-muted);}
 html[data-theme="dark"] :is(.image_container,.img_container,.ImageWrapper,#page_inside .image){background-color:var(--ds-surface-muted);}
 html[data-theme="dark"] .source_wrapper{background-image:none;}
 html[data-theme="dark"] .source_wrapper::before{content:"";position:absolute;inset:0;background:var(--ds-surface);-webkit-mask:url('/images/source_wrapper.svg') center/100% 100% no-repeat;mask:url('/images/source_wrapper.svg') center/100% 100% no-repeat;pointer-events:none;}
 html[data-theme="dark"] .source_wrapper>div{position:relative;}
 html[data-theme="dark"] .source_wrapper .icon{color:#10251d;}
 html[data-theme="dark"] #page_inside .image>figcaption{background:var(--ds-surface-muted);color:var(--ds-text-muted);}
 html[data-theme="dark"] #home #post_actions a,
 html[data-theme="dark"] a.button{background:var(--ds-surface-muted);color:var(--ds-text);}
 html[data-theme="dark"] #home #post_actions a:is(:hover,:focus-visible,.active),
 html[data-theme="dark"] a.button:is(:hover,:focus-visible,.active){background:var(--main-color);color:#10251d;}
 html[data-theme="dark"] :is(button.button,.dajran-search-submit){background:var(--ds-brand-strong);color:#10251d;}
 html[data-theme="dark"] :is(button.button,.dajran-search-submit):hover{background:#91e5d7;color:#10251d;}
 html[data-theme="dark"] button.button::before,html[data-theme="dark"] button.button::after{color:inherit;}
 html[data-theme="dark"] .post-tags a.tag{background:var(--ds-surface-muted);color:var(--ds-brand-strong);border-color:var(--ds-border);}
 html[data-theme="dark"] .post-tags a.tag:hover{background:#284b40;border-color:var(--ds-brand-strong);}
 html[data-theme="dark"] :is(blockquote,.infobox,.infobox div.info_icon){background:var(--ds-surface-muted);color:var(--ds-text);}
 html[data-theme="dark"] blockquote span{color:var(--ds-text);}
 html[data-theme="dark"] #comments,html[data-theme="dark"] .comment{border-color:var(--ds-border);}
 html[data-theme="dark"] #comments .comment::after{border-bottom-color:var(--ds-border);}
 html[data-theme="dark"] :is(input,textarea,select){color:var(--ds-text);}
 html[data-theme="dark"] :is(input.editbox,textarea,select,.textarea,#comment_form input.editbox,#comment_form textarea.textarea,.window_form input.editbox,.window_form textarea,.window_form select,#share_post #share-link-value){background-color:var(--ds-surface-muted);color:var(--ds-text);border-color:var(--ds-border-strong);}
 html[data-theme="dark"] :is(input,textarea)::placeholder{color:var(--ds-text-muted);opacity:1;}
 html[data-theme="dark"] .dajran-search-form input[type=search]::placeholder{color:var(--ds-text-muted);}
 html[data-theme="dark"] #newsletter_block .newsletter_input{background:var(--ds-surface);border-color:var(--ds-border);}
 html[data-theme="dark"] #newsletter_block #newsletter_input{background:transparent;color:var(--ds-text);}
 html[data-theme="dark"] #footer{background:#142022;}
 html[data-theme="dark"] #footer :is(div,p,a){color:var(--ds-text-muted);}
 html[data-theme="dark"] #footer_social_icons a{border-color:var(--ds-text-muted);}
 html[data-theme="dark"] #footer .page-container>div[style*="border-top"]{border-color:var(--ds-border) !important;}
 html[data-theme="dark"] #backtotop::before{background:var(--ds-surface);}
 html[data-theme="dark"] #backtotop:hover::before{background:var(--ds-surface-muted);}
 html[data-theme="dark"] #backtotop i{color:var(--main-color);}
 html[data-theme="dark"] .window_form .window_title,
 html[data-theme="dark"] .window_form .window_content :is(h2,h3,h4),
 html[data-theme="dark"] .infoWindow>h1:first-child,
 html[data-theme="dark"] #share_post .window_title{color:var(--ds-brand-strong);background-color:var(--ds-surface-muted);}
 html[data-theme="dark"] #share_post :is(.share-intro,.share-qr p,#share-copy-status){color:var(--ds-text-muted);}
 html[data-theme="dark"] #share_post a.share_social_icon{background:var(--ds-surface-muted);border-color:var(--ds-border);color:var(--ds-text);}
 html[data-theme="dark"] #share_post a.share_social_icon:is(:hover,:focus){background:#284b40;border-color:var(--ds-brand-strong);}
 html[data-theme="dark"] #share_post a.share_social_icon:is(:hover,:focus) :is(i,span){color:var(--ds-text);}
 html[data-theme="dark"] :is(#share_post .share-qr,.window_form #styled_list li){border-color:var(--ds-border);}
 html[data-theme="dark"] .window_form #styled_list a{color:var(--ds-brand-strong);}
 html[data-theme="dark"] .form_error{background:#492d30;color:#ffb9b2;}
 html[data-theme="dark"] .search-results #posts span[style*="color: #ff0000"]{background:#284b40;}
 html[data-theme="dark"] :target{animation:none;}
}
@media print{#theme_toggle{display:none !important;}html{color-scheme:light;}}
