Last modified by Veronika Kocher on Friday, 18 Sep 2026 16:47

From version 39.21
edited by Veronika Kocher
on Thursday, 03 Sep 2026 9:18
Change comment: There is no comment for this version
To version 41.1
edited by Veronika Kocher
on Thursday, 03 Sep 2026 15:57
Change comment: There is no comment for this version

Summary

Details

Page properties
Content
... ... @@ -2,18 +2,14 @@
2 2  
3 3  The **Art & Research Services Navigator** helps you find the right guidance, services and resources for each stage of your project.
4 4  
5 -{{info title="How responsibilities work"}}
6 -The navigator brings services together around the project lifecycle and the researcher's task. It is a navigation layer across university services, not a separate organisational unit.
5 +{{info title="Support for Your Project:"}}
7 7  
8 -**Support Kunst und Forschung (SKF)** supports project and funding activities — especially project development, funding and calls, proposals, and coordination of funded projects — and, where useful, connects them with the University's relevant services.
7 +
8 + **Support Kunst und Forschung (SKF)** provides guidance for projects and grant applications and collaborates with the appropriate university services as needed.
9 9  
10 -Depending on the question, these may include the **University Library / Research Data Management & Repository**, **IT**, **Legal and Data Protection**, **Finance and Personnel**, **Publications and Communication**, **Event Management**, the **International Office** and other services.
11 -
12 -The **institute, department or other host unit** remains the artistic or academic home of the project. The navigator brings these offers together along the project stages so you can start from your need rather than from the organisational chart.
10 + The Navigator guides you through the project phases to the resources and points of contact relevant to your project.
13 13  {{/info}}
14 14  
15 -
16 -
17 17  {{html clean="false"}}
18 18  <section data-arsn-search-block-fix="v5" style="margin:20px 0 26px 0;padding:16px 18px;border:1px solid #e3ded6;border-radius:10px;background:#fcfbf8;box-shadow:0 1px 2px rgba(0,0,0,.035);">
19 19   <h2 style="font-size:20px;margin:0 0 6px 0;color:#35312d;">Search the Art &amp; Research Services Navigator</h2>
... ... @@ -640,21 +640,132 @@
640 640  )))
641 641  
642 642  {{html clean="false"}}
643 -<!-- SN_HORIZONTAL_BOX_HARMONIZER_START -->
644 -<style data-sn-horizontal-box-harmonizer="1">
645 -[data-sn-equal-height-managed="1"]{box-sizing:border-box}
646 -@media(max-width:767px){
647 - [data-sn-equal-height-managed="1"]{min-height:0!important}
639 +<!-- SN_SERVICE_NAVIGATOR_MASTER_STYLE_START -->
640 +
641 +<style data-sn-service-navigator-master="1">
642 +/* =========================================================
643 + MASTER TYPOGRAPHY
644 + ========================================================= */
645 +#xwikicontent h1,
646 +#xwikicontent h2,
647 +#xwikicontent h3,
648 +#xwikicontent h4,
649 +#xwikicontent h5,
650 +#xwikicontent h6,
651 +#xwikicontent .box-title,
652 +#xwikicontent [role="heading"],
653 +#xwikicontent h1 a,
654 +#xwikicontent h2 a,
655 +#xwikicontent h3 a,
656 +#xwikicontent h4 a,
657 +#xwikicontent h5 a,
658 +#xwikicontent h6 a,
659 +#xwikicontent .box-title a,
660 +#xwikicontent [role="heading"] a{
661 + text-align:left!important;
662 + text-justify:auto!important;
663 + word-spacing:normal!important;
648 648  }
665 +
666 +/* =========================================================
667 + COMING SOON / IN VORBEREITUNG
668 + ========================================================= */
669 +.sn-coming-soon-badge{
670 + display:inline-block;
671 + vertical-align:middle;
672 + margin-left:10px;
673 + padding:4px 8px;
674 + border-radius:14px;
675 + border:1px solid #efd9cc;
676 + background:#fff4ee;
677 + color:#8a4d36;
678 + font-size:11px;
679 + font-weight:700;
680 + letter-spacing:.055em;
681 + line-height:1.2;
682 + white-space:nowrap;
683 +}
684 +
685 +/* =========================================================
686 + NATIVE / DETAIL CALLOUT GEOMETRY
687 + Preserve existing backgrounds.
688 + ========================================================= */
689 +#xwikicontent .arsn-info,
690 +#xwikicontent .dmp-info,
691 +#xwikicontent .ido-info,
692 +#xwikicontent .pp-info,
693 +#xwikicontent .infomessage{
694 + box-sizing:border-box!important;
695 + border-left:4px solid #21b6d7!important;
696 + border-radius:8px;
697 + text-align:left!important;
698 + word-spacing:normal!important;
699 +}
700 +
701 +#xwikicontent .arsn-warn,
702 +#xwikicontent .dmp-warn,
703 +#xwikicontent .ido-warn,
704 +#xwikicontent .pp-warn,
705 +#xwikicontent .warn,
706 +#xwikicontent .warning,
707 +#xwikicontent .warningmessage,
708 +#xwikicontent .errormessage{
709 + box-sizing:border-box!important;
710 + border-left:4px solid #e94b13!important;
711 + border-radius:8px;
712 + text-align:left!important;
713 + word-spacing:normal!important;
714 +}
715 +
716 +[data-sn-master-equal-height],
717 +[data-sn-master-first-row]{
718 + box-sizing:border-box;
719 +}
720 +
721 +/* =========================================================
722 + FULL-WIDTH THREE-LINE NUMBER / TITLE / SUBTITLE BLOCKS
723 + ========================================================= */
724 +#xwikicontent .arsn-area-label[data-sn-three-line="1"]{
725 + display:grid!important;
726 + grid-template-columns:minmax(0,1fr)!important;
727 + grid-auto-rows:auto!important;
728 + width:100%!important;
729 + max-width:none!important;
730 + box-sizing:border-box!important;
731 + justify-items:start!important;
732 + align-items:start!important;
733 + gap:2px!important;
734 + text-align:left!important;
735 + text-align-last:left!important;
736 + text-justify:auto!important;
737 + word-spacing:normal!important;
738 + white-space:normal!important;
739 +}
740 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .arsn-area-number,
741 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .sn-area-label-title,
742 +#xwikicontent .arsn-area-label[data-sn-three-line="1"] > .arsn-area-action{
743 + display:block!important;
744 + width:100%!important;
745 + margin:0!important;
746 + text-align:left!important;
747 + text-align-last:left!important;
748 + text-justify:auto!important;
749 + word-spacing:normal!important;
750 + white-space:normal!important;
751 +}
649 649  </style>
650 -<script data-sn-horizontal-box-harmonizer="1">
753 +
754 +<script data-sn-service-navigator-master="1">
651 651  (function(){
652 652   "use strict";
653 653  
758 + var PAGE_KIND="overview";
759 + var PLACEHOLDER=false;
760 + var PLACEHOLDER_LABEL="COMING SOON";
761 +
654 654   var MOBILE_MAX=767;
655 - var ROW_TOLERANCE=4;
656 - var MIN_W=150;
657 - var MIN_H=36;
763 + var ROW_TOLERANCE=6;
764 + var RESIZE_DEBOUNCE=220;
658 658  
659 659   var root=
660 660   document.getElementById("xwikicontent")||
... ... @@ -664,212 +664,1268 @@
664 664  
665 665   if(!root)return;
666 666  
667 - var managed=new Set();
668 - var raf=0;
774 + var managedHeight=new Set();
775 + var managedMargin=new Set();
776 + var originalHeight=new WeakMap();
777 + var originalMargin=new WeakMap();
669 669  
670 - function num(v){
671 - var n=parseFloat(v);
779 + var resizeTimer=0;
780 + var running=false;
781 +
782 + var THEMES=[
783 + {
784 + name:"BLUE",
785 + accent:"#21b6d7",
786 + bg:"#eaf7fb",
787 + text:"#315d68",
788 + labels:[
789 + "HIER STARTEN",
790 + "ENTSCHEIDEN",
791 + "ÜBERPRÜFEN & ANPASSEN",
792 + "START HERE",
793 + "DECIDE",
794 + "REVIEW & ADAPT"
795 + ]
796 + },
797 + {
798 + name:"RED",
799 + accent:"#e94b13",
800 + bg:"#fff1ec",
801 + text:"#8a4d36",
802 + labels:[
803 + "PLANEN & ORGANISIEREN",
804 + "ORGANISIEREN & DOKUMENTIEREN",
805 + "PUBLIZIEREN & PRÄSENTIEREN",
806 + "PLAN & ORGANISE",
807 + "PLAN & ORGANIZE",
808 + "ORGANISE & DOCUMENT",
809 + "ORGANIZE & DOCUMENT",
810 + "PUBLISH & PRESENT"
811 + ]
812 + },
813 + {
814 + name:"YELLOW",
815 + accent:"#f0aa00",
816 + bg:"#fff8e7",
817 + text:"#785b17",
818 + labels:[
819 + "SCHÜTZEN & KLÄREN",
820 + "STANDARDISIEREN & IDENTIFIZIEREN",
821 + "ÖFFNEN, NACHNUTZEN & AUFFINDBAR MACHEN",
822 + "PROTECT & CLARIFY",
823 + "STANDARDISE & IDENTIFY",
824 + "STANDARDIZE & IDENTIFY",
825 + "OPEN, REUSE & MAKE FINDABLE"
826 + ]
827 + },
828 + {
829 + name:"GREEN",
830 + accent:"#38b76a",
831 + bg:"#edf9f1",
832 + text:"#3f7451",
833 + labels:[
834 + "INFRASTRUKTUR EINRICHTEN",
835 + "INFRASTRUKTUR & ZUSAMMENARBEIT EINRICHTEN",
836 + "SPEICHERN & ZUGRIFF STEUERN",
837 + "REPOSITORIUM, ERHALTEN & ÜBERGEBEN",
838 + "SET UP INFRASTRUCTURE",
839 + "SET UP INFRASTRUCTURE & COLLABORATION",
840 + "STORE & CONTROL ACCESS",
841 + "REPOSITORY, PRESERVE & HAND OVER"
842 + ]
843 + }
844 + ];
845 +
846 + function num(value){
847 + var n=parseFloat(value);
672 672   return Number.isFinite(n)?n:0;
673 673   }
674 674  
851 + function norm(value){
852 + return String(value||"")
853 + .replace(/\s+/g," ")
854 + .trim()
855 + .toUpperCase();
856 + }
857 +
675 675   function visible(el){
676 676   if(!el||el.nodeType!==1)return false;
677 - var s=getComputedStyle(el);
678 - if(s.display==="none"||s.visibility==="hidden"||Number(s.opacity)===0)return false;
679 - var r=el.getBoundingClientRect();
680 - return r.width>=MIN_W&&r.height>=MIN_H;
860 +
861 + var style=getComputedStyle(el);
862 + var rect=el.getBoundingClientRect();
863 +
864 + return (
865 + style.display!=="none"&&
866 + style.visibility!=="hidden"&&
867 + rect.width>20&&
868 + rect.height>4
869 + );
681 681   }
682 682  
683 - function excluded(el){
684 - return !el.matches||el.matches(
685 - "button,input,select,textarea,option,label,img,svg,canvas,table,thead,tbody,tfoot,tr,td,th,summary,script,style,noscript,template,.btn,.chip,[role=button]"
872 + function saveStyle(el,map,property){
873 + if(map.has(el))return;
874 +
875 + map.set(el,{
876 + value:el.style.getPropertyValue(property),
877 + priority:el.style.getPropertyPriority(property)
878 + });
879 + }
880 +
881 + function restoreStyle(el,map,property){
882 + var original=map.get(el);
883 +
884 + if(original&&original.value){
885 + el.style.setProperty(
886 + property,
887 + original.value,
888 + original.priority||""
889 + );
890 + }else{
891 + el.style.removeProperty(property);
892 + }
893 + }
894 +
895 + function resetRuntime(){
896 + managedHeight.forEach(function(el){
897 + restoreStyle(
898 + el,
899 + originalHeight,
900 + "min-height"
901 + );
902 + el.removeAttribute(
903 + "data-sn-master-equal-height"
904 + );
905 + });
906 +
907 + managedMargin.forEach(function(el){
908 + restoreStyle(
909 + el,
910 + originalMargin,
911 + "margin-top"
912 + );
913 + el.removeAttribute(
914 + "data-sn-master-first-row"
915 + );
916 + });
917 +
918 + managedHeight.clear();
919 + managedMargin.clear();
920 + }
921 +
922 + function themeFor(text){
923 + var value=norm(text);
924 +
925 + for(var i=0;i<THEMES.length;i++){
926 + for(var j=0;j<THEMES[i].labels.length;j++){
927 + var label=THEMES[i].labels[j];
928 +
929 + if(
930 + value===label||
931 + value.indexOf(label+" ")===0||
932 + value.indexOf(label+" -")===0||
933 + value.indexOf(label+" ·")===0
934 + ){
935 + return THEMES[i];
936 + }
937 + }
938 + }
939 +
940 + return null;
941 + }
942 +
943 + /* =======================================================
944 + BORDERLESS FILLED RED/ORANGE CTA BUTTONS
945 + ======================================================= */
946 +
947 + function colourDistance(a,b){
948 + return Math.sqrt(
949 + Math.pow(a[0]-b[0],2)+
950 + Math.pow(a[1]-b[1],2)+
951 + Math.pow(a[2]-b[2],2)
686 686   );
687 687   }
688 688  
689 - function namedLikeBox(el){
690 - var c=typeof el.className==="string"?el.className:"";
691 - return /(^|[\s_-])(box|card|tile|panel|role|check|service|source|call|area|detail|resource|topic|warn|info)([\s_-]|$)/i.test(c);
955 + function makeFilledRedOrangeCTAsBorderless(){
956 + var RED_ORANGE=[233,75,19];
957 +
958 + Array.from(
959 + root.querySelectorAll(
960 + 'a,button,[role="button"],input[type="submit"],input[type="button"]'
961 + )
962 + ).forEach(function(el){
963 + if(!visible(el))return;
964 +
965 + var style=getComputedStyle(el);
966 + var rgb=parseRGB(style.backgroundColor);
967 +
968 + if(!rgb)return;
969 +
970 + if(
971 + colourDistance(
972 + rgb,
973 + RED_ORANGE
974 + )>55
975 + ){
976 + return;
977 + }
978 +
979 + var rect=el.getBoundingClientRect();
980 +
981 + if(
982 + rect.width<80||
983 + rect.height<24
984 + ){
985 + return;
986 + }
987 +
988 + el.style.setProperty(
989 + "border",
990 + "none",
991 + "important"
992 + );
993 +
994 + el.style.setProperty(
995 + "border-left",
996 + "none",
997 + "important"
998 + );
999 +
1000 + el.style.setProperty(
1001 + "border-top",
1002 + "none",
1003 + "important"
1004 + );
1005 +
1006 + el.style.setProperty(
1007 + "border-right",
1008 + "none",
1009 + "important"
1010 + );
1011 +
1012 + el.style.setProperty(
1013 + "border-bottom",
1014 + "none",
1015 + "important"
1016 + );
1017 +
1018 + el.style.setProperty(
1019 + "box-shadow",
1020 + "none",
1021 + "important"
1022 + );
1023 + });
692 692   }
693 693  
694 - function boxLike(el){
695 - if(!visible(el)||excluded(el))return false;
696 - var s=getComputedStyle(el);
697 - var r=el.getBoundingClientRect();
698 - var border=
699 - num(s.borderTopWidth)+num(s.borderRightWidth)+
700 - num(s.borderBottomWidth)+num(s.borderLeftWidth);
701 - var radius=Math.max(
702 - num(s.borderTopLeftRadius),num(s.borderTopRightRadius),
703 - num(s.borderBottomLeftRadius),num(s.borderBottomRightRadius)
1026 + /* =======================================================
1027 + FULL-WIDTH THREE-LINE AREA LABELS
1028 + ======================================================= */
1029 +
1030 + function compactText(value){
1031 + return String(value||"")
1032 + .replace(/\s+/g," ")
1033 + .trim();
1034 + }
1035 +
1036 + function makeThreeLineAreaLabels(){
1037 + Array.from(
1038 + root.querySelectorAll(
1039 + ".arsn-area-label"
1040 + )
1041 + ).forEach(function(label){
1042 + if(
1043 + label.getAttribute(
1044 + "data-sn-three-line"
1045 + )==="1"
1046 + ){
1047 + return;
1048 + }
1049 +
1050 + var number=
1051 + label.querySelector(
1052 + ":scope > .arsn-area-number"
1053 + );
1054 +
1055 + var action=
1056 + label.querySelector(
1057 + ":scope > .arsn-area-action"
1058 + );
1059 +
1060 + if(
1061 + !number||
1062 + !action
1063 + ){
1064 + return;
1065 + }
1066 +
1067 + var clone=
1068 + label.cloneNode(true);
1069 +
1070 + var cloneNumber=
1071 + clone.querySelector(
1072 + ":scope > .arsn-area-number"
1073 + );
1074 +
1075 + var cloneAction=
1076 + clone.querySelector(
1077 + ":scope > .arsn-area-action"
1078 + );
1079 +
1080 + if(cloneNumber){
1081 + cloneNumber.remove();
1082 + }
1083 +
1084 + if(cloneAction){
1085 + cloneAction.remove();
1086 + }
1087 +
1088 + var titleText=
1089 + compactText(
1090 + clone.textContent
1091 + );
1092 +
1093 + if(!titleText){
1094 + return;
1095 + }
1096 +
1097 + var numberNode=
1098 + number.cloneNode(true);
1099 +
1100 + var actionNode=
1101 + action.cloneNode(true);
1102 +
1103 + var titleNode=
1104 + document.createElement(
1105 + "span"
1106 + );
1107 +
1108 + titleNode.className=
1109 + "sn-area-label-title";
1110 +
1111 + titleNode.textContent=
1112 + titleText;
1113 +
1114 + while(label.firstChild){
1115 + label.removeChild(
1116 + label.firstChild
1117 + );
1118 + }
1119 +
1120 + label.appendChild(
1121 + numberNode
1122 + );
1123 +
1124 + label.appendChild(
1125 + titleNode
1126 + );
1127 +
1128 + label.appendChild(
1129 + actionNode
1130 + );
1131 +
1132 + label.setAttribute(
1133 + "data-sn-three-line",
1134 + "1"
1135 + );
1136 +
1137 + var head=
1138 + label.closest(
1139 + ".arsn-area-head"
1140 + );
1141 +
1142 + if(head){
1143 + head.style.setProperty(
1144 + "width",
1145 + "100%",
1146 + "important"
1147 + );
1148 +
1149 + head.style.setProperty(
1150 + "max-width",
1151 + "100%",
1152 + "important"
1153 + );
1154 +
1155 + head.style.setProperty(
1156 + "box-sizing",
1157 + "border-box",
1158 + "important"
1159 + );
1160 + }
1161 + });
1162 + }
1163 +
1164 + /* =======================================================
1165 + PLACEHOLDER BADGE
1166 + ======================================================= */
1167 +
1168 + function applyPlaceholderBadge(){
1169 + if(!PLACEHOLDER)return;
1170 +
1171 + if(
1172 + document.querySelector(
1173 + ".sn-coming-soon-badge"
1174 + )
1175 + ){
1176 + return;
1177 + }
1178 +
1179 + var title=
1180 + document.querySelector(
1181 + "#document-title"
1182 + )||
1183 + document.querySelector(
1184 + "h1"
1185 + );
1186 +
1187 + if(!title)return;
1188 +
1189 + var badge=
1190 + document.createElement(
1191 + "span"
1192 + );
1193 +
1194 + badge.className=
1195 + "sn-coming-soon-badge";
1196 +
1197 + badge.textContent=
1198 + PLACEHOLDER_LABEL;
1199 +
1200 + badge.setAttribute(
1201 + "aria-label",
1202 + PLACEHOLDER_LABEL
704 704   );
705 - var bg=s.backgroundColor&&s.backgroundColor!=="rgba(0, 0, 0, 0)"&&s.backgroundColor!=="transparent";
706 - var shadow=s.boxShadow&&s.boxShadow!=="none";
707 - return namedLikeBox(el)||border>=1||(bg&&radius>=3)||(shadow&&r.width>=180);
1204 +
1205 + title.appendChild(
1206 + badge
1207 + );
708 708   }
709 709  
710 - function pickTarget(child){
711 - if(!visible(child))return null;
712 - if(boxLike(child))return child;
1210 + /* =======================================================
1211 + DETAIL PAGE OWN-ACCENT PROPAGATION
1212 + ======================================================= */
713 713  
714 - var cr=child.getBoundingClientRect();
715 - var q=[];
716 - Array.from(child.children||[]).forEach(function(el){
717 - q.push({el:el,depth:1});
1214 + function parseRGB(value){
1215 + var match=String(value||"").match(
1216 + /rgba?\(\s*([\d.]+)\s*,\s*([\d.]+)\s*,\s*([\d.]+)/i
1217 + );
1218 +
1219 + if(!match)return null;
1220 +
1221 + return [
1222 + Number(match[1]),
1223 + Number(match[2]),
1224 + Number(match[3])
1225 + ];
1226 + }
1227 +
1228 + function distance(a,b){
1229 + return Math.sqrt(
1230 + Math.pow(a[0]-b[0],2)+
1231 + Math.pow(a[1]-b[1],2)+
1232 + Math.pow(a[2]-b[2],2)
1233 + );
1234 + }
1235 +
1236 + function paletteMatch(cssColor){
1237 + var rgb=parseRGB(cssColor);
1238 +
1239 + if(!rgb)return null;
1240 +
1241 + var palette=[
1242 + {hex:"#21b6d7",rgb:[33,182,215]},
1243 + {hex:"#e94b13",rgb:[233,75,19]},
1244 + {hex:"#f0aa00",rgb:[240,170,0]},
1245 + {hex:"#38b76a",rgb:[56,183,106]}
1246 + ];
1247 +
1248 + var best=null;
1249 + var bestDistance=Infinity;
1250 +
1251 + palette.forEach(function(item){
1252 + var d=distance(rgb,item.rgb);
1253 +
1254 + if(d<bestDistance){
1255 + best=item;
1256 + bestDistance=d;
1257 + }
718 718   });
719 719  
720 - var best=null,bestScore=-1;
1260 + return bestDistance<=30
1261 + ?best
1262 + :null;
1263 + }
721 721  
722 - while(q.length){
723 - var item=q.shift();
724 - var el=item.el;
725 - if(!visible(el))continue;
1265 + function propagateDetailAccents(){
1266 + if(PAGE_KIND!=="detail")return;
726 726  
727 - var r=el.getBoundingClientRect();
1268 + Array.from(
1269 + root.querySelectorAll(
1270 + ".arsn-call,.dmp-call,.ido-call,.pp-call,"+
1271 + ".arsn-source,.dmp-source,.ido-source,.pp-source"
1272 + )
1273 + ).forEach(function(el){
1274 + if(!visible(el))return;
728 728  
729 - if(r.width>=cr.width*.72&&boxLike(el)){
730 - var widthFit=1-Math.min(1,Math.abs(cr.width-r.width)/Math.max(1,cr.width));
731 - var topFit=1-Math.min(1,Math.abs(cr.top-r.top)/80);
732 - var score=widthFit*5+topFit*2+Math.min(r.height,600)/600;
733 - if(score>bestScore){
734 - best=el;
735 - bestScore=score;
1276 + var style=getComputedStyle(el);
1277 +
1278 + if(
1279 + num(style.borderTopWidth)>=2
1280 + ){
1281 + var match=
1282 + paletteMatch(
1283 + style.borderTopColor
1284 + );
1285 +
1286 + if(match){
1287 + el.style.setProperty(
1288 + "border-left",
1289 + "4px solid "+match.hex,
1290 + "important"
1291 + );
736 736   }
737 737   }
1294 + });
738 738  
739 - if(item.depth<3){
740 - Array.from(el.children||[]).forEach(function(next){
741 - q.push({el:next,depth:item.depth+1});
742 - });
1296 + // Warning families: explicit safety override.
1297 + Array.from(
1298 + root.querySelectorAll(
1299 + ".arsn-warn,.dmp-warn,.ido-warn,.pp-warn,"+
1300 + ".warn,.warning,.warningmessage,.errormessage"
1301 + )
1302 + ).forEach(function(el){
1303 + if(!visible(el))return;
1304 +
1305 + el.style.setProperty(
1306 + "border-left",
1307 + "4px solid #e94b13",
1308 + "important"
1309 + );
1310 + });
1311 +
1312 + // Info families: explicit orientation override.
1313 + Array.from(
1314 + root.querySelectorAll(
1315 + ".arsn-info,.dmp-info,.ido-info,.pp-info,.infomessage"
1316 + )
1317 + ).forEach(function(el){
1318 + if(!visible(el))return;
1319 +
1320 + el.style.setProperty(
1321 + "border-left",
1322 + "4px solid #21b6d7",
1323 + "important"
1324 + );
1325 + });
1326 + }
1327 +
1328 + /* =======================================================
1329 + OVERVIEW SEMANTIC THEME PALETTE
1330 + ======================================================= */
1331 +
1332 + function smallestThemeHeaders(){
1333 + return Array.from(
1334 + root.querySelectorAll(
1335 + "div,span,p,strong,h3,h4,h5,h6"
1336 + )
1337 + ).filter(function(el){
1338 + if(!visible(el))return false;
1339 + if(!themeFor(el.textContent))return false;
1340 +
1341 + return !Array.from(
1342 + el.children||[]
1343 + ).some(function(child){
1344 + return !!themeFor(
1345 + child.textContent
1346 + );
1347 + });
1348 + });
1349 + }
1350 +
1351 + function findOverviewCard(header){
1352 + var node=header.parentElement;
1353 + var candidates=[];
1354 +
1355 + while(node&&node!==root){
1356 + var rect=node.getBoundingClientRect();
1357 + var style=getComputedStyle(node);
1358 +
1359 + var border=
1360 + num(style.borderTopWidth)+
1361 + num(style.borderRightWidth)+
1362 + num(style.borderBottomWidth)+
1363 + num(style.borderLeftWidth);
1364 +
1365 + if(
1366 + rect.width>=220&&
1367 + rect.width<=800&&
1368 + rect.height>=120&&
1369 + border>=1
1370 + ){
1371 + candidates.push(node);
743 743   }
1373 +
1374 + node=node.parentElement;
744 744   }
745 745  
746 - return best;
1377 + if(!candidates.length)return null;
1378 +
1379 + candidates.sort(function(a,b){
1380 + return (
1381 + b.getBoundingClientRect().height-
1382 + a.getBoundingClientRect().height
1383 + );
1384 + });
1385 +
1386 + return candidates[0];
747 747   }
748 748  
749 - function reset(){
750 - managed.forEach(function(el){
751 - el.style.removeProperty("min-height");
752 - el.removeAttribute("data-sn-equal-height-managed");
1389 + function rowCandidates(link,card){
1390 + var result=[];
1391 + var cardRect=
1392 + card.getBoundingClientRect();
1393 +
1394 + var node=link;
1395 +
1396 + while(node&&node!==card){
1397 + if(visible(node)){
1398 + var rect=
1399 + node.getBoundingClientRect();
1400 +
1401 + if(
1402 + rect.height<=105&&
1403 + rect.width>=
1404 + cardRect.width*.50&&
1405 + rect.width<=
1406 + cardRect.width*1.03
1407 + ){
1408 + result.push(node);
1409 + }
1410 + }
1411 +
1412 + node=node.parentElement;
1413 + }
1414 +
1415 + return result;
1416 + }
1417 +
1418 + function chooseOuterRow(
1419 + candidates,
1420 + link
1421 + ){
1422 + if(!candidates.length){
1423 + return link;
1424 + }
1425 +
1426 + var bordered=
1427 + candidates.filter(function(el){
1428 + return (
1429 + num(
1430 + getComputedStyle(el)
1431 + .borderLeftWidth
1432 + )>=1
1433 + );
1434 + });
1435 +
1436 + var pool=
1437 + bordered.length
1438 + ?bordered
1439 + :candidates;
1440 +
1441 + pool.sort(function(a,b){
1442 + var ar=
1443 + a.getBoundingClientRect();
1444 +
1445 + var br=
1446 + b.getBoundingClientRect();
1447 +
1448 + return (
1449 + ar.left-br.left||
1450 + br.width-ar.width
1451 + );
753 753   });
754 - managed.clear();
1453 +
1454 + return pool[0]||link;
755 755   }
756 756  
757 - function horizontalLayout(parent){
758 - if(!visible(parent))return false;
759 - var s=getComputedStyle(parent);
760 - if(s.display==="grid"||s.display==="inline-grid")return true;
761 - if(s.display==="flex"||s.display==="inline-flex"){
762 - return s.flexDirection==="row"||s.flexDirection==="row-reverse";
1457 + function applyOverviewPalette(){
1458 + if(PAGE_KIND!=="overview"){
1459 + return [];
763 763   }
764 - return false;
1461 +
1462 + var headers=
1463 + smallestThemeHeaders()
1464 + .map(function(el){
1465 + return {
1466 + el:el,
1467 + theme:
1468 + themeFor(
1469 + el.textContent
1470 + ),
1471 + card:
1472 + findOverviewCard(
1473 + el
1474 + )
1475 + };
1476 + })
1477 + .filter(function(row){
1478 + return !!row.card;
1479 + });
1480 +
1481 + var unique=[];
1482 + var seenHeaders=new Set();
1483 +
1484 + headers.forEach(function(row){
1485 + var key=
1486 + row.theme.name+
1487 + "|"+
1488 + Math.round(
1489 + row.card
1490 + .getBoundingClientRect()
1491 + .left
1492 + )+
1493 + "|"+
1494 + Math.round(
1495 + row.el
1496 + .getBoundingClientRect()
1497 + .top
1498 + );
1499 +
1500 + if(!seenHeaders.has(key)){
1501 + seenHeaders.add(key);
1502 + unique.push(row);
1503 + }
1504 + });
1505 +
1506 + unique.forEach(function(row){
1507 + var headerRect=
1508 + row.el
1509 + .getBoundingClientRect();
1510 +
1511 + row.el.style.setProperty(
1512 + "background",
1513 + row.theme.bg,
1514 + "important"
1515 + );
1516 +
1517 + row.el.style.setProperty(
1518 + "color",
1519 + row.theme.text,
1520 + "important"
1521 + );
1522 +
1523 + row.el.style.setProperty(
1524 + "text-align",
1525 + "left",
1526 + "important"
1527 + );
1528 +
1529 + row.el.style.setProperty(
1530 + "word-spacing",
1531 + "normal",
1532 + "important"
1533 + );
1534 +
1535 + var later=
1536 + unique
1537 + .filter(function(other){
1538 + return (
1539 + other.card===row.card&&
1540 + other.el
1541 + .getBoundingClientRect()
1542 + .top>
1543 + headerRect.top+2
1544 + );
1545 + })
1546 + .sort(function(a,b){
1547 + return (
1548 + a.el
1549 + .getBoundingClientRect()
1550 + .top-
1551 + b.el
1552 + .getBoundingClientRect()
1553 + .top
1554 + );
1555 + });
1556 +
1557 + var stopTop=
1558 + later.length
1559 + ?later[0].el
1560 + .getBoundingClientRect()
1561 + .top
1562 + :Infinity;
1563 +
1564 + Array.from(
1565 + row.card.querySelectorAll("a")
1566 + ).forEach(function(link){
1567 + if(!visible(link))return;
1568 +
1569 + var rect=
1570 + link.getBoundingClientRect();
1571 +
1572 + if(
1573 + rect.top<=
1574 + headerRect.bottom-2||
1575 + rect.top>=
1576 + stopTop-2
1577 + ){
1578 + return;
1579 + }
1580 +
1581 + var candidates=
1582 + rowCandidates(
1583 + link,
1584 + row.card
1585 + );
1586 +
1587 + var target=
1588 + chooseOuterRow(
1589 + candidates,
1590 + link
1591 + );
1592 +
1593 + candidates.forEach(function(el){
1594 + el.style.setProperty(
1595 + "border-left",
1596 + "0 solid transparent",
1597 + "important"
1598 + );
1599 + });
1600 +
1601 + target.style.setProperty(
1602 + "border-left",
1603 + "3px solid "+
1604 + row.theme.accent,
1605 + "important"
1606 + );
1607 +
1608 + target.style.setProperty(
1609 + "box-sizing",
1610 + "border-box",
1611 + "important"
1612 + );
1613 + });
1614 + });
1615 +
1616 + return unique;
765 765   }
766 766  
767 - function rowGroups(entries){
1619 + /* =======================================================
1620 + OVERVIEW CARD HEIGHT + FIRST THEMATIC ROW
1621 + ======================================================= */
1622 +
1623 + function alignOverviewCards(headers){
1624 + if(
1625 + PAGE_KIND!=="overview"||
1626 + window.innerWidth<=MOBILE_MAX
1627 + ){
1628 + return;
1629 + }
1630 +
1631 + var cards=[];
1632 + var seen=new Set();
1633 +
1634 + headers.forEach(function(row){
1635 + if(!seen.has(row.card)){
1636 + seen.add(row.card);
1637 + cards.push(row.card);
1638 + }
1639 + });
1640 +
1641 + if(cards.length<2){
1642 + return;
1643 + }
1644 +
1645 + // Group cards by actual top position.
768 768   var groups=[];
769 - entries.slice().sort(function(a,b){
770 - return a.rect.top-b.rect.top||a.rect.left-b.rect.left;
771 - }).forEach(function(entry){
1647 +
1648 + cards.forEach(function(card){
1649 + var top=
1650 + card.getBoundingClientRect().top;
1651 +
772 772   var group=null;
1653 +
773 773   for(var i=0;i<groups.length;i++){
774 - if(Math.abs(groups[i].top-entry.rect.top)<=ROW_TOLERANCE){
1655 + if(
1656 + Math.abs(
1657 + groups[i].top-top
1658 + )<=ROW_TOLERANCE
1659 + ){
775 775   group=groups[i];
776 776   break;
777 777   }
778 778   }
1664 +
779 779   if(!group){
780 - group={top:entry.rect.top,entries:[]};
1666 + group={
1667 + top:top,
1668 + cards:[]
1669 + };
781 781   groups.push(group);
782 782   }
783 - group.entries.push(entry);
1672 +
1673 + group.cards.push(card);
784 784   });
785 - return groups;
786 - }
787 787  
788 - function run(){
789 - reset();
1676 + groups.forEach(function(group){
1677 + if(group.cards.length<2){
1678 + return;
1679 + }
790 790  
791 - if(window.innerWidth<=MOBILE_MAX)return;
1681 + var firstHeaders=
1682 + group.cards.map(function(card){
1683 + var candidates=
1684 + headers
1685 + .filter(function(row){
1686 + return row.card===card;
1687 + })
1688 + .sort(function(a,b){
1689 + return (
1690 + a.el
1691 + .getBoundingClientRect()
1692 + .top-
1693 + b.el
1694 + .getBoundingClientRect()
1695 + .top
1696 + );
1697 + });
792 792  
793 - var parents=Array.from(root.querySelectorAll("*")).filter(function(el){
794 - return el.children&&el.children.length>=2&&horizontalLayout(el);
795 - });
1699 + return candidates.length
1700 + ?candidates[0]
1701 + :null;
1702 + });
796 796  
797 - parents.forEach(function(parent){
798 - var entries=[];
1704 + if(
1705 + !firstHeaders.some(function(row){
1706 + return !row;
1707 + })
1708 + ){
1709 + var targetTop=
1710 + Math.max.apply(
1711 + Math,
1712 + firstHeaders.map(function(row){
1713 + return (
1714 + row.el
1715 + .getBoundingClientRect()
1716 + .top-
1717 + row.card
1718 + .getBoundingClientRect()
1719 + .top
1720 + );
1721 + })
1722 + );
799 799  
800 - Array.from(parent.children).forEach(function(child){
801 - if(!visible(child))return;
802 - var target=pickTarget(child);
803 - if(!target)return;
804 - entries.push({
805 - target:target,
806 - rect:target.getBoundingClientRect()
1724 + firstHeaders.forEach(function(row){
1725 + var relativeTop=
1726 + row.el
1727 + .getBoundingClientRect()
1728 + .top-
1729 + row.card
1730 + .getBoundingClientRect()
1731 + .top;
1732 +
1733 + var delta=
1734 + targetTop-relativeTop;
1735 +
1736 + if(delta>1){
1737 + saveStyle(
1738 + row.el,
1739 + originalMargin,
1740 + "margin-top"
1741 + );
1742 +
1743 + var current=
1744 + num(
1745 + getComputedStyle(
1746 + row.el
1747 + ).marginTop
1748 + );
1749 +
1750 + row.el.style.setProperty(
1751 + "margin-top",
1752 + (
1753 + current+delta
1754 + )+"px"
1755 + );
1756 +
1757 + row.el.setAttribute(
1758 + "data-sn-master-first-row",
1759 + "1"
1760 + );
1761 +
1762 + managedMargin.add(
1763 + row.el
1764 + );
1765 + }
807 807   });
1767 + }
1768 +
1769 + var maxHeight=0;
1770 +
1771 + group.cards.forEach(function(card){
1772 + maxHeight=
1773 + Math.max(
1774 + maxHeight,
1775 + card
1776 + .getBoundingClientRect()
1777 + .height
1778 + );
808 808   });
809 809  
810 - if(entries.length<2)return;
1781 + maxHeight=
1782 + Math.ceil(maxHeight);
811 811  
812 - rowGroups(entries).forEach(function(group){
813 - if(group.entries.length<2)return;
1784 + group.cards.forEach(function(card){
1785 + saveStyle(
1786 + card,
1787 + originalHeight,
1788 + "min-height"
1789 + );
814 814  
815 - var lefts=group.entries.map(function(e){return e.rect.left;}).sort(function(a,b){return a-b;});
816 - if(lefts[lefts.length-1]-lefts[0]<80)return;
1791 + card.style.setProperty(
1792 + "min-height",
1793 + maxHeight+"px"
1794 + );
817 817  
818 - var targets=[];
819 - var seen=new Set();
1796 + card.setAttribute(
1797 + "data-sn-master-equal-height",
1798 + "1"
1799 + );
820 820  
821 - group.entries.forEach(function(e){
822 - if(!seen.has(e.target)){
823 - seen.add(e.target);
824 - targets.push(e.target);
1801 + managedHeight.add(
1802 + card
1803 + );
1804 + });
1805 + });
1806 + }
1807 +
1808 + /* =======================================================
1809 + DETAIL GRID EQUAL HEIGHT, DESKTOP ONLY
1810 + ======================================================= */
1811 +
1812 + function equaliseDetailGrids(){
1813 + if(
1814 + PAGE_KIND!=="detail"||
1815 + window.innerWidth<=MOBILE_MAX
1816 + ){
1817 + return;
1818 + }
1819 +
1820 + var selectors=[
1821 + ".arsn-grid",
1822 + ".arsn-grid-2",
1823 + ".arsn-grid-3",
1824 + ".dmp-grid",
1825 + ".ido-grid",
1826 + ".pp-grid"
1827 + ];
1828 +
1829 + selectors.forEach(function(selector){
1830 + Array.from(
1831 + root.querySelectorAll(selector)
1832 + ).forEach(function(grid){
1833 + var children=
1834 + Array.from(
1835 + grid.children||[]
1836 + ).filter(visible);
1837 +
1838 + if(children.length<2){
1839 + return;
1840 + }
1841 +
1842 + var groups=[];
1843 +
1844 + children.forEach(function(child){
1845 + var top=
1846 + child
1847 + .getBoundingClientRect()
1848 + .top;
1849 +
1850 + var group=null;
1851 +
1852 + for(var i=0;i<groups.length;i++){
1853 + if(
1854 + Math.abs(
1855 + groups[i].top-top
1856 + )<=ROW_TOLERANCE
1857 + ){
1858 + group=groups[i];
1859 + break;
1860 + }
825 825   }
826 - });
827 827  
828 - if(targets.length<2)return;
1863 + if(!group){
1864 + group={
1865 + top:top,
1866 + items:[]
1867 + };
1868 + groups.push(group);
1869 + }
829 829  
830 - var max=0;
831 - targets.forEach(function(el){
832 - max=Math.max(max,el.getBoundingClientRect().height);
1871 + group.items.push(child);
833 833   });
834 834  
835 - max=Math.ceil(max);
836 - if(max<MIN_H)return;
1874 + groups.forEach(function(group){
1875 + if(group.items.length<2){
1876 + return;
1877 + }
837 837  
838 - targets.forEach(function(el){
839 - el.style.setProperty("min-height",max+"px");
840 - el.setAttribute("data-sn-equal-height-managed","1");
841 - managed.add(el);
1879 + var maxHeight=0;
1880 +
1881 + group.items.forEach(function(item){
1882 + maxHeight=
1883 + Math.max(
1884 + maxHeight,
1885 + item
1886 + .getBoundingClientRect()
1887 + .height
1888 + );
1889 + });
1890 +
1891 + maxHeight=
1892 + Math.ceil(maxHeight);
1893 +
1894 + group.items.forEach(function(item){
1895 + saveStyle(
1896 + item,
1897 + originalHeight,
1898 + "min-height"
1899 + );
1900 +
1901 + item.style.setProperty(
1902 + "min-height",
1903 + maxHeight+"px"
1904 + );
1905 +
1906 + item.setAttribute(
1907 + "data-sn-master-equal-height",
1908 + "1"
1909 + );
1910 +
1911 + managedHeight.add(item);
1912 + });
842 842   });
843 843   });
844 844   });
845 845   }
846 846  
847 - function schedule(){
848 - if(raf)cancelAnimationFrame(raf);
849 - raf=requestAnimationFrame(function(){
850 - raf=requestAnimationFrame(function(){
851 - raf=0;
852 - run();
853 - });
854 - });
1918 + /* =======================================================
1919 + RUN / RESPONSIVE SCHEDULING
1920 + ======================================================= */
1921 +
1922 + function run(){
1923 + if(running)return;
1924 +
1925 + running=true;
1926 +
1927 + try{
1928 + resetRuntime();
1929 + applyPlaceholderBadge();
1930 + propagateDetailAccents();
1931 +
1932 + var headers=
1933 + applyOverviewPalette();
1934 +
1935 + makeThreeLineAreaLabels();
1936 + makeFilledRedOrangeCTAsBorderless();
1937 +
1938 + if(
1939 + window.innerWidth>
1940 + MOBILE_MAX
1941 + ){
1942 + alignOverviewCards(
1943 + headers
1944 + );
1945 +
1946 + equaliseDetailGrids();
1947 + }
1948 + }finally{
1949 + running=false;
1950 + }
855 855   }
856 856  
857 - addEventListener("resize",schedule,{passive:true});
858 - addEventListener("load",schedule,{once:true});
1953 + function onResize(){
1954 + if(resizeTimer){
1955 + clearTimeout(
1956 + resizeTimer
1957 + );
1958 + }
859 859  
860 - root.addEventListener("click",function(){
861 - setTimeout(schedule,0);
862 - },true);
1960 + resizeTimer=
1961 + setTimeout(
1962 + function(){
1963 + resizeTimer=0;
1964 + run();
1965 + },
1966 + RESIZE_DEBOUNCE
1967 + );
1968 + }
863 863  
864 - if(document.fonts&&document.fonts.ready){
865 - document.fonts.ready.then(schedule);
1970 + async function waitForReady(){
1971 + if(
1972 + document.readyState!=="complete"
1973 + ){
1974 + await new Promise(function(resolve){
1975 + window.addEventListener(
1976 + "load",
1977 + resolve,
1978 + {once:true}
1979 + );
1980 + });
1981 + }
1982 +
1983 + if(
1984 + document.fonts&&
1985 + document.fonts.ready
1986 + ){
1987 + try{
1988 + await document.fonts.ready;
1989 + }catch(error){}
1990 + }
1991 +
1992 + var images=
1993 + Array.from(
1994 + root.querySelectorAll("img")
1995 + );
1996 +
1997 + await Promise.all(
1998 + images.map(function(img){
1999 + if(img.complete){
2000 + return Promise.resolve();
2001 + }
2002 +
2003 + return new Promise(function(resolve){
2004 + var done=function(){
2005 + resolve();
2006 + };
2007 +
2008 + img.addEventListener(
2009 + "load",
2010 + done,
2011 + {once:true}
2012 + );
2013 +
2014 + img.addEventListener(
2015 + "error",
2016 + done,
2017 + {once:true}
2018 + );
2019 + });
2020 + })
2021 + );
2022 +
2023 + run();
866 866   }
867 867  
868 - schedule();
869 - setTimeout(schedule,250);
870 - setTimeout(schedule,900);
2026 + window.addEventListener(
2027 + "resize",
2028 + onResize,
2029 + {passive:true}
2030 + );
2031 +
2032 + waitForReady();
871 871  })();
872 872  </script>
873 -<!-- SN_HORIZONTAL_BOX_HARMONIZER_END -->
2035 +
2036 +<!-- SN_SERVICE_NAVIGATOR_MASTER_STYLE_END -->
874 874  {{/html}}
875 875