/** style.css
 *  
 *  @brief General CSS style settings, applicable to all CCEL pages.
 *  
 *  @nee CCEL 2 themes/ccel2010/style.css.
 */

html {
  scroll-padding-top: 100px;
}

body {
  margin: 0;
  padding: 0;
  color: #222;
  background: #fff url(https://staticccel.org/themes/ccel/background.jpg) top
    left scroll repeat; /*#fff0e6;*/
  font: 100% Verdana, Arial, Helvetica, sans-serif;
}

/* http://drupal.org/node/291762 -- prevent mimemail background problems (?) */
body#mimemail-body,
#mimemail-body #main {
  background: white;
}

/* CCEL color palette */
:root {
  --ccel-red: #7a1f1f;
}
.bg-ccel-red {
  background-color: var(--ccel-red);
}

hr {
  border: 1px solid #83786f;
  height: 0px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin-bottom: 0.5em;
}
p {
  font-family: serif;
}

a {
  text-decoration: none;
  font-weight: normal;
  color: var(--ccel-red);
}
a:visited {
  color: var(--ccel-red);
}
a:link,
.sidebar a:visited {
  color: var(--ccel-red);
}
a:hover,
.sidebar a:hover {
  color: #ab4c4c;
  text-decoration: underline;
}
a.no_underline,
img.no_underline {
  color: #ab4c4c;
  text-decoration: none;
}
a.external {
  background: url(https://staticccel.org/pix/external.gif) center right
    no-repeat;
  padding-right: 13px;
}
/* OBSOLETE? Should drop or rename to say *why* bold.... */
a.bold {
  font-weight: bold;
}
fieldset {
  border: 1px solid #ccc;
}
pre {
  background-color: #d7dbc4; /*#eee0d5; #fff0e6;*/
  padding: 0.75em 1.5em;
  font-size: 12px;
  border: 1px solid #ddd;
}

/* ============================================================================
 * TABLES
 */
table {
  /* make <td> sizes relative to body size! */
  font-size: 1em;
  width: 100%;
  /*border:thin black solid; /* added 2016-02-23 */
  /*background-color: #CCCCCC; */
}

tbody {
  border-top: 0px;
}

tr.dark td,
tr.light td {
  padding: 0.3em;
}
tr.dark {
  background-color: #d7dbc4; /*#eee0d5; #fff0e6;*/
}
tr.even {
  background-color: #e0e0e0;
}
tr.odd {
  background-color: #eeeeee;
}

td {
  /*border:thin black solid; /* added 2016-02-23 */
  border-collapse: collapse;
  padding: 2pt;
}

/* Table.border, used for 
 */
table.border {
  font-size: 1em;
  border: thin black solid; /* added 2017-02-24 */
  background-color: #cccccc;
}

table.border td {
  border: thin black solid; /* added 2017-02-24, mainly for search form */
  border-collapse: collapse;
  padding: 2pt;
}

/* Table.hitList, used for search hist lists (OBSOLETE?)
 */
table.hitList {
  border: 0;
  padding: 3pt;
}
table.hitList tr {
  margin-bottom: 9px;
}
table.hitList a.secTitle {
  text-decoration: underline;
  font-weight: bold;
  color: #ab4c4c;
}
table.hitList a.workTitle {
  text-decoration: underline;
  font-weight: bold;
  color: #ab4c4c;
}
table.hitList a.author {
  color: #ab4c4c;
}
table.hitList p.snippet {
  margin: 0;
}

/* ========================================================================= */
/* Styles for CCEL3 discovery items ("dItem") items.
 * @see CCELHOME3 and Item blades.
 *
 * Table.dItemOuter is for CCEL3 main columns
 */
table.altShading tr:nth-child(even) {
  border: none;
  background-color: #cccccc;
}
table.altShading tr:nth-child(odd) {
  border: none;
  background-color: white;
}

table.dItemOuter {
  border: none;
  background-color: white;
}
table.dItemOuter td {
  border: none;
  /* background-color: white; */
}

table.dItem {
  border: none;
  background-color: white;
  border-spacing: 0px;
}

td.dItemHead {
  /* Over the hit-list */
  font-size: larger;
  font-weight: bold;
  text-decoration: underline;
  margin-top: 12pt;
  color: #97252b;
}
td.dItem {
  background: inherit;
  vertical-align: top;
  padding-top: 8pt;
}
td.dItemSee {
  text-align: right;
  padding-bottom: 6pt;
}
td.dItem h3 {
  margin-top: 0;
}

/* ============================================================================
 * A variety of spans.
 */
span.dItemTitle {
  font-weight: bold;
}
span.dItemSubtitle {
}
span.dItemAuthor {
}
span.hiliteGeneral {
  font-weight: bold;
}
// For things like 'author unknown', etc. (@see HTMLUtils::hilite())
span.hiliteProblem {
  color: yellow;
}

/* ============================================================================
 */
.form-item label {
  font-size: 1em;
  color: #222;
  display: block;
  font-weight: bold;
}
.background-color-choice {
  margin-left: -2px;
  margin-right: 10px;
}
.font-size-choice {
  margin-left: -2px;
  margin-right: 10px;
}
.item-list .title {
  font-size: 1em;
  color: #222;
}
.links {
  margin-bottom: 0em;
}
#forum ul.links {
  margin-bottom: 7px;
}
.comment .links {
  margin-bottom: 0em;
}
div.table-div {
  display: table;
  margin: auto;
}
div.table-div div {
  display: table-cell;
}

