/* Tarsis mobile v1: desktop rules remain untouched. */
.tm-header { display:none; }
@media (max-width: 1000px) {
 html { min-width:0!important; }
 body { min-width:0!important; margin:0; background-attachment:scroll!important; background-size:auto 800px!important; font-size:15px; }
 #ArtworkHelper,#Bodycontainer { display:block!important; min-width:0!important; max-width:100%!important; width:100%!important; height:auto!important; }
 #ContentRow { position:relative!important; top:0!important; display:flex; flex-direction:column; gap:16px; padding:12px 8px; box-sizing:border-box; }
 #ContentColumn { position:relative!important; width:100%!important; min-width:0!important; margin:0!important; order:1; }
 #MenuColumn { position:relative!important; left:auto!important; top:auto!important; margin:0 auto!important; order:0; }
 .tm-ready #MenuColumn { display:none!important; }
 #TarsisCanaryLogo,#LeftArtwork,#RightArtwork { display:none!important; }
 #ThemeboxesColumn { position:relative!important; top:auto!important; right:auto!important; width:100%!important; margin:0!important; order:2; }
 #Themeboxes { display:flex!important; flex-wrap:wrap; align-items:flex-start; justify-content:center; gap:12px; }
 #Themeboxes .tarsis16-online { position:relative!important; top:auto!important; left:auto!important; margin:0 20px; }
 #ContentColumn .Content,#ContentHelper,#ContentColumn .Box { min-width:0!important; width:auto!important; margin-left:0!important; margin-right:0!important; }
 #ContentColumn .BoxContent { min-width:0!important; margin:0!important; padding:12px 10px!important; overflow-x:auto; overflow-wrap:anywhere; font-size:14px; line-height:1.6; }
 #ContentColumn .BoxContent img { max-width:100%; }
 #ContentColumn .BoxContent p img { height:auto; }
 #ContentColumn .BoxContent iframe { max-width:100%; }
 #ContentColumn .BoxContent input:not([type=checkbox]):not([type=radio]):not([type=image]),#ContentColumn .BoxContent select,#ContentColumn .BoxContent textarea { box-sizing:border-box; max-width:100%; font-size:16px; }
 #ContentColumn .BoxContent input:not([type=checkbox]):not([type=radio]):not([type=image]):not([type=submit]):not([type=button]),#ContentColumn .BoxContent select { min-height:40px; }
 #ContentColumn .BoxContent input[type=submit],#ContentColumn .BoxContent button { min-height:40px; }
 #ContentColumn .BoxContent table { max-width:100%; }
 #ContentColumn .BoxContent .TableContainer { max-width:100%; overflow-x:auto; }
 #ContentColumn .BoxContent h1 { font-size:24px; } #ContentColumn .BoxContent h2 { font-size:20px; }
 #ContentColumn .BoxContent [style*="flex: 1 1 260px"] { min-width:0!important; box-sizing:border-box; }
 #Footer { box-sizing:border-box; padding:12px; font-size:11px; line-height:1.6; }
 .tm-header { display:block; color:#f2dfb6; background:linear-gradient(135deg,rgba(31,18,19,.96),rgba(12,14,19,.96)); border-bottom:1px solid #84603c; padding:10px 14px 14px; }
 .tm-bar { display:flex; align-items:center; justify-content:space-between; gap:12px; }
 .tm-brand { display:flex; align-items:center; min-width:0; color:#ebcb8c; text-decoration:none; font:bold 26px Georgia,serif; }
 .tm-brand img { width:180px; max-width:55vw; height:74px; object-fit:contain; }
 .tm-toggle { min-width:76px; min-height:44px; border:1px solid #b38b50; border-radius:6px; background:#31211d; color:#ffe3a5; font:bold 15px Arial,sans-serif; cursor:pointer; }
 .tm-shortcuts { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px; margin-top:8px; }
 .tm-shortcuts a { display:flex; align-items:center; justify-content:center; min-height:44px; border:1px solid #876536; border-radius:6px; background:#271e1b; color:#ffe3a5; text-decoration:none; text-align:center; font:600 13px Arial,sans-serif; }
 .tm-nav { margin-top:12px; border-top:1px solid #705139; font:15px Arial,sans-serif; }
 .tm-nav[hidden] { display:none!important; }
 .tm-nav details { border-bottom:1px solid #503d32; }
 .tm-nav summary { padding:15px 8px; cursor:pointer; font-weight:bold; color:#eac98b; }
 .tm-nav a { display:block; padding:13px 18px; min-height:44px; box-sizing:border-box; color:#f4e6cd; text-decoration:none; border-top:1px solid #352b26; }
 .tm-header a:focus-visible,.tm-header button:focus-visible,.tm-header summary:focus-visible { outline:2px solid #ffe4aa; outline-offset:2px; }
 .tm-nav a[aria-current=page] { background:#51342a; color:#fff0b8; }
}
@media (max-width:480px) {
 #ContentColumn .Border_2,#ContentColumn .Border_3 { padding-left:0!important; padding-right:0!important; border-left-width:2px!important; border-right-width:2px!important; }
 #ContentRow { padding-left:5px; padding-right:5px; }
}
