/*
Theme Name: Soulphysics Child Revised
Theme URI: https://soulphysics.org/
Description: Soulphysics design and Customizer controls for Clean Retina 3.0.9.
Author: Bryan W. Roberts
Author URI: https://soulphysics.org/about/
Template: clean-retina
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: soulphysics
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
*/

:root {
  --soul-accent: #5f85b0;
  --soul-header: #293867;
  --soul-header-text: #fff;
  --soul-post-size: 20px;
  --soul-title-size: 56px;
  --soul-title-font: 'Splash', cursive;
}
body { background-color: #f8f8f8; }
body, input, textarea, select { font-family: 'Gentium Basic', Georgia, serif; }
a { color: var(--soul-accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--soul-accent);
  outline-offset: 3px;
}
#branding {
  background: var(--soul-header) url('images/SoulTiles10.gif') repeat;
  border-bottom: 1px solid #ddd;
  box-shadow: 0 7px 0 #f3f3f3;
}
#branding .hgroup-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 32px 0 24px;
}
#branding .hgroup-wrap::after { display: none; }
#branding #site-logo { float: none; margin: 0; min-width: 0; max-width: 100%; }
#branding #site-title {
  font-family: var(--soul-title-font);
  font-size: var(--soul-title-size);
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}
#branding #site-title a, #branding #site-description {
  color: var(--soul-header-text) !important;
  text-shadow: 1px 2px 4px #000;
}
#branding #site-title a:hover { color: var(--soul-header-text); opacity: .9; }
#branding #site-description { margin: 0; font-size: 16px; line-height: 1.5; }
#branding .hgroup-right { float: none; margin: 0 0 0 auto; width: auto; max-width: 100%; }
#branding .searchform { margin-top: 12px; }
#branding .hgroup-wrap .soul-header-image { flex-basis: 100%; }
#branding .soul-header-image img { margin: 0; max-width: 100%; height: auto; }
#branding .soul-socials { display: block; }
#branding .soul-socials ul { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; float: none; justify-content: flex-end; }
#branding .soul-socials li { margin: 0; float: none; }
#branding .soul-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  box-sizing: border-box;
  background: #fff;
  color: var(--soul-header);
  font-size: 18px;
  text-indent: 0;
  border: 1px solid rgba(0,0,0,.15);
  border-radius: 50%;
}
#branding .soul-socials a::before { content: none; }
#branding .soul-socials a:hover { background: var(--soul-accent); color: #fff; }
#branding .soul-socials svg { width: 20px; height: 20px; }
#branding #access { background: #efefef; border: 0; border-radius: 8px 8px 0 0; margin-bottom: 0; height: auto; padding: 0; }
#branding #access .root { display: flex; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; border-top: 0; }
#branding #access li { position: relative; float: none; width: auto; border: 0; }
#branding #access li > a {
  display: block; float: none; height: auto; padding: 10px 14px;
  font-size: 18px; line-height: 1.5; color: #555; border: 0;
}
#branding #access li > a:hover, #branding #access li:focus-within > a,
#branding #access .current-menu-item > a, #branding #access .current-menu-ancestor > a,
#branding #access .current_page_item > a, #branding #access .current_page_ancestor > a {
  background: #e2e7ed; color: #293867; border: 0; padding: 10px 14px; text-decoration: underline;
}
#branding #access .soul-has-submenu > a { padding-right: 44px; }
#branding #access li > ul {
  display: none; position: absolute; top: 100%; left: 0; width: 230px; max-width: 80vw;
  border: 0; border-top: 3px solid var(--soul-accent); background: #fff;
  padding: 0; margin: 0; list-style: none; box-shadow: 0 6px 14px rgba(0,0,0,.2); z-index: 100;
}
#branding #access ul ul li > ul { top: 0; left: 100%; }
#branding #access li.soul-submenu-align-end > ul { left: auto; right: 0; }
#branding #access ul ul li.soul-submenu-align-end > ul { left: auto; right: 100%; }
#branding #access li:hover > ul, #branding #access li:focus-within > ul,
#branding #access li.soul-submenu-open > ul { display: block; }
#branding #access li.soul-submenu-dismissed > ul { display: none; }
#branding #access ul ul li > a { font-size: 17px; }
#branding .soul-submenu-toggle {
  position: absolute; right: 0; top: 0; width: 38px; min-height: 44px;
  background: transparent; color: #293867; border: 0; padding: 0; cursor: pointer; font-size: 20px;
}
#branding .menu-toggle { display: none; }
#branding .menu-toggle::before { content: none; }
.soul-skip-link { position: absolute; left: 12px; top: 12px; z-index: 1000; transform: translateY(-200%); padding: 12px; background: #fff; color: #293867; }
.soul-skip-link:focus { transform: translateY(0); }
#main { padding-top: 48px; }
#content .entry-content, #content .entry-summary { font-size: var(--soul-post-size); line-height: 1.65; }
#content .entry-content p, #content .entry-summary p { margin-bottom: 1.1em; }
#content .entry-content a, #content .entry-summary a, .comment-content a { color: var(--soul-accent); }
#content .entry-content a:hover, .comment-content a:hover { text-decoration: underline; }
#content .entry-content sup, #content .entry-content sub { font-size: .7em; }
blockquote { border-left-color: var(--soul-accent); }
a.readmore, a.more-link, input[type='submit'], input[type='button'], input[type='reset'] { background-color: var(--soul-accent); border-color: var(--soul-accent); }
#content a.readmore, #content a.more-link { color: #fff; height: auto; padding: 6px 24px; line-height: 1.5; }
#secondary .wp-block-search .wp-block-search__button { white-space: nowrap; padding: 10px 16px; width: auto; min-width: 90px; }
#controllers a:hover, #controllers a.active { background-color: var(--soul-accent); color: var(--soul-accent); }
.entry-title a:hover, .entry-meta a:hover, #site-generator .copyright a:hover { color: var(--soul-accent); }
.soul-comment-notes { font-size: 16px; line-height: 1.5; }
.soul-layout-no-sidebar #primary { float: none; width: 100%; }
.soul-layout-no-sidebar #content { width: min(100%, 740px); margin-inline: auto; }
#secondary .widget { overflow-wrap: anywhere; }
@media (max-width: 1023px) {
  #branding .wrapper, #main.wrapper, #colophon .wrapper { width: 94%; max-width: 978px; }
  #primary, #secondary, .left-sidebar-template #primary, .left-sidebar-template #secondary { float: none; width: 100%; }
  #secondary { margin-top: 36px; border-top: 1px solid #ddd; padding-top: 24px; }
}
@media (max-width: 767px) {
  #branding .hgroup-wrap { gap: 18px; padding-top: 24px; }
  #branding #site-title { font-size: clamp(36px, 10vw, var(--soul-title-size)); }
  #branding .hgroup-right { margin-left: 0; width: 100%; }
  #branding .soul-socials ul { justify-content: flex-start; }
  #branding .searchform { float: none; }
  #branding input.s, #branding input.s:focus { width: 160px; max-width: calc(100% - 45px); }
  #branding #access .root { display: block; }
  #branding.soul-menu-ready:not(.toggled-on) #access .root { display: none; }
  #branding.soul-menu-ready .menu-toggle:not([hidden]) {
    display: block; float: none; width: auto; height: auto; min-height: 44px;
    padding: 8px 16px; margin: 0 0 10px; background: #efefef; color: #293867;
    border: 1px solid #ddd; border-radius: 6px; font: 18px 'Gentium Basic', Georgia, serif; cursor: pointer;
  }
  #branding #access li { width: 100%; border-top: 1px solid #ddd; }
  #branding #access li > ul, #branding #access ul ul li > ul,
  #branding #access li.soul-submenu-dismissed > ul {
    display: block; position: static; width: auto; max-width: none; margin-left: 16px;
    background: transparent; border: 0; box-shadow: none;
  }
  #branding .soul-submenu-toggle { display: none; }
  #branding #access .soul-has-submenu > a { padding-right: 14px; }
  #main { padding-top: 32px; }
  .entry-title { font-size: 32px; line-height: 1.3; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
