/***********************************************************************
**  MODIFIED BY HEMIOLA SUN
**
**
**  skin.css
**  Copyright 2016-2020 Petko Yotov www.pmwiki.org/petko
**  
**  Partially based on pmwiki.css:
**  Copyright 2004-2006 Patrick R. Michaud pmichaud@pobox.com
**  Copyright 2006 Hagan Fox
**  
**  This file is part of 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 2 of the License, or
**  (at your option) any later version.  See pmwiki.php for full details.
**  
**  This skin was implemented with a mobile-first approach.
**  It should work reasonably well with browsers released since 2009.
**  This CSS uses relative "Reference pixel" dimensions.
***********************************************************************/
/*@import url(https://fonts.googleapis.com/earlyaccess/cwtexkai.css);
@import url(https://fonts.googleapis.com/earlyaccess/cwtexming.css);*/

@font-face {
  font-family: MySymbols;
  src: local('Lucida Sans Unicode'), 
    local('FreeSerif'), 
    local('Arial Unicode MS'),
    url(NotoMusic-Regular.ttf);
  unicode-range: U+2660-266f; /* 音樂符號 */
}

@font-face {
  font-family: MySymbols;
  src: local('GenYoMin TW TTF'),
    local('源樣明體 TTF'), 
    local('GenYoMin TW'), 
    local('源樣明體'), 
    local('Noto Serif TC'), 
    local('Noto Serif CJK TC'), 
    local('Songti TC');
  unicode-range: U+2500-25ff; /* 格線、破折號 */
}


:root {
  --basic-font-size: clamp(1em, 1.15vw, 2em);
  --default-font: MySymbols, Times, 'Times New Roman', 'GenYoMin TW TTF', '源樣明體 TTF', 'GenYoMin TW', '源樣明體', 'Noto Serif TC', 'Noto Serif TC', 'Songti TC', 'cwTeXMing', serif;
  --quote-font: MySymbols, Times, 'Times New Roman', 'AR PL New Kai', TW-Kai, DFKai-SB, BiauKaiTC, '標楷體', 'Noto Serif TC', 'Noto Serif CJK TC', 'cwTeXKai', serif;
  /* --quote-size-adjust: 0.44;*/
  --mono-font: MingLiU, monospace;
  
  --bg-color: #fffaf6;
  --main-color: #111;
  --note-color: #555;
  --em-color: #ffa;
  --hover-color: #08f;
  --create-hover-color: red;
  --visited-color: #44d; 
  --link-color: #44d;
  --highlight-color: #ffc;
  --menu-bg-color: #fffaf6;
  --extlink-icon: url(external-link-light-theme.svg);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-color: #333;
    --main-color: #fffaf6;
    --note-color: #bbb;
    --em-color: #ff0;
    --hover-color: #eae;
    --visited-color: #ccf;
    --link-color: #add;
    --highlight-color: #444;
    --menu-bg-color: rgba( 21, 21, 21, 128);
    --extlink-icon: url(external-link-dark-theme.svg);
  }
}

html {
  padding: 0;
  margin: 0;
  /*font-size: var(--basic-font-size);*/
}
body {
  font-family: var(--default-font);
  font-size: var(--basic-font-size);
  background-color: var(--bg-color);
  color: var(--main-color);
}

a {
  color: var(--link-color);
}
a:visited {
  color: var(--visited-color);
}

a:hover {
  color: var(--hover-color);
}

a.createlinktext:hover {
  color: var(--create-hover-color);
}

#wikibody {
/*  line-height: 1.5;
  padding: 0.2rem 0 0;
  margin: 0;*/
}

/*
#wikihead {
  line-height: 1rem;
}*/

#wikihead h1 {
  font-weight: 600;
  /*margin-top: 0.8em;
  margin-bottom: 0.3em;*/
}

#wikihead h1 a {
  color: var(--main-color);
  text-decoration: none !important;
}
#wikihead h1 a:hover {
  text-decoration: underline !important;
  color: var(--hover-color);
}

#wikiheadauthor {
  display: none;
}

#wikimid {
/*  margin: 0; 
  padding: 0;
  max-width: 100%;*/
}

#wikitext {
  /*margin-top: 12px;*/
}

#wikifoot {
/*  padding: 3px;*/
  font-size: 1rem;
  line-height: 1.5;
}