/*
** Page layout blocks / IDs
*/
#header,
#toptabs {
  width: 100%;
}
#header {
  border: 0px green solid !important;
}
#logo {
  background: #d6d9c4 /*#d7dbc4*/
    url(https://staticccel.org/themes/ccel/bgfade.jpg) scroll repeat-x top left;
  text-align: left;
}
#calvin-logo {
  width: 180px;
  background: url(https://staticccel.org/themes/ccel/calvin-logo.jpg) scroll
    no-repeat bottom right;
}
#calvin-logo a {
  display: block;
  width: 180px;
  height: 75px;
  text-decoration: none;
  background: transparent;
}
#menu_left,
.menu_blank,
#menu_right {
  border-bottom: #000 solid 1px;
  background-color: #d6d9c4; /*#d7dbc4; /*#eee0d5; #fff0e6;*/
}
#menu_left,
#menu_right {
  width: 180px;
}
#menu_right {
  background: #d6d9c4 /*#d7dbc4*/
    url(https://staticccel.org/themes/ccel/calvin-bottom-cs.jpg) scroll
    no-repeat top right;
  vertical-align: top;
}
#menu_right a {
  display: block;
  width: 140px;
  height: 20px;
  text-decoration: none;
  background: transparent;
  margin: 0 auto;
}

#search .form-text,
#search .form-submit {
  border: 1px solid #369;
  font-size: 1.1em;
}
#search .form-text {
  width: 8em;
  height: 1.4em;
  padding: 0 0.5em 0 0.5em;
  margin: 0 0 0.5em 0;
}
#search .form-submit {
  height: 1.5em;
}
#mission {
  padding: 1.5em 2em;
  color: #000;
  border-bottom: 2px solid #83786f;
  margin-bottom: 20px;
}
#mission a,
#mission a:visited {
  color: var(--ccel-red);
  font-weight: bold;
}
.site-name {
  margin: 0.6em 0em 0em 0em;
  padding: 0em;
  font-size: 1.75em;
}
.site-name a:link,
.site-name a:visited {
  color: #333;
}
.site-name a:hover {
  color: #000;
  text-decoration: none;
}
.site-slogan {
  font-size: 1em;
  color: #d7dbc4; /*#eee0d5; #fff0e6;*/
  display: block;
  margin: 0em 0em 0em 0em;
  font-style: italic;
  font-weight: bold;
}
#mission,
#main,
.comment .content {
  line-height: 1.4;
}
#help {
  font-size: 0.9em;
  margin-bottom: 1em;
}
.breadcrumb {
  margin-bottom: 0.5em;
}
.messages {
  background-color: #d7dbc4; /*#eee0d5; #fff0e6;*/
  border: 1px solid #ccc;
  padding: 0.3em;
  margin-bottom: 1em;
}
.error {
  color: red;
  border-color: red;
}
div.error {
  color: black;
  background: #fcc;
  border: 1px solid #d77;
  padding: 0px 0px 0px 2px;
}
.warning {
  font-weight: bold;
  color: #f8c463;
}
div.warning {
  color: black;
  background: #ffd;
  border: 1px solid #f0c020;
  padding: 0px 0px 0px 2px;
}
.success {
  color: green;
  border-color: green;
}
div.password-description {
  padding: 0 2px;
  margin: 4px 0 0 0;
  font-size: 0.85em;
  max-width: 500px;
}

