/**
 * @file
 * flwpx theme.
 *
 * In the order the D7 site applied them:
 * 1. The parts of the D7 venture_theme 7.x-1.1 (style.css and
 *    css/responsive.css, by devsaran.com, GPL v2: LICENSE.txt), as flwpx
 *    had changed it (grey header, black menu), that the flwpx pages show,
 *    and the few D7 core rules they relied on (system.theme.css,
 *    system.menus.css).
 * 2. The pages' own rules: each D7 page body carried the same <style> block
 *    (.txt), and wrote its headings and the coloured "flwpx" with style
 *    attributes; those are classes here (.px-name, .px-heading ...).
 *
 * Element rules apply inside the flwpx page only (#wrap.flwpx), so the
 * administration bar keeps its look. The scope is wrapped in :where(),
 * which adds no specificity, and the element part in :is(), which keeps its
 * own: each rule weighs what it did on the D7 site, and still wins over
 * core's base.css (loaded earlier) as venture's did over D7's.
 */

/* ===========================================================
   1. Venture theme (and D7 core)
   =========================================================== */

/* D7 had no global border-box (core's base.css does); tables keep the
   browser's own border-box. */
:where(.flwpx), :where(.flwpx) *, :where(.flwpx) *::before, :where(.flwpx) *::after { box-sizing: content-box; }
:where(.flwpx) table { box-sizing: border-box; }

/* Reset (venture "Reset"): note that <b> loses its bold, as on the D7 site. */
:where(.flwpx) :is(div, span, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, address, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video, picture) { margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit; vertical-align: baseline; }
:where(.flwpx) :is(article, aside, details, figcaption, figure, footer, header, hgroup, menu, nav, section) { display: block; }
:where(.flwpx) img { max-width: 100%; height: auto; }

