/* ==========================================================================
   Piston Power under Divi: get Divi out of the way.

   piston-power.css is the static site's stylesheet, unchanged. This file only
   neutralises the Divi defaults that would otherwise leak into it: Divi's own
   header and footer, white page backgrounds, section/row padding, Open Sans
   at 14px, #333 headings, paragraph padding and list bullets.

   Everything is scoped to body.pp-body, which the child theme adds.
   ========================================================================== */

/* The theme renders the header and footer (inc/chrome.php). */
body.pp-chrome #main-header,
body.pp-chrome #top-header,
body.pp-chrome #main-footer,
body.pp-chrome .et-l--header,
body.pp-chrome .et-l--footer{display:none !important}

/* Divi writes an inline padding-top for its own fixed header. Ours is fixed
   too, and every page's first section already makes room for it. */
body.pp-chrome #page-container{padding-top:0 !important;margin-top:0 !important}

/* Transparent page shell, so the background field shows through. Divi sets
   overflow on #page-container, which would break every position:sticky in the
   design (catalogue filters, form panel, About stats). */
body.pp-body #page-container,
body.pp-body #et-main-area,
body.pp-body #main-content,
body.pp-body #main-content .container,
body.pp-body .et_builder_inner_content,
body.pp-body .et-l--post{background:transparent;overflow:visible}
body.pp-body #main-content .container:before{display:none}
body.pp-body .et_pb_section{background-color:transparent;padding:0;overflow:visible}
body.pp-body .et_pb_row{width:100%;max-width:none;padding:0;overflow:visible}
/* Divi floats every column and relies on the row's clearfix to contain it.
   Each page here is one full-width column per row, so unfloat it: with the
   float in place and the clearfix gone, every row collapsed to zero height
   and the footer rode up to the top of the page (seen on real Divi 5). */
body.pp-body .et_pb_column{float:none;margin:0 !important;width:100%;overflow:visible}
body.pp-body .et_pb_code,
body.pp-body .et_pb_code_inner{margin:0;padding:0;overflow:visible}
body.pp-body .entry-content p:empty{display:none}

/* Divi's base type, put back to the design's. */
body.pp-body{font-family:var(--font);font-size:16px;line-height:1.6;color:var(--ink);font-weight:400}
body.pp-body.page-light{color:#0B1638}
body.pp-body h1,body.pp-body h2,body.pp-body h3,
body.pp-body h4,body.pp-body h5,body.pp-body h6{color:inherit;padding-bottom:0;font-family:var(--font)}
body.pp-body p{padding-bottom:0}
body.pp-body a{color:inherit}
body.pp-body strong{font-weight:600}

/* Divi bullets every ul/ol in builder content at higher specificity than a
   single class, which gave double markers on the styled lists. The legal
   pages are the only prose lists and get theirs back below. */
body.pp-body .et_pb_code_inner ul,
body.pp-body .et_pb_code_inner ol,
body.pp-body footer ul{list-style:none;padding:0;line-height:inherit}
body.pp-body .et_pb_code_inner li{line-height:inherit}
body.pp-body .legal-article ul{list-style:disc;padding:0}
body.pp-body .legal-article ol{list-style:decimal;padding:0}

/* Divi's form field defaults (white boxes, grey text, 2px padding). */
body.pp-body .field input,
body.pp-body .field textarea,
body.pp-body .field select{font-size:.94rem;line-height:1.4}
body.pp-body .search-box input{padding:0;border:0;background:none;color:var(--ink)}

/* Honeypot: real people never see it. */
.pp-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* The WordPress admin bar sits above the fixed nav when logged in. */
body.admin-bar .top-nav{top:60px}
@media (min-width:783px){body.admin-bar .top-nav{top:46px}}