/*
 * status messages which you have to ``look closely'' at if you're interested in them
 */
.status {
  color: gray;
  border-color: gray;
  font-style: italic;
}

/* squish list items to the left edge of a sidebar */
.sidebar div.block div.item-list ul {
  margin-left: 0;
  padding-left: 0;
}

#footer {
  background-color: transparent; /* #E5E4CC; /*#D8D6B2; /*#d7dbc4; /*#eee0d5; #fff0e6;*/
  padding: 1em;
  font-size: 0.8em;
  text-align: center;
}
#footer table {
  margin-left: auto;
  margin-right: auto;
}

/*
** Common declarations for child classes of node, comment, block, box, etc.
** If you want any of them styled differently for a specific parent, add
** additional rules /with only the differing properties!/ to .parent .class.
** See .comment .title for an example.
*/
.ui-accordion .ui-accordion-header,
.title {
  font-weight: bold;
  font-size: 1.3em;
  color: #222;
  padding: 0px;
  margin: 0px; /* decrease default margins for h<x>.title */
}
.title a {
  font-weight: bold;
}
#main h1.title {
  background: transparent
    url(https://staticccel.org/themes/ccel/header-bg-right.jpg) scroll top right
    no-repeat;
  padding: 0px 10px;
  line-height: 1.5em;
}
/*html>body #main h1.title
{
	padding: 3px 5px 3px 10px;
	line-height:1.2em;
}*/
#main h1.title,
#main h1.title a {
  color: #fff;
}
#main .outer-title-wrapper {
  background: #590000 url(https://staticccel.org/themes/ccel/header-bg.jpg)
    scroll top left repeat-x;
  margin-bottom: 0.5em;
}
#main .inner-title-wrapper {
  background: transparent
    url(https://staticccel.org/themes/ccel/header-bg-left.jpg) scroll top left
    no-repeat;
}
.submitted {
  color: #444;
  font-size: 0.8em;
}
.links {
  color: #333;
}
.links a {
  font-weight: bold;
}
.box {
  padding: 0 0 1.5em 0;
}
.block {
  margin: 0.5em 0.5em 1em 0.5em;
}
.block .title {
  margin-bottom: 0.25em;
}
.box .title {
  font-size: 1.1em;
}
.node {
  margin: 0.5em 0 2em 0;
}
.sticky {
  padding: 0.5em;
  background-color: #d7dbc4; /*#eee0d5; #fff0e6;*/
  border: solid 1px #ddd;
}
.node .content,
.comment .content {
  margin: 0.5em 0 0.5em 0;
}
.node .taxonomy {
  color: #999;
  font-size: 0.8em;
  padding: 1.5em;
}
.node .picture {
  border: 1px solid #ddd;
  float: right;
  margin: 0.5em;
}
/* Fix problem of there being whitespace beneath the image making the both weird-shaped. */
.node .picture img {
  vertical-align: top;
}
.comment {
  border: 1px solid #abc;
  padding: 0.5em;
  margin-bottom: 1em;
}
.comment .title a {
  font-size: 1.1em;
  font-weight: normal;
}
.comment .new {
  text-align: right;
  font-weight: bold;
  font-size: 0.8em;
  float: right;
  color: red;
}
.comment .picture {
  border: 1px solid #abc;
  float: right;
  margin: 0.5em;
}

/*
 * Fix #342 point 3 by not having the <img /> tag's alt text
 * rendered at the bottom of the image.
 */
.comment .picture img {
  vertical-align: middle;
}

/* ============================================================================
 * Module specific styles
 *
 * @TODO Split to one file per module. Delete obsolete ones.
 */
/*
#aggregator .feed
{
	background-color: #d7dbc4;
	border: 1px solid #ccc;
	padding: 1em;
	margin: 1em 0 1em 0;
}
#aggregator .news-item .source, #aggregator .news-item .categories, #aggregator .source, #aggregator .age
{
	color: #999;
	font-style: italic;
	font-size: 0.9em;
}
#aggregator .title
{
	margin-bottom: 0.5em;
	font-size: 1em;
}
#aggregator h3
{
	margin-top: 1em;
}
*/