/*
#wikisidebar {
  display: none;
}
*/
#wikimenu-toggle:checked ~  #wikisidebar {   
  display: block;
  /*background-color: var(--bg-color);*/
}


/* These are for the sidebar. */
#wikisidebar .vspace {
  margin-top: 0.5rem; 
}
#wikisidebar ul { 
  list-style:none; 
  padding: 0px; 
  margin: 0px; 
}
#wikisidebar li { 
  margin: 0; 
  padding-left: 1rem; 
}

#wikisidebar #relative-links {
  margin-bottom: 2rem;
}

#wikisidebar details ul {
  margin-left: 2rem;
  text-indent: -1rem;
}

#wikisidebar details summary {
  cursor: pointer;
}

#wikisidebar #wikisidebar-search {
  margin-top: 1em;
}

#wikisidebar a { 
  text-decoration: none; 
  color: var(--note-color); 
  padding: 8px 0;
}
#wikisidebar a:hover { 
  text-decoration: underline; 
  color: var(--hover-color); 
}

#wikisidebar a.createlinktext {
  border: none;
}

/*#wikimenu-toggle:checked ~  #wikicmds {   
  display: block;
}*/

#wikicmds {
  display: none;
  white-space:nowrap; 
  font-size: smaller; 
}
#wikicmds li { 
  display:inline; 
  margin:0px 5px; 
  padding: 0; 
  border: none; 
}
  
#wikicmds li.logout em {
  background-color: transparent;
}
#wikicmds li.logout em span {
  font-size: 100% !important;
}

h1 { 
  font-size: x-large;
  font-weight: 700;
}
h2 { 
  font-size: 200%; /* 180% */
  margin-top: 2em;
  margin-bottom: 0.8em;
  font-weight: 700;
  text-align: center;
  /*text-indent: 2em;*/
}

h2.wikiaction {
  font-size: var(--basic-font-size) * 0.8;
  font-weight: normal;
  margin: -2em 0.1em 0;
  border: none;
  text-align: left;
}
h1+h2 {
  margin-top: 1em;
}
h3 { 
  font-size: 160%; /*140%;*/
  margin-top: 2em;
  margin-bottom: 0.6em;
  font-weight: 700; 
  line-height: 1.3;
  
  /* border-bottom: 1px solid #ccc; */
}

h2+h3 {
  margin-top: -0.4em;
}
h4 { 
  font-size: 120%;
  font-weight: 700;
  margin-bottom: 0.3em;
  border-bottom: 1px solid rgba( 192 192 192 / 0.75 );
}
h5 { font-size: medium; }
h6 { font-size: medium; }

#wikitext a.urllink {
   background: var(--extlink-icon) center right no-repeat;
   background-size: 0.9em;
   padding-right: 1.1em;
}

.redirect {
  text-align: right;
  font-size: smaller;
  color: var(--note-color);
}

.pagegroup { 
  font-size: small;
  margin-bottom: 1em;
  
  display: none;
}
h1.pagetitle {
  font-size: 240%;
}
.wikiaction { 
  margin-top:4px; 
  margin-bottom:4px; 
  
  line-height: 1.4;
}

pre, code { 
  font-size: var(--basic-font-size); 
}

#wikiedit textarea { 
  font-family: var(--mono-font);
}

blockquote {
  font-family: var(--quote-font);
  font-size: 105%;
  word-spacing: 0.5em;
}

blockquote * {
  word-spacing: normal;
}

blockquote small:not(.sidenote) {
  font-size: 75%;
  color: var(--note-color);
}

select, textarea, input {
  font-size: calc( var(--basic-font-size) * 0.95 );
}

em {
  background-color: var(--em-color);
  font-style: normal !important;
  /*font-weight: bold;*/
}

.notice {
  background-color: var(--em-font);
  font-style: normal !important;
  font-weight: bold;
  background-color: var(--highlight-color);
  padding: 1em;
}

table {
  margin-left: auto;
  margin-right: auto;
  border-color: var(--main-color);
  border-collapse: collapse;
  font-size: var(--basic-font-size);
	line-height: 1.8;
}
table.fix {
  table-layout: fixed;
}
table.small {
  font-size: 90%;
}

table caption {
  font-weight: bold;
  font-size: 1.2em;
}

table.firstnowrap tr td:first-child {
    white-space: nowrap;
}

.entrylist, .contentlist {
  padding-top: 0.5em;
  padding-left: 2em;
}

