/******************************************************************
Site Name: Keroth
Author: Keroth

Stylesheet: Text Page (template-text-page.php) and footer legal links

Hand-written: the theme's SCSS sources are not in the repository, only
dist/css/app.css is. Values follow _variables.scss and the References section
(paper background, #0d79a9 headings, #ccc rule).
******************************************************************/

/* .inner-content floats and shrinks to its content: the home page fills it,
   a text page does not. */
body.text-page #content .inner-content { width: 100%; }

/* Title, over the background photo like the home page */

#text-page-title {
  float: left;
  position: relative;
  width: 100%;
  padding: 60px 20px 50px;
}

#text-page-title h1 {
  font-family: "NexaLight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 26px;
  line-height: 1.2;
  color: #fff;
  text-align: center;
  text-transform: uppercase;
}

/* Content, on the References section's paper background */

#text-page-content {
  background: url(../dist/images/bg-paper.jpg) 0 0 repeat;
}

#text-page-content .text-page-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 70px;
  font-family: "Lato", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  letter-spacing: 0.02em;
  color: #323232;
}

/* wpautop adds no <p> around text that follows a heading without a blank
   line, so spacing comes from the headings, not the paragraphs. */
#text-page-content .text-page-inner p { margin: 0 0 1em; }

#text-page-content .text-page-inner h2 {
  font-family: "NexaLight", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 24px;
  color: #0d79a9;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 2em 0 0.6em;
}

#text-page-content .text-page-inner h2:first-child { margin-top: 0; }

#text-page-content .text-page-inner h2:after {
  content: "";
  display: block;
  background: #ccc;
  width: 60px;
  height: 1px;
  margin-top: 14px;
}

#text-page-content .text-page-inner h3 {
  font-family: "NexaBold", "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 15px;
  color: #323232;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 1.6em 0 0.4em;
}

#text-page-content .text-page-inner ul,
#text-page-content .text-page-inner ol {
  padding-left: 1.2em;
  margin: 0.6em 0 1em;
}

#text-page-content .text-page-inner ul { list-style: disc; }
#text-page-content .text-page-inner ol { list-style: decimal; }
#text-page-content .text-page-inner li::marker { color: #0d79a9; }

#text-page-content .text-page-inner li { margin-bottom: 0.25em; }

#text-page-content .text-page-inner a,
#text-page-content .text-page-inner a:visited {
  color: #0d79a9;
  text-decoration: underline;
  overflow-wrap: anywhere;
}

#text-page-content .text-page-inner a:hover,
#text-page-content .text-page-inner a:focus { color: #2980b9; }

#text-page-content .text-page-inner strong { color: #000; }

/* Footer menu location (legal links), on every page */

.footer .inner-footer .bloc-adresse .footer-nav {
  font-size: 13px;
  line-height: 20px;
  margin-top: 16px;
  opacity: 0.75;
}

.footer .inner-footer .bloc-adresse .footer-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer .inner-footer .bloc-adresse .footer-nav li + li:before {
  content: "·";
  margin: 0 0.6em;
}

/* 640up */
@media only screen and (min-width: 660px) {
  #text-page-title { padding: 90px 0 70px; }
  #text-page-title h1 { font-size: 36px; }
  #text-page-content .text-page-inner { padding: 60px 0 90px; }
}

/* 960up */
@media only screen and (min-width: 980px) {
  #text-page-title { padding: 120px 0 90px; }
  #text-page-title h1 { font-size: 49px; }
  #text-page-content .text-page-inner { font-size: 17px; }
}