/* #forum styles deleted for CCEL 3 */

#profile .profile {
  clear: both;
  border: 1px solid #abc;
  padding: 0.5em;
  margin: 1em 0em 1em 0em;
}
#profile .profile .name {
  padding-bottom: 0.5em;
}
.profile h3 {
  text-decoration: underline;
  border: none;
}
.profile dl {
  margin-left: 1.5em;
}

/* .calendar styles deleted for CCEL 3 */

/* tr.watchdog-* styles deleted for CCEL3 */

/* Stuff from ccel.css */
p.hang {
  margin-left: 3em;
  text-indent: -3em;
  margin-top: 0px;
  margin-bottom: 0px;
}
p.List1,
p.List2,
p.List3,
p.List4 {
  margin-top: 0px;
  margin-bottom: 0px;
}
p.List1 {
  margin-left: 0.3in;
}
p.List2 {
  margin-left: 0.6in;
}
p.List3 {
  margin-left: 0.9in;
}
p.List4 {
  margin-left: 1.2in;
}
p.ListCont1,
p.ListCont2,
p.ListCont3,
p.ListCont4 {
  text-indent: 0in;
  margin-right: 0.3in;
}
p.ListCont1 {
  margin-left: 0.3in;
}
p.ListCont2 {
  margin-left: 0.6in;
}
p.ListCont3 {
  margin-left: 0.9in;
}
p.ListCont4 {
  margin-left: 1.2in;
}

#user-login-form {
  text-align: left;
}

/* For UserEdit */
.form-item {
  margin-bottom: 0;
  margin-top: 1em;
}
label.userSetting {
  display: block;
  width: 100pt;
  font-weight: bold;
}
span.form-required {
  color: #97252b;
}
div.fieldset-wrapper {
  margin-left: 18pt;
}

/* #toptabs styles deleted for CCEL3 */

ul.primary {
  border-collapse: collapse;
  padding: 0 0 0 1em;
  white-space: nowrap;
  list-style: none;
  margin: 5px;
  height: auto;
  line-height: normal;
  border-bottom: 1px solid #bbb;
}
ul.primary li {
  display: inline;
}
ul.primary li a {
  background-color: #ddd;
  border-color: #bbb;
  border-width: 1px;
  border-style: solid solid none solid;
  height: auto;
  margin-right: 0.5em;
  padding: 0 1em;
  text-decoration: none;
  color: var(--ccel-red);
}
ul.primary li.active a {
  background-color: #fff;
  border: 1px solid #bbb;
  border-bottom: #fff 1px solid;
  color: var(--ccel-red);
}
ul.primary li a:hover {
  background-color: #eee;
  border-color: #ccc;
  border-bottom-color: #eee;
  color: #c44;
}
ul.secondary {
  border-bottom: 1px solid #bbb;
  padding: 0.5em 1em 0.5em 1em;
  margin: 5px;
}
ul.secondary li {
  display: inline;
  padding: 0 1em;
  border-right: 1px solid #ccc;
}
ul.secondary a {
  padding: 0;
  text-decoration: none;
  color: var(--ccel-red);
}
ul.secondary a.active {
  border-bottom: 4px solid #999;
  color: var(--ccel-red);
}

/* Navigation tabs (in conjuction with styles listed in /misc/drupal.css) */
ul.primary li span {
  background-color: #ddd;
  border-color: #bbb;
  border-width: 1px;
  border-style: solid solid none solid;
  height: auto;
  margin-right: 0.5em;
  padding: 0 1em;
  text-decoration: none;
}

ul.navigation {
  margin: -0.5em;
  padding: 0px;
  border: 0px;
}

ul.navigation li {
  list-style: none;
  margin: 0px;
  padding: 0px;
  border: 0px;
}

ul.navigation li a,
ul.navigation li a:link,
ul.navigation li a:active,
ul.navigation li a:visited,
ul.navigation li a:hover {
  display: block;
  background-color: #c7c5a1;
  color: #3e3c28;
  font-weight: bold;
  text-decoration: none;
  padding: 0.5em;
  border-top-style: none;
  border-left-style: none;
  border-right: 0px solid black;
  border-bottom: 1px solid #3e3c28;
}

