/* Recreation of the original sagecommons.org WordPress "Atahualpa" theme */
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0;
  font-family: tahoma, arial, sans-serif; font-size: 1em;
  color: #000; background: #fff;
}
a:link, a:visited, a:active { color: #666; font-weight: bold; text-decoration: none; }
a:hover { color: #c00; font-weight: bold; text-decoration: underline; }
ul, ol, dl, p, h1, h2, h3, h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; padding-top: 0; padding-bottom: 0; }
ul ul, ul ol, ol ul, ol ol { margin-top: 0; margin-bottom: 0; }
code, pre { font-family: "Courier New", Courier, monospace; font-size: 1em; }
pre { overflow: auto; padding-bottom: 1.5em; width: 99%; }
hr { display: block; height: 2px; border: none; margin: .5em auto; background-color: #ccc; }
img { border: 0; max-width: 100%; height: auto; }

/* ---- Layout: 200px | fluid | 200px ---- */
#wrapper { width: 99%; margin: 0 auto; }
#layout { display: flex; align-items: stretch; }
#left, #right { flex: 0 0 200px; width: 200px; box-sizing: content-box; padding: 10px; background: #fff; }
#left  { border-right: 1px dashed #ccc; }
#right { border-left: 1px dashed #ccc; }
#middle { flex: 1 1 auto; min-width: 0; padding: 10px 15px; }

/* ---- Widgets ---- */
.widget { margin: 0 0 15px 0; }
.widget-title h3 { padding: 0; margin: 0; font-size: 1.6em; font-weight: bold; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { margin: 2px 0; padding: 0 0 0 5px; border-left: 7px solid #ccc; }
.widget ul li:hover { border-left-color: #000; }
.widget a:link, .widget a:visited, .widget a:active { font-weight: normal; color: #666; text-decoration: none; }
.widget a:hover { color: #000; text-decoration: none; }

/* nav menu: the grey bar sits on the link, nested items indent */
.widget_nav_menu ul li { border-left: 0; padding: 0; }
.widget_nav_menu ul li a { display: block; padding: 0 0 0 5px; border-left: 7px solid #ccc; }
.widget_nav_menu ul li a:hover { border-left-color: #000; }
.widget_nav_menu ul li a.current { color: #000; border-left-color: #000; }
.widget_nav_menu ul ul li { margin: 2px 0 2px 5px; }

.tagcloud { line-height: 1.3; }
.tagcloud a { margin-right: 2px; }

/* ---- Posts & pages ---- */
.post { margin: 0 0 30px 0; }
.post-headline h1, .post-headline h2 { margin: 0; padding: 0; font-size: 1.8em; }
.post-headline h1, .post-headline h2 a:link, .post-headline h2 a:visited { color: #666; text-decoration: none; }
.post-headline h2 a:hover { color: #000; }
.post-byline { margin: 5px 0 10px 0; color: #666; font-size: .9em; }
.post-bodycopy p { margin: 1em 0; }
.post-bodycopy h1 { font-size: 1.8em; }
.post-footer { clear: both; margin: 0; padding: 5px; background: #eee; color: #666; line-height: 18px; }
.post-footer a:link, .post-footer a:visited { color: #333; font-weight: normal; }
.post-footer a:hover { color: #333; text-decoration: underline; }

.post img { padding: 5px; border: 1px solid #ddd; background-color: #f3f3f3; border-radius: 3px; box-sizing: border-box; }
.alignleft  { float: left;  margin: 10px 10px 5px 0; }
.alignright { float: right; margin: 10px 0 5px 10px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.post table { border-collapse: collapse; margin: 10px 0; }
.post table th { background: #888; color: #fff; font-weight: bold; font-size: 90%; padding: 4px 8px; border: 1px solid #fff; text-align: left; }
.post table td { padding: 4px 8px; border-bottom: 1px solid #ddd; text-align: left; }
.post-bodycopy { overflow-wrap: break-word; }
.post-bodycopy table { display: block; overflow-x: auto; }

.navigation-bottom { margin: 20px 0 0; padding: 10px 0 0; border-top: 1px dashed #ccc; overflow: hidden; }
.older { float: left;  width: 48%; text-align: left; }
.newer { float: right; width: 48%; text-align: right; }

blockquote { margin: 10px 20px; padding: 0 10px; border-left: 5px solid #ddd; color: #444; }

/* ---- Small screens: stack sidebars under the content ---- */
@media (max-width: 760px) {
  #layout { flex-direction: column; }
  #middle { order: 1; padding: 10px 16px; }
  #left   { order: 2; }
  #right  { order: 3; }
  #left, #right { width: auto; flex: none; padding: 10px 16px; border: 0; border-top: 1px dashed #ccc; }
}

/* Images converted from [singlepic] gallery shortcodes */
a.ngg-singlepic-link { display: block; width: fit-content; max-width: 100%; margin: 10px auto; }
a.ngg-singlepic-link:hover { text-decoration: none; }
img.ngg-singlepic { display: block; max-width: 100%; }

/* Galleries converted from [nggallery] shortcodes */
.ngg-thumbnails { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.ngg-thumbnails a { display: block; }
.ngg-thumbnails img { display: block; width: 100px; height: 75px; object-fit: cover; padding: 3px; border: 1px solid #ddd; background: #f3f3f3; border-radius: 3px; }
.ngg-thumbnails a:hover img { border-color: #999; }
.ngg-sites { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.ngg-site { display: flex; gap: 15px; align-items: flex-start; }
.ngg-site-photo { flex: 0 0 25%; max-width: 240px; }
.ngg-site-photo img { display: block; width: 100%; height: auto; }
.ngg-site-name { flex: 1; padding-top: 4px; }
.post-bodycopy h3[id^="site-"] { font-size: 1.6em; margin-top: 20px; }