/* Body & Main */
body.theme-flwpx-theme { background: #ffffff; color: #777; font: 14px/1.6 'Open Sans', "Helvetica", Arial; -webkit-font-smoothing: antialiased; margin: 0; }
:where(.flwpx) a { color: #54d5a2; text-decoration: none; }
.flwpx #main { padding: 40px 0; }
.flwpx .container { margin: 0 auto; width: 980px; box-sizing: border-box; }
.flwpx .clr:after { clear: both; content: "."; display: block; height: 0; line-height: 0; visibility: hidden; }
.flwpx .clear { clear: both; }

/* Lists */
:where(.flwpx) :is(ul, ol) { margin: 0 0 1em 1.5em; }
:where(.flwpx) ul { list-style: disc; }
:where(.flwpx) ol { list-style-type: decimal; }

/* Tables (venture; core's base.css aligns cells left and to the top, D7
   did not) */
:where(.flwpx) table { margin: 0 0 1.5em; width: 100%; border: 1px solid #ffffff; border-right: none; background: #fff; border-collapse: collapse; border-spacing: 0; }
:where(.flwpx) th { font-weight: bold; padding: 10px 10px; background: #555; color: #fff; text-align: inherit; }
:where(.flwpx) tr { padding: 5px 5px; }
:where(.flwpx) td { padding: 5px 10px; border-top: 1px solid #ffffff; border-right: 1px solid #ffffff; text-align: inherit; }

/* Typography */
:where(.flwpx) :is(h1, h2, h3, h4, h5, h6) { font-weight: 600; color: #444; line-height: 1.4em; font-family: 'Helvetica Neue', Helvetica, Arial; }
:where(.flwpx) h1 { font-size: 1.714em; margin: 0 0 20px; }
:where(.flwpx) h2 { font-size: 1.286em; }
:where(.flwpx) h3 { font-size: 1.286em; }
:where(.flwpx) h4 { font-size: 1em; }
:where(.flwpx) p { margin: 0 0 20px; }
:where(.flwpx) em { font-style: italic; }
:where(.flwpx) strong { font-weight: 600; color: #000; }
:where(.flwpx) small { font-size: 80%; }
.flwpx h1.page-title { margin: 5px 0 10px; font-size: 2em; }

/* Core's site layout styles .site-header, .site-main and .site-footer
   (venture's class names too): back to venture's plain blocks. */
.flwpx .site-header, .flwpx .site-footer { display: block; gap: 0; border: 0; }
.flwpx .site-footer { margin-top: 0; }
.flwpx .site-main { flex: none; padding-bottom: 0; }

/* Header */
.flwpx #header-wrap { background: #f6f6f6; border-bottom: 1px solid #e4e4e4; box-shadow: 0 0 3px rgba(0, 0, 0, 0.1); }
.flwpx #header { text-align: left; position: relative; padding: 30px 0; }
.flwpx #logo img { display: block; max-width: 100%; }

/* Main menu (venture's superfish menu, without the drop-downs: the flwpx
   menu has one level). */
.flwpx #main-menu > ul, .flwpx #main-menu > ul * { margin: 0; padding: 0; list-style: none; }
.flwpx #main-menu > ul { float: left; }
.flwpx #main-menu > ul > li { float: left; position: relative; white-space: nowrap; }
.flwpx #main-menu > ul a { display: block; position: relative; }
.flwpx #site-navigation-wrap { position: absolute; right: 0; top: 50%; height: 40px; margin-top: -20px; }
.flwpx #site-navigation #main-menu > ul li { display: block; float: left; height: 40px; line-height: 40px; }
.flwpx #site-navigation #main-menu > ul > li { margin-left: 25px; }
.flwpx #site-navigation #main-menu > ul > li:first-child { margin-left: 0; }
.flwpx #site-navigation #main-menu > ul a { background: #f6f6f6; color: rgb(0, 0, 0); font-weight: 500; text-decoration: none; text-align: left; cursor: pointer; }
.flwpx #site-navigation #main-menu > ul > li > a:hover,
.flwpx #site-navigation #main-menu > ul > li.is-active > a { color: #888; }

/* The breadcrumb (Home » page) */
.flwpx #breadcrumbs { font-size: 11px; margin: 5px; }
.flwpx .breadcrumb { padding-bottom: 0.5em; }

/* Images in the pages (venture: .page-node #content-wrap img) */
.flwpx #content-wrap img { border: 1px solid #ffffff; padding: 6px; height: auto; max-width: 97.4%; margin: 0.5em 1em 0.5em 0; }

/* Core's field wrapper has a bottom margin; D7's had none. */
.flwpx .field { margin: 0; }

/* The footer: the Footer menu's links where the D7 block's table put them
   (the start of the middle third), with a dark blue rule between them; then
   venture's copyright bar. */
.flwpx #footer-wrap { background: #ffffff; padding: 50px 0 0; }
.flwpx .flwpx-footer-menu { padding: 6px 0 5.6px; margin: 0 0 50px; }
.flwpx .flwpx-footer-menu ul { list-style: none; margin: 0 0 0 calc((100% - 1px) / 3 + 11px); width: calc((100% - 1px) / 3 - 21px); padding: 0; text-align: center; }
.flwpx .flwpx-footer-menu ul::after { content: ""; display: block; clear: both; }
.flwpx .flwpx-footer-menu li { float: left; margin: 0; padding: 0 10px; border-right: 2px solid #001380; }
.flwpx .flwpx-footer-menu li:last-child { border-right: 0; }
.flwpx .flwpx-footer-menu a { color: #000000; font-size: 8pt; }
.flwpx .flwpx-footer-menu a:hover { color: #54d5a2; }
.flwpx #copyright-wrap { background: #f6f6f6; padding: 20px 0; color: #888; text-align: center; }
.flwpx #copyright-wrap a { color: #888; }

/* The Menu button and panel (narrow windows, below). */
.flwpx #navigation-toggle { display: none; }
.flwpx-panel { display: none; }

/* ===========================================================
   2. The pages' own rules
   =========================================================== */

/* The D7 pages' <style> block */
:where(.flwpx) .txt { font-size: 120%; font-family: "verdana"; }

/* The coloured product names: <b class="px-name"><span>f</span><span>l</span>
   <span>w</span><span>p</span><span>x</span></b> (flwpx, txtpx, lexpx ...). */
.px-name > span:nth-child(1) { color: #3333cc; }
.px-name > span:nth-child(2) { color: #7030a0; }
.px-name > span:nth-child(3) { color: #008000; }
.px-name > span:nth-child(4) { color: #c00000; }
.px-name > span:nth-child(5) { color: #ffc000; }

/* The home page: centred, the star, the large "flwpx". */
.flwpx-intro { text-align: center; }
:where(.flwpx) p.px-title { font-size: 550%; margin: 20px 0 20px; }

/* Headings and sizes the D7 pages wrote as style attributes */
.px-heading { font-size: 150%; font-weight: 550; }
.px-subheading { font-size: 120%; font-weight: 550; }
.px-title-130 { font-size: 130%; }
.px-title-140 { font-size: 140%; }
.px-title-170 { font-size: 170%; }
.px-small { font-size: small; }
.px-list > li { font-size: 140%; }
/* (D7: an empty paragraph after the list) */
:where(.flwpx) ul.px-list { margin-bottom: 20px; }

/* ===========================================================
   Other pages (site layout: log in, 404, pages set to Standard)
   =========================================================== */
.flwpx-site-page .page-content { font-size: 1rem; line-height: 1.6; }

/* ===========================================================
   Narrow windows (venture css/responsive.css)
   =========================================================== */
@media only screen and (max-width: 959px) {
  /* Venture hid the menu and showed a Menu button that opened the menu in
     a dark panel at the left. */
  .flwpx #site-navigation #main-menu > ul { display: none; }
  .flwpx #navigation-toggle { display: block; height: 55px; line-height: 55px; margin: 0; float: left; cursor: pointer; color: #888; padding: 0 0 0 35px; font: inherit; font-weight: 600; font-size: 1.1em; background: none; border: 0; }
  .flwpx #navigation-toggle:hover, .flwpx #navigation-toggle[aria-expanded="true"] { color: #000; }
  .flwpx-bars { display: inline-block; width: 14px; height: 2px; margin: 0 10px 4px 0; vertical-align: middle; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
  .flwpx-panel { display: block; position: fixed; top: 0; left: -320px; height: 100%; width: 320px; z-index: 999999; overflow-y: auto; box-sizing: border-box; padding: 70px 30px 30px; background: #222; color: #fff; font-family: 'Helvetica Neue', Helvetica, Arial; font-size: 16px; line-height: 1.6; transition: left 0.2s ease, visibility 0s linear 0.2s; visibility: hidden; }
  .flwpx-panel.is-open { left: 0; visibility: visible; transition: left 0.2s ease; }
  .flwpx-panel ul { list-style: none; margin: 0; padding: 0; }
  .flwpx-panel li { margin: 0; padding: 0; }
  .flwpx-panel a { display: block; border-bottom: 1px solid #333; padding: 7px 0; font-weight: 400; color: #707070; text-decoration: none; }
  .flwpx-panel a:hover, .flwpx-panel a:focus, .flwpx-panel li.is-active > a { color: #fff; }
  .flwpx-panel-close { position: absolute; top: 22px; left: 26px; background: none; border: 0; padding: 0 4px; color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
}
@media only screen and (min-width: 768px) and (max-width: 959px) {
  .flwpx .container { max-width: 85%; }
}
@media only screen and (max-width: 767px) {
  .flwpx .container { max-width: 480px; width: 90%; }
}
@media only screen and (min-width: 480px) and (max-width: 767px) {
  .flwpx-panel { width: 480px; left: -480px; }
}
@media print {
  .flwpx #navigation-toggle, .flwpx-panel { display: none !important; }
}