ul.navigation li.active a,
ul.navigation li.active a:link,
ul.navigation li.active a:visited,
ul.navigation li.active a:active,
ul.navigation li.active a:hover {
  background: #e8e6d1
    url(https://staticccel.org/themes/ccel/navigation-active-bg.gif) scroll top
    right repeat-y;
  color: #3e3c28;
  font-weight: bold;
  text-decoration: none;
  border-right-width: 0px;
}

ul.navigation li a:hover {
  background: #a6a37e;
  color: #29281b;
  font-weight: bold;
  text-decoration: none;
}

/* Alternate Link Colors */

a.alt_color {
  color: #587436;
}

/* CCEL Store */
.store-img-left {
  float: left;
  margin: 0em 1em 1em 0em;
}
.store-img-right {
  float: right;
  margin: 0em 0em 1em 1em;
}
.store-related-product {
  float: right;
  border: 1px solid black;
  margin: 0em 0em 1em 1em;
  padding: 0.5em;
}

/* Stylesheet for book view pages in drupal.
 * 
 * The .TOCn ones are indeed for Tables of Contents, which appear in multiple
 * forms in version directories. For example: /ccel/c/chesterton/orthodoxy has:
 *   cache/xml/orthodoxy.toc.xml  -- ThML with divn title and XIncludes
 *   cache/xml/orthodoxy.toc2.xml -- Exact same except adds xi namespace prefix
 *   cache/xml/orthodoxy.toc      -- HTML div (for AJAX, I think)
 *   cache/xml/orthodoxy.toc.tix  -- ???
 * 
 * (some books, like macdonald/unspoken1, have multiple TOCs)
 */

a.TOC {
  text-decoration: none;
  width: 80%;
}
a.TOC:hover {
  text-decoration: underline;
}

.TOC1,
.TOC2,
.TOC3,
.TOC4 {
  text-align: left;
}
.TOC1 a:first-child {
  margin-left: 1em;
  font-size: 110%;
}
.TOC2 a:first-child {
  margin-left: 3em;
  font-size: 100%;
}
.TOC3 a:first-child {
  margin-left: 5em;
  font-size: 90%;
}
.TOC4 a:first-child {
  margin-left: 7em;
  font-size: 90%;
}
.TOC5 a:first-child {
  margin-left: 9em;
  font-size: 90%;
}
.TOC6 a:first-child {
  margin-left: 11em;
  font-size: 90%;
}

/* Push the TOC expando (open.gif or close.gif) to the left a little */
.TOC1 a img,
.TOC2 a img,
.TOC3 a img,
.TOC4 a img,
.TOC5 a img,
.TOC6 a img {
  margin-left: -15px;
}

/* Toolbar */
.controlbox {
  bottom: 0px;
  background: var(--ccel-red);
  color: white;
  padding: 4px 4px 4px 4px;
  border: 1px solid gray;
  visibility: hidden;
  font-size: 10pt;
}
.cbutton {
  border: 1px solid #330000;
  background: #cccccc;
  padding: 2px 2px 2px 2px;
}

table.padded td {
  padding-right: 1em;
}

/* Download History */
.data_table {
  border-collapse: collapse;
  empty-cells: show;
}
.data_table td,
.data_table th {
  padding: 0.2em 1em 0.2em 0em;
}

/*
 * Show no linebreak before the links at the bottom of each comment.
 * ( http://trac.ccel.org/trac/ticket/342 item 2)
 */
div.comment div.links ul.links {
  display: inline;
}

/**
 * index/author/A
 */
.alphabar {
  display: block;

  margin: -20px auto 0pt auto;

  /* Padding on right so that links do not disappear on mobile devices */
  padding: 0em 5em 0em 1em;

  background: #83786f;
}

.alphabar *,
.alphabar a {
  padding: 0pt 1.5pt;

  color: #ffffff;

  text-align: center;
  font-size: 1.25em;
  font-weight: bold;
}

.alphabar a:hover {
  text-decoration: none;
}

.alphabar .selected {
  color: #d9c756;
}

/*
 * Put borders around blocks in the main content area for
 * the landing pages.
 */
#content-blocks .block {
  padding: 0pt;
  margin: 8pt;
}
#content-blocks .block .content {
  padding: 8pt;
}

