/*   
  Local styles for wiki.audio
  Written by (c) Petko Yotov 2022   www.pmwiki.org/support

  This text is written for PmWiki; you can redistribute it and/or modify
  it under the terms of the GNU General Public License as published
  by the Free Software Foundation; either version 3 of the License, or
  (at your option) any later version. See pmwiki.php for full details
  and lack of warranty.
*/

a[href*="sengpielaudio.com/"] {
/*   background-color: #ffa; */
}


.trix-content a[href*="sengpielaudio.com/"]:after {
/*   content: ' [wiki link due]'; */
/*   color: red; */
}


.trix-content a[href*="sengpielaudio.com/"][href$=".pdf"]::after {
/*   content: ' [pdf]'; */
/*   color: red; */
}

@media screen and (min-width:360px) {
  body[data-fullname="De.0001"] .allegro-content > div:first-child > figure:first-child,
  body[data-fullname="En.0001"] .allegro-content > div:first-child > figure:first-child {
    max-width: 180px;
    float: right;
  }

  
}

table.gradient1st tbody,
table.gradient2nd tbody  {
  background: linear-gradient(red, yellow, green); 
}

table.gradient1st tbody tr:nth-child(2n) td,
table.gradient2nd tbody tr:nth-child(2n) td {
  background-color: white;
}
table.gradient1st tbody tr:nth-child(2n+1) td,
table.gradient2nd tbody tr:nth-child(2n+1) td {
  background-color: #f7f7f7;
}

table.gradient1st tbody tr,
table.gradient2nd tbody tr {
  background-color: transparent !important;
}


table.gradient1st tbody td:nth-child(1),
table.gradient2nd tbody td:nth-child(2) {
  background-color: transparent !important;
}

textarea {
  max-width: 100%;
  box-sizing: border-box;
}


h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
  margin-top:0;
}

a.wikilink[href$="?action=aWatch"] {
  filter: grayscale(1);
}

body[data-name$="RecentChanges"] #wikitext a {
  text-decoration: none;
}


li > a[href*="?action=diff#diff"] + a.wikilink:after {
  content: " (" attr(data-group) ")";
  color: #888;
  font-size: .9em;
}


.allegro-content {
  position:relative;
}

.original2 {
  position:relative; /*for the watermark*/
  border: 1px solid #aaa;
  padding: 0.5rem;
  border-radius: .25rem;
  margin-bottom: 1rem;
  column-width: 24rem;
  column-gap: 2rem;
  column-rule: 1px solid #aaa;
}

.original {
  position:relative; /*for the watermark*/
  border-right: 1px solid #aaa;
  padding-right:1rem;
/*   border-radius: .25rem; */
/*   margin-bottom: 1rem; */
}

.iblock {
  white-space: nowrap;
}


.original:before  {
  content: " ";
  position: absolute;
  top: 0;
  bottom:0;
  left:0;
  right:0;
  display: block;
  z-index:5;
  pointer-events: none;
  background-size: 20rem;
  background-image: url(/?action=awatermark&wm=ORIGINAL);
}

body[data-group="De"] .original:before,
body[data-group="DEGA101"] .original:before {
  background-image: url(/?action=awatermark&wm=ORIGINALTEXT);
}


.inline-formulas img {
  max-width: 8cm;
}

#wikitext:has(.original.inline-formulas) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-auto-rows: auto;
  gap: 0; 
}


/* First and second items go side by side */
#wikitext:has(.original.inline-formulas) > *:nth-child(1) {
  grid-column: 1;
}

#wikitext:has(.original.inline-formulas) > *:nth-child(2) {
  grid-column: 2;
  padding-left:1rem;
}

/* Subsequent items are full width */
#wikitext:has(.original.inline-formulas) > *:nth-child(n+3) {
  grid-column: 1 / -1;
}



.allegro-content:not([data-status="reviewed"],[data-status="hidden"]):before {
  content: " ";
  position: absolute;
  top: 0;
  bottom:0;
  left:0;
  right:0;
  display: block;
  z-index:5;
/*   opacity: .3; */
  pointer-events: none;
  background-size: 20rem;
  background-image: url(/?action=awatermark&wm=DRAFT);
}
.allegro-content[data-status="hidden"] {
  opacity: .7;
}



body[data-group="DEGA101"] .allegro-content:not([data-status="reviewed"],[data-status="hidden"]):before,
body[data-group="De"] .allegro-content:not([data-status="reviewed"],[data-status="hidden"]):before {
  background-image: url(/?action=awatermark&wm=ENTWURF);
}

body[data-group="Profiles"] .allegro-content[data-status]:before {
  display: none;
}
img, video, iframe {
  max-width: 100%;  
}

.feedbackpostheader {
  background-color: #eee;
  margin-top: 2em;
  padding: .1em .4em;
}

.feedbackposttext {
  padding: .4em .4em;
}


#msgfeedback,
.msgfeedback {
  background-color: #eee;
  color: red;
  font-weight: bold;
  font-size: 1.5em;
  padding: .1em .4em;
}

#msgfeedback, #feedbackform-wrap {
  margin-top: 2em;
}

.lastposted .feedbackpostheader {
  background-color: #fda;
  
}
.lastposted .feedbackposttext {
  background-color: #ffa;
}

.feedbackpost:has(input:checked) {
  opacity: .3;
}

.basedonsengpiel {
  background-color: #9affff;
  line-height: 1;
  float: right;
  margin-top: -0.5em;
  padding: 0.3em .5em;
}

.basedonsengpiel * {
  vertical-align: middle;  
}
.basedonsengpiel img {
  height: 1.3em;
}

.glossary > div {
  border-top: 1px solid #ccc;
  padding: .5rem 0;
}

.glossary > div:has(a:target) {
  background-color: var(--bs-highlight-bg);
}


/*body[data-uid="1"][data-name="UserManagement"] table.filterable {
  td:nth-child(1) a,
  td:nth-child(2) a
  {
    filter: blur(4px);
    
  }
}

body[data-uid="1"][data-group="Profiles"] {
  .pagetitle {
    filter: blur(8px);
  }
  a[data-group="Profiles"]:not([href*="action=diff"], [href$="Profiles"]),
  .hideprivacy,
  a.mail {
    filter: blur(4px);
  }
}*/


div.wa-contributors > ul{
  margin: 0;
  padding: 0;
  list-style-type: none;
  
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 1em;
/*   row-gap: 2em; */
}

div.wa-contributors > ul > li {
/*   margin: 1em 0; */
}

div.wa-contributors > ul > li > img {
	height: 60px;
}

@media screen and (max-width:30em) {
  div.wa-contributors > ul  {
    display: block;
  }
}


