/**
 * FinPx theme.
 *
 * The parts of the D7 venture_theme (style.css, by devsaran.com, GPL v2:
 * LICENSE.txt) that FinPx pages show, and the layout of FinPx's own
 * page.tpl.php. Left out: venture's slider, drop-down main menu, mobile menu,
 * comment, forum, poll and search styles (FinPx's header was switched off),
 * and the Google Fonts import (served from the site only: Open Sans is used
 * when installed, else Helvetica / Arial as before).
 *
 * Loaded after core's CSS (architecture 10.10), so these rules override it.
 */

/* Page and type (venture style.css "Body & Main", "Typography"). */
body {
  background: #f5f6f8;
  color: rgb(5, 5, 5);
  font: 14px/1.6 'Open Sans', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
/* Scoped to the page, so the administration bar (page_top) keeps its look. */
.page--finpx a { color: #000; text-decoration: none; }
.page--finpx a:hover, .page--finpx a:focus { color: #001380; }
.page--finpx h1, .page--finpx h2, .page--finpx h3, .page--finpx h4, .page--finpx h5, .page--finpx h6 { font-weight: 600; color: #000; line-height: 1.4em; font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif; }
.page--finpx h1 { font-size: 28pt; margin: 0 0 20px; color: #001380; }
.page--finpx h2 { font-size: 14pt; color: #001380; }
.page--finpx h3 { font-size: 12pt; }
.page--finpx h4 { font-size: 1em; }
.page--finpx p { margin: 0 0 20px; }
.page--finpx strong { font-weight: 600; color: #000; }
.page--finpx small { font-size: 80%; }
.page--finpx hr { border: solid #eee; border-width: 1px 0 0; clear: both; height: 0; margin: 40px 0; }
.page--finpx img { max-width: 100%; height: auto; }

/* Layout (FinPx page.tpl.php): the sidebar beside the main content. */
.page--finpx { max-width: none; margin: 0; padding: 0; background: #f5f6f8; }
#layout { display: flex; gap: 0; min-height: 600px; align-items: stretch; }
#sidebar { width: 200px; flex: 0 0 200px; min-width: 0; padding: 0; }
.finpx-main { flex: 1; min-width: 0; padding: 16px 24px; background: #fff; }
#layout > .finpx-main:only-child { padding: 20px; }
.page--finpx .page-title {
  font-family: 'Cambria Math', Cambria, Georgia, serif;
  font-size: 24px;
  font-weight: normal;
  line-height: 1.3;
  color: #1e2a3a;
  margin: 0 0 16px;
}
#messages { padding: 0; }
#messages .messages { margin: 0; border-radius: 0; }

/* Header and footer: only when blocks are placed there (FinPx's D7 site had
   neither; the copyright line of its home page was a footer). */
.finpx-header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 10px 24px; background: #fff; border-bottom: 1px solid #e4e4e4; }
.finpx-header .site-logo { max-height: 40px; }
.finpx-header .menu--main, .finpx-header .menu--account { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }
.finpx-footer { padding: 16px 24px; background: #f5f6f8; color: #555; font-size: 13px; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.finpx-footer a { color: #555; margin: 0 .5rem; }
.finpx-footer a:hover { color: #000; }
.region-sidebar .block + .block { margin-top: 0; }
.region-sidebar .block-title { font-family: 'Cambria Math', Cambria, Georgia, serif; font-size: 16px; font-weight: normal; color: #1e2a3a; margin: 12px 16px 8px; }

/* Lists. */
.finpx-main ul, .finpx-main ol { margin: 0 0 1em 1.5em; padding: 0; }
.finpx-main ul { list-style: disc; }
.finpx-main ol { list-style-type: decimal; }
.finpx-main ul ul, .finpx-main ol ol, .finpx-main ul ol, .finpx-main ol ul { margin-bottom: 0; }

/* Tables (venture style.css). */
.finpx-main table { margin: 0 0 1.5em; width: 100%; border: none; background: #fff; }
.finpx-main th { font-weight: bold; padding: 10px; background: rgb(187, 203, 247); color: rgb(7, 7, 7); border-bottom: none; }
.finpx-main thead th { background: rgb(187, 203, 247); }
.finpx-main td { padding: 5px 10px; border-top: 1px solid #fff; border-right: 1px solid #fff; border-bottom: none; }

/* Forms (venture style.css "Forms", "Form Buttons"). */
.finpx-main .form-item { margin-bottom: 1em; margin-top: 2px; }
.finpx-main .form-item label, .finpx-main .form-label { font-size: 13px; font-weight: bold; }
.finpx-main .form-type-checkbox > label, .finpx-main .form-type-radio > label { font-weight: normal; margin-left: 4px; }
.finpx-main input.form-text, .finpx-main input.form-email, .finpx-main input.form-number,
.finpx-main input.form-password, .finpx-main input.form-tel, .finpx-main input.form-url,
.finpx-main textarea, .finpx-main select {
  border: 1px solid #ccc;
  border-radius: 0;
  padding: 4px;
  font-size: 0.929em;
  margin: 2px 0;
}
.finpx-main textarea { line-height: 1.5; }
.finpx-main .form-actions { padding-top: 10px; }
.finpx-main fieldset { border: 1px solid #ccc; border-radius: 4px; padding: 1em 10px; margin: 0 0 1em; background: #fff; }
.finpx-main fieldset > legend { font-weight: bold; padding: 0 4px; }
.finpx-main button,
.finpx-main input[type="submit"],
.finpx-main input[type="reset"],
.finpx-main input[type="button"] {
  background: linear-gradient(to bottom, #fff 0%, #e3e3e3 100%);
  border: 1px solid #dbdbdb;
  border-radius: 6px;
  box-shadow: inset 0 1px 0 0 #fff;
  color: #333;
  text-shadow: 0 1px 0 #fff;
  font-weight: bold;
  padding: 4px .8em 5px;
  font-size: 13px;
  cursor: pointer;
}
.finpx-main button:hover,
.finpx-main input[type="submit"]:hover,
.finpx-main input[type="reset"]:hover,
.finpx-main input[type="button"]:hover { background: linear-gradient(to bottom, #dbdbdb 0%, #f2f2f2 100%); color: #333; }
.finpx-main a.button { background: linear-gradient(to bottom, #fff 0%, #e3e3e3 100%); border: 1px solid #dbdbdb; border-radius: 6px; color: #333; font-weight: bold; font-size: 13px; padding: 4px .8em 5px; }
.finpx-main a.button:hover { background: linear-gradient(to bottom, #dbdbdb 0%, #f2f2f2 100%); color: #333; }
.finpx-main a.button--danger { color: #a00; }

/* Tabs (venture style.css "Admin Tabs"). */
.page--finpx .tabs ul { border-bottom: 1px solid #b7b7b7; margin: 0 0 10px; gap: 5px; }
.page--finpx .tabs a { padding: 0 1em; line-height: 1.5385em; border: none; border-radius: 4px 4px 0 0; color: #000; }
.page--finpx .tabs a:hover { background: #888; color: #fff; }
.page--finpx .tabs .is-active a { background: #666; color: #fff; border: none; margin-bottom: 0; font-weight: normal; }
.page--finpx .tabs--secondary ul { background: #666; border-bottom: none; gap: 0; }
.page--finpx .tabs--secondary a { color: #ccc; }
.page--finpx .tabs--secondary .is-active a, .page--finpx .tabs--secondary a:hover { background: #888; color: #fff; }

/* Narrow screens: the sidebar above the content. */
@media (max-width: 650px) {
  #layout { flex-direction: column; }
  #sidebar { width: 100%; flex-basis: auto; }
  .finpx-main { padding: 16px; }
}
@media print {
  #sidebar, .finpx-header, .finpx-footer { display: none; }
  body, .page--finpx { background: #fff; }
}