#content-blocks .odd .block {
  background: #dddddd;
}

/*
 * Have cooler in-page blocks.
 */
.ui-accordion .ui-accordion-header,
#content-blocks .block-title {
  padding: 2pt;
  margin: 0pt;

  color: white;
  background: #83786f;
}

.ui-accordion .ui-accordion-header {
  /* Just use a bit of margin. */
  margin: 1px 0px;
}

.ui-accordion .ui-accordion-header a,
.ui-accordion .ui-state-default a,
.ui-accordion .ui-state-default a:link,
.ui-accordion .ui-state-default a:visited {
  display: inline;
  font-size: inherit;
  color: inherit;
}

/*
 * Disabled rounded corners for our accordions which we are rendering like blocks. The exact rules are pulled and then modified from jquery-ui-1.7.2's jquery-ui.css
 */
.ui-accordion .ui-corner-all,
.ui-accordion .ui-corner-top,
.ui-accordion .ui-corner-bottom,
.ui-accordion .ui-corner-left,
.ui-accordion .ui-corner-right,
.ui-accordion .ui-corner-tl,
.ui-accordion .ui-corner-tr,
.ui-accordion .ui-corner-br,
.ui-accordion .ui-corner-bl {
  -moz-border-radius: 0pt;
  -webkit-border-radius: 0pt;
  border-radius: 0pt;
}

/*
 * Disabled silly borderness on widgets
 */
.ui-state-default,
.ui-widget .ui-state-default,
.ui-state-active,
.ui-widget-content .ui-state-active,
.ui-state-hover,
.ui-widget-content .ui-state-hover,
.ui-state-focus,
.ui-widget-content .ui-state-focus,
.ui-accordion .ui-widget-content {
  border: none;
}

/*
 * A class for elements which require javascript to be enabled to be useful.
 */
.noscript-hide {
  display: none;
}

/*
 * A class for elements which should start out hidden and be shown only when needed by javascripty stuffage
 */
.start-hidden {
  display: none;
}

/* make the font_size selection in CCEL Preferences look nicer */
.preferences-font-size-wrapper > div.form-item {
  display: inline-block;
  padding-right: 1em;
}

/* The styling used to render the `aA' buttons/boxes for choosing font_size. */
.font-size-choice,
.background-color-choice {
  display: inline-block;
  height: 24pt;
  line-height: 24pt;
  border: 2pt solid silver;
  vertical-align: bottom;
  text-align: center;
}
.background-color-choice {
  /*
	 * Since we don't have fixed width but do have a fixed height for the background color choices, we provide padding on the sides.
	 */
  padding: 0pt 6pt 0pt 6pt;
}
.font-size-choice {
  /* make the font size chooser square. (be square or be THERE)*/
  width: 24pt;
}
.font-size-choice a,
.background-color-choice a,
.font-size-choice a:hover,
.background-color-choice a:hover {
  text-decoration: none;
  color: inherit;
}
.font-size-choice.chosen,
.background-color-choice.chosen {
  /* background: #ffffdd; */
  border: 2pt solid gold;
}

/* fix the display of the font family chooser in the popup menu: */
#ccelmod-book-menu-style-form .form-item {
  display: inline-block;
  padding: 0pt 12pt 0pt 0pt;
}
/* don't let links in font choices appear to be links. */
a.font-choice,
.font-choice a {
  color: inherit !important;
}

/*
 * Support for lists which span both vertically and horizontally.
 */
ul.horizontal-list {
  /* Disable weapons */
  list-style: none;
}
ul.horizontal-list li {
  display: inline-block;
}

/*
 * x.png, like a window's `X' button.
 */
.img-x {
  min-width: 17px;
  min-height: 17px;
}

/*
 * http://www.w3.org/TR/2011/CR-css3-background-20110215/#the-box-shadow
 * http://css3.info/preview/box-shadow/
 */
.ccel-boxshadow {
  -moz-box-shadow: 1pt 1pt 4pt 2pt rgba(34, 34, 34, 0.5);
  -webkit-box-shadow: 1pt 1pt 4pt 2pt rgba(34, 34, 34, 0.5);
  box-shadow: 1pt 1pt 4pt 2pt rgba(34, 34, 34, 0.5);
}

