/*****************************************************************************************************
* Text & Typography CSS
******************************************************************************************************/

/*
Base
---------------------------------------------------------------------------------------------------- */

/* Containers
--------------------------------------------- */

html {
  /* Set root font size (rem). */
  font-size: 100%;
}

body {
  color: var(--cl-base-def);
  font: var(--fn-base-def);
}

.site-inner {
  hyphens: auto;
  word-wrap: break-word;
  /* Adding it to body breaks Beaver Builder. */
  word-break: break-word;
}


/* Hyperlinks
--------------------------------------------- */

/* Basic Hyperlinks */

a {
  background-color: inherit;
  color: var(--cl-base-def);
  font-weight: normal;
  text-decoration: none;
}

a:hover {
  color: var(--cl-base-acc);
}

.site-inner a,
.site-inner a:focus {
  text-decoration: underline;
  /*text-decoration-skip-ink: none;*/
}

.site-inner .entry-title a {
  color: var(--cl-base-def);
  text-decoration: none;
}

.site-inner h1 a,
.site-inner h2 a,
.site-inner h3 a,
.site-inner h4 a,
.site-inner h5 a,
.site-inner h6 a {
  border-bottom: 0;
}

/* Post Edit Link */

.post-edit-link {
  border-bottom: 0;
  display: none;
}

/* More Link */

.more-link a {
  display: table;
  margin: 15px 0 0 auto;
  padding: 5px;
  text-align: center;
}

.more-link a:hover {
  box-shadow: 1px 1px 1px #999;
}


/* Paragraphs
--------------------------------------------- */

p {
  margin: 0 0 0.9em;
  padding: 0;
  word-wrap: break-word; /* Hide long words overflow */
}

.single .bub-field__content p:last-child {
  margin-bottom: 0;
}

/* Empty Paragraph Tags */

p:empty,
  /* Paragraphs added with Beaver Builder shortcodes (JS) */
  .bub-beaver-builder-layout-paragraph {
  margin: 0 !important;
}


/* Emphasis
--------------------------------------------- */

strong,
strong a {
  font-weight: bold;
}


/* Lists
--------------------------------------------- */

ol,
ul {
  padding-left: 15px;
}


/* Quotes
--------------------------------------------- */

#tinymce blockquote {
  border-left: 0.25em solid;
  margin: 1.75em 0 1.75em;
  padding-left: 1em;
}

#tinymce cite {
  font-size: 13px;
  font-size: 0.9rem;
  font-style: normal;
}


/*
Titles / Headings
---------------------------------------------------------------------------------------------------- */

/* Default Headings
--------------------------------------------- */

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  line-height: 1.3;
  margin: 0 0 1rem;
}

h1 + h2 {
  margin-top: 1em;
}

h2 + h3 {
  margin-top: 0.7em;
}

h3 + h4 {
  margin-top: 0.5em;
}


/* Special Document Titles
--------------------------------------------- */

/* 404 / Search No Results */

.error404 .entry-title,
.search-no-results .archive-title {
  font: var(--fn-display-def);
  margin: 10px 0 30px;
  text-align: left;
}


/* Archive Titles
--------------------------------------------- */

/* All Archives */

.archive-title {
  font: var(--fn-display-def);
  margin: 10px 0 20px;
  text-align: center;
}

.archive .entry-title {
  font-size: 1.25rem;
}

@media screen and (max-width: 500px) {

  .archive-title {
    /* font-size: 1.3rem; */
  }
}


/* Singular Titles
--------------------------------------------- */

/* All Pages */

.page .entry-header .entry-title {
  font: var(--fn-display-def);
  margin: 10px 0 30px;
  text-align: center;
}

/* All Posts */

.single .entry-header .entry-title {
  font: var(--fn-display-def);
  margin: 0 0 1rem;
  max-width: 700px;
}

@media screen and (max-width: 500px) {

  .page .entry-header .entry-title {
    /* font-size: 1.3rem; */
  }

  .single .entry-header .entry-title {
    /* font-size: 1.3rem; */
  }
}


/* Singular Content Headings
--------------------------------------------- */

/* All Singulars */

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
  /*color: var(--cl-brand-def);*/
}

/* All Pages */

.page .entry-content h2,
.page .entry-content h3,
.page .entry-content h4 {
  font: var(--fn-display-def);
}

.page .entry-content h2 {
  font-size: 1.2rem;
  margin: 0 0 0.9rem;
}

.page .entry-content h3 {
  font-size: 1.1rem;
  margin: 0 0 0.5rem;
}

.page .entry-content h4 {
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

/* All Posts */

.single .entry-content h1 {
  font-size: 1.4rem;
  margin: 1.7rem 0 1rem;
}

.single .entry-content h1:first-of-type {
  margin-top: .2rem;
}

.single .entry-content h2,
.single .entry-content p + h2:first-of-type {
  font-size: 1.25rem;
  font-weight: bold;
  margin: 1.3rem 0 .9rem;
}

  /* Remove the margin top from the first h2 only if it comes 
  immediately after the h1, without a paragraph in between. */

.single .entry-content > h2:first-child {
  margin-top: 0;
}

.single .entry-content h3 {
  font-size: 1.1rem;
  font-weight: bold;
  margin: .8rem 0 .8rem;
}

.single .entry-content h4 {
  font-size: 1rem;
  font-style: italic;
  margin: .8rem 0 .8rem;
}

  /* Increase top margin if heading subsequents an image. */

.single .bub-image-paragraph + h1,
.single .bub-image-paragraph + h2,
.single .bub-image-paragraph + h3,
.single .bub-image-paragraph + h4 {
  margin-top: 1.3em;
}


/* Custom Field Titles (Default)
--------------------------------------------- */

.bub-field__title {
  margin: 1em 0 .5em; 
}


/* Widget Titles
--------------------------------------------- */

.widget-title {
  clear: both;
  font-size: 17px;
  margin-bottom: 10px;
}

.sidebar .widget-title a {
  display: block;
  padding: 7px 5px 6px 15px;
}


/*
Forms
---------------------------------------------------------------------------------------------------- */

/* Form Elements
--------------------------------------------- */

input,
select,
textarea {
  background: var(--bg-neutral-min);
  color: var(--cl-base-def);
  border: 1px solid #ddd;
  padding: 16px 12px;
  width: 100%;
}

input:focus,
textarea:focus {
  border: 1px solid #888;
  outline: none;
}

input[type="checkbox"],
input[type="image"],
input[type="radio"] {
  width: auto;
}

::-webkit-input-placeholder {
  color: #999;
}

::-moz-placeholder {
  color: #999;
  opacity: 1;
}

:-ms-input-placeholder {
  color: #999;
}

button,
input[type="button"],
input[type="reset"],
input[type="submit"],
.button,
.entry-content .button {
  border: none;
  cursor: pointer;
  padding: 16px 24px;
  width: auto;
}

.button {
  display: inline-block;
}


/*
Tables
---------------------------------------------------------------------------------------------------- */

/* Table Elements
--------------------------------------------- */

table {
  border-collapse: collapse;
  border-spacing: 0;
  line-height: 2;
  margin-bottom: 40px;
  width: 100%;
}

tbody {
  border-bottom: 1px solid #ddd;
}

th,
td {
  text-align: left;
}

th {
  font-weight: bold;
}

td {
  border-top: 1px solid #ddd;
  padding: 6px 0;
}


/*
Various
---------------------------------------------------------------------------------------------------- */