.entrylist > ul {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
  column-width: 8em;
  column-gap: 1em;
}

.entrylist > ul > li {
  text-indent: -1em;
  padding-left: 1em;
  white-space: nowrap;
}

.contentlist > ul {
  padding-left: 0;
  margin-left: 0;
  list-style: none;
  column-count: 2;
}

.contentlist > ul > li {
  text-indent: -1em;
  padding-left: 1em;
}


.sidenote {
  color: var(--note-color);
  font-family: var(--default-font);
}
label.sidenote-ref sup {
  margin-left: 0.1em;
  margin-right: 0.2em;
}
.sidenote-number {
  vertical-align: super;
}

.indent {
  margin-left: 2em;
}

.PmTOCdiv {
  display: block;
  font-size: inherit;
  overflow: auto;
  max-height: none;
}
.PmTOCdiv summary {
  font-weight: normal;
}
.PmTOCdiv * {
  max-height: none !important;
}
.PmTOCtable {
  margin-bottom: 1em;
}
.frame {
  border: none;
  /*border-left: 0.5rem solid #888;
  padding: 0 0 0 1.5rem; */
  padding: 0;
  background-color: transparent;
}

.PmTOCtable a[class^=pmtoc] {
  display: block;
}

.PmTOCtable a[class*=indent1] {
  padding-left: 1em !important;
}
.PmTOCtable a[class*=indent2] {
  padding-left: 2em !important;
}
.PmTOCtable a[class*=indent3] {
  padding-left: 3em !important;
}
.PmTOCtable a[class*=indent4] {
  padding-left: 4em !important;
}



/*========ICON==============*/
#wikisidebar .wikisearch, #wikisidebar .newpage {
  display: flex;
}
#wikisidebar .inputbox {
  font-size: 1em;
  width: calc( 100% - 2rem );
}
#wikisidebar .inputbutton {
  flex-grow: 1;
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center; 
  border: 2px solid var(--bg-color);
  border-radius: 0.3rem;
  margin-left: 0.4rem;
}
#wikisidebar .inputbutton:hover {
  outline: 2px solid var(--hover-color);
}

#wikisidebar .searchbutton {
  background-image: url(xsearch.svg);
}
#wikisidebar .newpagebutton {
  background-image: url(xcreate.svg);
}



@media screen and (max-width:50em) {
  body {
    padding: 0;
    margin: 0 0.5em;
  }
  
  #wikihead {
    height: 3.5rem;
    width: calc( 100vw - 1rem );
    border-bottom: 1px solid var(--note-color);
    /* position: sticky; */
    top: 0;
    background-color: var(--bg-color);
  }

  #wikihead h1 {
    font-size: 150%;
    display: inline-block;
    margin-bottom: 0;
    margin-left: 0.5rem;
  }
  #wikisubtitle {
    display: none; /*inline-block;*/
    color: var(--note-color);
    margin-left: 0.5em;
  }
  #wikibody {
    line-height: 1.5;
    padding: 0.2rem 0 0;
    margin: 0;
  }
  #wikifoot {
    margin-top: 5em;
  }
  
  #wikimenu-toggle-label {
    position: absolute; /*fixed;*/
    right: 0.8rem;
    top: 0.8rem;
    float: none;
    visibility: visible
  }
  
  #wikisidebar {
    display: block;
    /*position: fixed;
    right: 0;
    left: 0;
    top: calc( 3.5rem + 1px );
    bottom: calc( 100vh - 3.5rem );*/
    height: 0; /*60vh;*/
    overflow-y: auto;
    transition: height 0.2s;
    background-color: var(--menu-bg-color);
    visibility: hidden;
  }
 
  #wikisidebar a {
   padding: 0px;
  }
  
  #wikimenu-toggle-label {
    background-image: url(xmenu.svg);
  }
  #wikimenu-toggle:checked ~ *  #wikimenu-toggle-label {
    background-image: url(xclose.svg);
  }
 
  #wikimenu-toggle:checked ~  #wikisidebar {   
    height: 60vh;
    border-bottom: 1px solid var(--note-color);
    box-shadow: 0 0.2em 0.2em -0.2em black;
    padding: 1em 1em;
    visibility: visible;
  }

  label.sidenote-ref {
    color: var(--link-color);
    text-decoration: underline;
    cursor: pointer;
  }
  small.sidenote, small.sidenote {
    /*float: none;*/
    width: auto;
    display: none;
  }
  input.sidenote-ref-input:checked + small.sidenote {
    float: none;
    width: auto;
    display: block;
    border: 1px gray dotted;
    margin: 0.5em 0 1.5em;
    padding: 0.5em;
    color: var(--note-color);
    background-color: var(--highlight-color);
  }
  blockquote {
    margin-right: 0em;
    margin-left: 2em;
  }
  dd {
    margin-left: 1em;
  }
}