/*
 * The colors chosen here (particularly for .landingpage-title and .landingpage-quip) must be kept in sync with http://ccel.org/node/7486 (http://ccel.org/).
 */
.landingpage-heading {
  color: #83786f;
  font-size: 0.85em;
  border-bottom: 2px solid #83786f;
  padding: 10px;
  margin-bottom: 10px;

  /* must match the size of .landingpage-icon's height + borders + margin. */
  height: 67px;
}
.landingpage-heading > * {
  display: inline-block;
}
.landingpage-icon {
  width: 136px;
  height: 67px;

  border: none;
  margin: 0px;
  padding: 0px;

  float: right;
}
.landingpage-title {
  color: #587436;
  font-family: Georgia;
  font-size: 2.4em;

  margin: 5px 0 0 0;

  position: relative;
  top: 6pt;
  left: 3pt;
}
.landingpage-quip {
  margin: 0pt 0pt 0pt 1em;

  position: relative;
  top: 6pt;
}

img.gear {
  width: 24px;
  height: 24px;
}

.ccel-topic-teaser {
  background: white;
  padding-left: 6pt;
  padding-right: 6pt;
}

/*
 * In ccel_articles, have the fivestar floated to the right for space efficiency/beauty:
 */

/* The element containing the whole widget */
form.fivestar-widget,
div.fivestar-static-form-item {
  float: right;
}

/* The stars themselves: */
form.fivestar-widget div.fivestar-widget,
div.fivestar-static-form-item div.fivestar-widget-static {
  float: right;
  clear: right;
}

/* The `Average:' titleish text: */
form.fivestar-widget label, div.fivestar-static-form-item label,
/* The  bottom ``Your rating'' text */
form.fivestar-widget div.description, div.fivestar-static-form-item div.description {
  text-align: right;
  clear: right;
}

/* The downgraded (nonjs) version of the rating system: */
form.fivestar-widget input,
form.fivestar-widget select {
  clear: right;
  float: right;
  text-align: right;
}

/* Get the actual content of the node beneath the widget: */
.node-ccel_article .content .content-body {
  clear: right;
}

/* end fivestar widget rules */

/* controllinks styles used on /meditate and /study */
.controllinks,
.controllinks a:link,
.controllinks a:visited {
  color: var(
    --ccel-red
  ); /* Override a:visitedbook-navbar-button
{ color: #44f; } */
  font-family: sans-serif;
  font-size: 16pt;
}

.controllink:hover,
a.controllink:hover {
  cursor: pointer;
}

.controllinks .loading,
.controllinks a.loading,
.controllinks a:link.loading,
.controllinks a:visited.loading {
  text-decoration: underline;
}

.controllinks .controllink-doublearrow,
.controllinks a:link.controllink-doublearrow,
.controllinks a:visited.controllink-doublearrow,
.controllink-doublearrow {
  font-size: 125%;
}
/* end controllinks used on /study and /meditate */

/* Wikibook help formatting */
.helpButton {
  position: relative;
  color: var(--ccel-red);
  cursor: pointer;
}

#helpPopupContainer {
  float: left;
  left: 20px;
  z-index: 10;
}

#wikibooksHelpImage {
  position: absolute;
  left: 0px;
  width: 700px;
  margin: 0px auto;
  border: 15px solid grey;
  background: white;
  z-index: 10;
}

/* Wikibook homepage formatting */

#main #content h1#title {
  font-family: Georgia;
  font-size: 2.4em;
  color: #587436;
  margin-left: auto;
  margin-right: auto;
  padding: 10px;
  border-bottom: 2px solid #83786f;
}

.wikibookblurb {
  width: 47%;
  min-height: 160px;
  float: left;
  border-right: 1px solid lightgrey;
  border-left: 1px solid lightgrey;
  padding: 10px;
}
.main-element-wrapper {
  margin: 0px auto;
  width: 900px;
}
.chart-wrapper {
  width: 100%;
  float: left;
  clear: left;
  min-height: 200px;
}
.wikibooks-root-page .featuredwikibook,
.currentproject {
  width: 47%;
  min-height: 160px;
  float: right;
  border-right: 1px solid lightgrey;
  border-left: 1px solid lightgrey;
  padding: 10px;
}
.wikibooklinks {
  margin-top: 20px;
  width: 100%;
  float: left;
  border-bottom: 2px solid grey;
}
.topwikibooks,
.leaderboard-wrapper {
  width: 810px;
  margin-top: 70px;
  margin: 0px auto;
}

