/* *******
 * CSS for notsosimple Pelican theme
 * 
 * (c) 2024 Frank Pennycook frank@pennycook.net
 * In my setup, normalize.css precedes this file
 *
 *  ****/

/* Screen display */
/* ============== */

/* ============================= */
:root {
  /* NEW THEME */

  --pigeon-blue: #607996;
  --martin-blue: #2A354B;
  --robert-blue: #082C55;
  --eggplant: #6C464F;
  --scarlet: #F42C04;
  --cadet-gray: #88A2AA;
      
  --head-color: darkgray;
  --side-text-color: var(--robert-blue);
  --side-back-color: none;
  --light-link-color: var(--wood-green);
/*  --dark-link-color: var(--scarlet);
  --text-visited-color: var(--cadet-gray-d8);
  --panel-color: var(--wood-green); */
  --article-back-color: #EEEEEE;
}

* {
  box-sizing: border-box;
}

a, a:link                           { text-decoration: none; }
a:visited                           { text-decoration: none; }

h2 a, h2 a:link, h2 a:visited        { color: var(--light-link-color); }
a:hover, a:focus, a:active          { text-decoration: underline; }
header a:active, h2 a:active        { position:relative; bottom:1px; left:1px; }

a.external, a.external:link {
  text-decoration: underline;
  padding-right: 1.8em;  
  background: transparent url(/theme/images/arrow-up-right.svg) no-repeat right;
  }
a.external:visited
  text-decoration: underline;
  padding-right: 1.8em;  
  background: transparent url(/theme/arrow-up-right.svg) no-repeat right;


                  { position:relative; right: 15px; text-decoration: none; }
a.external:hover, a.external:focus, a.external:active    { text-decoration: none; }                                                  }
a.external:active                               { position:static; }

a.button:hover, a.button:focus, a.button:active          { text-decoration: none; }

/* Typography */

/* from normalize - if change, should override */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

h2, h3, h4 {
  font-family: Open Sans, Helvetica, Fjalla One, sans-serif;
  color: var(--light-link-color);
}

/* Layout */

body {
  margin: 0;
  font-family: Merriweather, Garamond, Georgia, Libre Baskerville, serif;
  line-height: 1.2;
}

.main-panel {
    background: url("/theme/images/cloud-light.png") repeat;
    padding: 0.2rem;
    width: 100%;
    margin: auto;
}

/* Style the side navigation */
.side-panel {
  z-index: 1;
  background: var(--side-back-color);
  color: var(--side-text-color);
  margin-top: 1rem;
  padding: 3rem;
  overflow: hidden;
  position: static;
  width: 90vw;
  margin: auto;
}

@media screen and (min-width: 1350px) {
  .main-panel {
    background: url("/theme/images/cloud-light.png") repeat;
    padding: 0.5rem;
    width: 70vw;
    margin-right: 15vw;
    float: right;
  }
  .side-panel {
    width: 18vw;
    top: 1rem;
    position: fixed;
    right: 10vw;
    padding: 1rem;
  }
}

/* Side navigation links */
.side-panel a {
  padding: 10px;
  text-decoration: none;
  display: block;
  color: var(--side-dark-color);
}

/* Change color on hover */
.side-panel a:hover, a:focus, a:active {
  background: #ddd;
  color: black;
}

/* ============================= */

/* Outer container */
.outer-container {
    padding: 0;
    margin: auto;
}

/* Page header and footer */
/* .. both are inside the content element */
.page-header {
    font-size: 2em;
    line-height: 2;
    margin-left: 2.2rem;
    border-radius: 6px;
    }

/* Content */

.content {
    }

.content h1{
    /* CHECK vs scaled sizes */
    font-size: 1.2em;
    font-style: italic;
    margin-left: 2.2rem;
    }

.content q {
    font-style: italic;
    }

article {
    float: none;
    padding: 0.5rem;
    background: var(--article-back-color);
    margin-left: 2rem;
    margin-bottom: 1rem;
    border-radius: 12px;
    }

article.summary{
    width: 90vw;
    overflow: hidden;
    border: 1px solid var(--martin-blue);
    }

article.full{
    width: 90vw;
    overflow: auto;
    margin-top: 1rem;
    }

article header {
    font-size: 0.8rem;
}

/* perhaps footer should be an article - it contains one */
.page-footer {
    background: var(--article-back-color);
    border-top: 1px solid;
    padding: 0.4rem;
    border-radius: 6px;
    margin-left: 2rem;
    width: 90vw;
    }
    
@media screen and (min-width: 1350px) {
  article.summary{
    width: 50vw;
    overflow: hidden;
    }

  article.full{
    width: 50vw;
    overflow: auto;
    margin-top: 1rem;
    }

  .page-footer {
    width: 50vw;
  }
}

section.truncate{
    overflow: hidden;
    }

.button {
   border-top: 1px solid #96d1f8;
   background: #1b435e;
   background: -webkit-gradient(linear, left top, left bottom, from(#607996), to(#1b435e));
   background: -webkit-linear-gradient(top, #607996, #1b435e);
   background: -moz-linear-gradient(top, #607996, #1b435e);
   background: -ms-linear-gradient(top, #607996, #1b435e);
   background: -o-linear-gradient(top, #607996, #1b435e);
   padding: 6px 12px;
   -webkit-border-radius: 11px;
   -moz-border-radius: 11px;
   border-radius: 11px;
   -webkit-box-shadow: rgba(0,0,0,1) 0 1px 0;
   -moz-box-shadow: rgba(0,0,0,1) 0 1px 0;
   box-shadow: rgba(0,0,0,1) 0 1px 0;
   text-shadow: rgba(0,0,0,.4) 0 1px 0;
   color: white;
   font-size: 16px;
   font-family: Helvetica, Arial, Sans-Serif;
   text-decoration: none;
   vertical-align: middle;
   }
.button:hover {
   border-top-color: #082c55;
   background: #082c55;
   color: #ccc;
   }
.button:active {
   border-top-color: #1b435e;
   background: #1b435e;
   }