@media screen and (min-width:50em) {
  body {
    display: grid;
    grid-template-areas:
      'header main'
      'menu main'
      'footer footer';
    grid-template-columns: 18vw 1fr;
    grid-template-rows: auto 1fr auto;

    font-size: var(--basic-font-size);
    padding: 0;
    margin: 2em;
  }

  #wikihead {
    grid-area: header;
  }  
  #wikimid {
    grid-area: main;
  }
  #wikifoot {
    grid-area: footer;
  }
  
  #wikihead h1 {
    font-size: 150%;
    padding: 0;
    margin: 0;
  }
  #wikisubtitle {
    margin-top: 0.5em
  }
  
  #wikisidebar {
    display: block; /* important, do not delete */
    grid-area: menu;
    padding: 0;
    margin-top: 2rem;
    margin-right: 3rem;
    font-size: 90%;
    line-height: 1.4;
    position: sticky;
    top: 0.5em;
    align-self: start;
    max-height: calc( 100vh - 16px );
    overflow-y: auto;
  }
  #wikimenu-toggle-label ~ * {
    transform: translateX(-20vw);
    transition: transform 0.5s ease;
  }
  #wikisidebar input {
    font-size: 85%;
    font-family: var(--main-font);
  }
  #wikisidebar a { 
    padding: 0px; 
  }
  #wikisidebar li { 
    margin:0px;
    padding-left: 0;
  }

  #wikimid {
    margin: 4rem 0 0 0;
  }
  #wikitext {
    width: 50vw;
  }
  
  #wikimenu-toggle-label {
    background-image: url(xmenu.svg);
    float: none;
    width: 1.4rem;
    height: 1.4rem;
    margin: 0 0 1em;
  }
  #wikimenu-toggle:checked ~ * #wikimenu-toggle-label {
    background-image: url(xclose.svg);
  }
  #wikimenu-toggle:checked ~  #wikisidebar > * {   
    transform: translateX(0);
  }  
  #wikilogo {
    display: none;
  }
  
  #wikihead-recent-changes-link, #wikihead-searchlink{
    display: inline;
  }
  

  #wikibody {
    line-height: 1.8;
  }
  
  h1.pagetitle  {
    font-size: 260%;
    margin-top: 0;
  }
  
  
  #wikicmds {
    display: block;
    position: absolute;
    right: 1em;
    top: 1em;
    white-space:nowrap; 
    font-size: smaller; 
  }
  #wikicmds li { 
    display:inline; 
    margin:0px 5px; 
    padding: 0; 
    border: none; 
  }
  
  
  blockquote {
    margin-left: 4em;
    margin-right: 0;
  }
  
  table {
    margin-left: 0;
  }
  
  table.wide {
    width: calc( 100% + 25vw );
    overflow: visible;
    clear: right;
  }
  
  table.top td {
    vertical-align: top;
  }
  
  #wikifoot {
    width: 100%;
    margin-top: 15em;
    margin-bottom: 3.5em;
    text-align: center;
  }
  
  #wikiedit #text {
    margin-top: -3em;
    font-size: 19px;
  }
    
  #wikimenu-toggle:checked ~ #wikioverlay,
  #wikihead-search-toggle:checked ~ #wikioverlay,
  #wikicmds-toggle:checked ~ #wikioverlay {   
    display: none;
  }

  small.sidenote:target {
    background-color: var(--highlight-color);
  }  
  input.sidenote-ref-input:checked + small.sidenote {
    background-color: var(--highlight-color);
  }

  textarea#text {
    overflow: visible;
    width: 70vw;
  }
}

/* These affect the printed appearance of the web view (not the separate
** print view) of pages.  The sidebar and action links aren't printed. */
@media print {

}

/* Fade-in animation */
@keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-moz-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-webkit-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-ms-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}
@-o-keyframes fadein {
    from { opacity: 0; }
    to   { opacity: 1; }
}