.leaderboard-wrapper {
  width: 810px;
  margin-top: 40px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.book-checked-out {
  background-color: #d0d0d0;
}

/* end Wikibook homepage formatting*/

/*Tracking Page*/
.tracking-page-board {
  border: 1px solid gray;
  background: #f3f3e9;
  color: #664e33;
  padding: 4pt;
  width: 600px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.tracking-page-table th,
.tracking-page-table td {
  text-align: center;
}
.hanging-indent {
  padding-left: 10px;
  text-indent: -10px;
}
/* end Tracking Page */

/* Wikipage*/
#wikipage-watermark {
  background-image: url(img/watermark.png);
  background-repeat: repeat;
  background-position: top center;
}

/*
 * For http://ccel.org/read
 */
.ccel-menu-flat ul.menu li {
  display: inline;
  margin: 0pt;
  padding: 0pt;
}
.ccel-menu-flat li:after {
  content: ', ';
}
.ccel-menu-flat li.last:after {
  content: none;
}
.ccel-menu-flat a {
  font-weight: bold;
}

.resizable-textarea {
  width: 99%;
}
.node-form .form-text {
  width: 99%;
}

/*
 * For http://ccel.org/search
 */
table#search-topical-quotes {
  border-spacing: 0;
  border: 0;
  width: 100%;
}

table#search-topical-quotes td {
  padding: 3px;
}

td.num {
  text-align: right;
  padding-right: 8px;
}

/* ========================================================================= */
/* Added sjd */

/* grid-box handles layout of the small front page sections.
*/
div.grid-box {
  display: inline-block;
  vertical-align: top;
  padding-right: 12pt;
  width: 180pt;
}

div.grid-box * img {
  width: 150px;
}

/* helpbox is generated by ccel_search_advanced_helpbox().
*/
table.helptable {
  margin: 0em auto;
  width: 100%;
}
table.helptable tr {
  vertical-align: top;
}
table.helptable td:first-child {
  height: 30px;
  width: auto;
}
table.helptable td {
  width: 100px;
}
table.helptable p {
  font-size: 90%;
  font-style: italic;
  margin-top: 0pt;
  margin-bottom: 0pt;
}
.section-list-book-title a {
  font-weight: bold;
}
.my_group_text {
  font-size: 0.85rem;
}
.profile dt {
  margin: 0 0 0.2em 0;
  font-weight: bold;
}
.profile dd {
  margin: 0 0 1em 0;
}
.picture {
  width: 32px;
  height: 32px;
}
.picture img {
  width: 32px;
  height: 32px;
}
.picture img.banner {
  position: relative;
  top: -12px;
}
ul.pagination {
  margin: auto;
  width: 60%;
}
ul.pagination li {
  display: inline-block;
  margin: 10px 1% 10px 1%;
}
th {
  background: #b8b8b8;
}
tr.odd {
  background: #dfdfdf;
}
tr.even {
  background: white;
}
a.size_0 {
  font-size: 10px;
}
a.size_1 {
  font-size: 12px;
}
a.size_2 {
  font-size: 14px;
}
a.size_3 {
  font-size: 16px;
}
a.size_4 {
  font-size: 18px;
}
a.size_5 {
  font-size: 20px;
}
.active.audioLink {
  color: blue;
  font-weight: bold;
}
ul.tabs.primary {
  white-space: unset;
}
ul.tabs.primary li a {
  white-space: nowrap;
}
#searchBox {
  width: 95%;
}
.alert {
  background-color: orange;
}
.card-footer .btn.bg-ccel-red {
	margin-left: -10px;
}
#footer {
	padding-top: 2rem;
	background: var(--ccel-red);
	color: hsl(0 38% 70% / 1);
}
#footer a {
	color: white;
}
.footer-ruler {
    margin-right: auto;
    margin-left: auto;
    width: 60%
}
#footer-rule {
	margin-top: 2rem;
}
#footer-logos a {
	display: inline-block;
	color: #d09595;
}
#footer-logos a img {
	height: 70px;
	object-fit: cover;
}