
:root {
    --blue-darkest: #362C45;
    --blue-dark: #350080;
    --blue-mid-dark: #612EEA;
    --blue: #4763FF;
    --blue-mid-light: #6BB0F5;
    --blue-light: #B8E0F5;
    --blue-lightest: #D0F3FB;
    --red-darkest: #6E1D0C;
    --red-dark: #A43919;
    --red-mid-dark: #EE4A00;
    --red: #FF6F2E;
    --red-mid-light: #FF944C;
    --red-light: #F6DCC0;
    --red-lightest: #F9EDDC;
    --yellow-darkest: #473D0B;
    --yellow-dark: #6D5F12;
    --yellow-mid-dark: #887616;
    --yellow: #CBB022;
    --yellow-mid-light: #E6DDB3;
    --yellow-light: #FFEC85;
    --yellow-lightest: #FFF5BF;
    --grey-darkest: #353633;
    --grey-dark: #696B66;
    --grey-mid-dark: #83897B;
    --grey: #AFB3AA;
    --grey-mid-light: #CFD1CC;
    --grey-light: #E6E7E4; 
    --grey-lightest: #EFF0EE;

    --caption: 1.4rem;
    --quarter-space: 0.625rem;
    --half-space: 1.25rem;
    --space: 2.5rem;
    --double-space: 5rem;

    --rounded: 0.3125rem;
    --animate: all 0.1s ease-in-out;
    --animate-slow: all 0.4s ease-in-out;
}

@font-face {
  font-family: "Public Sans";
  src: url('fonts/PublicSans-Regular.woff2') format('woff2');
  font-display: swap;
}

@font-face {
    font-family: "Public Sans";
    src: url("fonts/PublicSans-Bold.woff2");
    font-weight: bold;
    font-display: swap;
}
@font-face {
    font-family: "Public Sans";
    src: url("fonts/PublicSans-Italic.woff2");
    font-style: italic;
    font-display: swap;
}

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html, .root {
    font-size: 62.5%;
    font-family: 'Public Sans',-apple-system,'Roboto',system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    color: var(--grey-darkest);
    background-color: var(--grey-lightest);
}
body, .article {
    width: 100%;
    box-sizing: border-box;
    font-size: 1.8rem;
    line-height: 2.5rem;
    margin: auto;
}
button, input, optgroup, select, textarea {
    font-family: 'Public Sans',-apple-system,'Roboto',system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
}

section > h1, section > h2,
div h1, div h2 {
    color: var(--grey-darkest);
}

section > h3, section > h3,
div h3, div h3,
section > h4, section > h4,
div h4, div h4 {
    color: var(--grey-darkest);
}

h1, .h1 {
    font-size: 3.6rem;
    margin: var(--space) 0 0 0;
    letter-spacing: -0.13rem;
}
h2, .h2 {
    font-size: 2.8rem;
    margin-top: var(--space);
    margin-bottom: 0rem;
    letter-spacing: -0.08rem;
}
h3, .h3 {
    font-size: 2.4rem;
    margin-top: var(--space);
    margin-bottom: 0rem;
    letter-spacing: -0.05rem;
}
h4, .h4 {
    font-size: 1.8rem;
    margin-top: var(--space);
    margin-bottom: 0rem;
}
h5, .h5 {
    font-size: 1.8rem;
    margin-top: var(--space);
    margin-bottom: 0rem;
}
p, ul, ol, pre, table, blockquote {
    font-size: 1.8rem; /* 18px */
  margin: var(--space) 0 0 0;
}
ul ul, ol ol, ul ol, ol ul {
    margin-top: 0;
    margin-bottom: 0;
}

ul {
    padding-left: var(--space);
}

ul ul, ol {
    padding-left: var(--space);
}

dd, dt {
    line-height: var(--space);
    margin-top: var(--space);
}

dt {
    font-weight: bold;
}

dd {
    margin-bottom: var(--space);
}

blockquote {
    background-color: white;
    padding: var(--space);
    font-size: 2rem;
}

main blockquote a {
    color: var(--blue-dark);
    border-bottom: 1px solid var(--blue-mid-light);
}

main blockquote a:hover {
    color: var(--blue-darkest);
    background-color: var(--grey-light);
    border-bottom: 1px solid var(--blue-dark);
}

blockquote > footer {
    color: #000;
    padding: 0;
    font-style: normal;
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    background: none;
    border: none;
}

blockquote > footer a {
    color: var(--blue-mid-dark);
}

blockquote > footer a:hover {
    color: var(--blue-darkest);
    background: none;
}

blockquote > footer:before {
    content: "\2014 \00A0";
}

legend {
    padding: 0.5rem 0;
    border: 0;
}

[type="checkbox"], [type="radio"] {
    box-sizing: border-box;
    border: 1px solid var(--blue);
    width: var(--space);
    height: var(--space);
    vertical-align: text-top;
}

label {
    margin: 0;
}

label.tail {
    margin: var(--quarter-space) 0;
    display: block;
}

form {
    margin-top: var(--space);
}

form > div {
    margin-top: var(--space);
}

form .row div.row {
    flex: 1;
    max-width: 20rem;
    min-width: var(--space);
}

form h3 {
    margin-bottom: 1rem;
}

fieldset label {
    margin-top: 0;
    margin-right: var(--space);
}

input[type="text"], input[type="email"], input[type="password"], input[type="url"], textarea {
    width: 100%;
    max-width: 40rem;
    box-sizing: border-box;
    background-color: var(--grey-lightest);
    color: var(--grey-dark);
    border-radius: var(--rounded);
    border: 2px solid var(--blue);
    padding: var(--half-space);
    display: flex;
    margin-top: var(--quarter-space);
}

input[type="text"]:disabled {
    color: var(--yellow-lightest);
    -webkit-text-fill-color: var(--yellow-lightest);
    -webkit-opacity:1 ;
    background: var(--grey-dark);
    border: 2px solid var(--grey-darkest);
    font-weight: bold;
    font-family: Consolas, "Lucida Console", Monaco, monospace;
}

input[type="text"]:disabled:hover {
    border: 2px solid var(--grey-darkest);
}

input[type="text"].tiny {
    width: 10rem;
    display: inline-flex;
}

select.tiny {
    margin-top: var(--quarter-space);
    width: 10rem;
}

select {
    color: var(--grey-darkest);
    width: 100%;
    max-width: 40rem;
    display: flex;
    box-sizing: border-box;
    border: 2px solid var(--blue-mid-light);
    border-radius: var(--rounded);
    font-size: 18px;
    padding: 1rem;
    min-width: 10rem;
    display: flex;
    line-height: var(--space);
    margin-top: 0.5ex;
    margin-bottom: 1ex;
    background-color: var(--grey-lightest);
    background-image: url(../img/i-arrows.svg);
    background-size: 10px auto;
    background-repeat: no-repeat;
    background-position: right 1rem center;
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
}

select::-ms-expand {
    display: none;
}

select option {
    font-weight:normal;
}

input:focus, textarea:focus, select:focus {
    border: 2px solid var(--blue-dark);
    background-color: var(--grey-light);
    color: var(--grey-dark);
    box-shadow: 0 0 1px 2px var(--blue-mid-dark);
    box-shadow: 0 0 0 2px -moz-mac-focusring;
    color: #222; 
    outline: none;
}

input:hover, textarea:hover, select:hover {

}

input[type="radio"] {
    display: inline-block;
}

main button img {
    height: 1em;
}

button[type="button"], button[type="submit"], main button {
    background: linear-gradient(180deg, var(--yellow-light) 0%, var(--yellow-mid-light) 100%);
}

button[type="button"], button[type="submit"], button[type="reset"], main button {
    font-family: 'Public Sans',-apple-system,'Roboto',system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif;
    display: inline-flex;
    margin-top: var(--space);
    padding: var(--half-space);
    box-shadow: -2px 2px 4px 0px var(--grey-mid-dark);
    color: var(--yellow-darkest);
    text-shadow: 1px 1px 2px var(--grey-mid-light);
    text-align: center;
    border-radius: var(--rounded);
    border: 1px solid var(--yellow-mid-light);
    transition: var(--animate);
}

button[type="reset"] {
    color: var(--yellow-darkest);
    border: 1px solid var(--grey-mid-light);
    background: linear-gradient(180deg, var(--grey-mid-light) 0%, var(--grey) 100%);
    margin-right: 0.5rem;
}

button[type="submit"]:disabled {
    color: var(--grey-darkest);
    border: 1px solid var(--grey-mid-light);
    background: linear-gradient(180deg, var(--grey-mid-light) 0%, var(--grey) 100%);
    margin-right: 0.5rem;
    box-shadow: none;
}

button[type=button]:hover, button[type=submit]:hover, button[type=reset]:hover, main button:hover {
    color: var(--blue-dark);
}

button[type=button]:focus, button[type=submit]:focus, button[type=reset]:focus, main button:focus {
    border: 1px solid var(--blue);
}

button[type=button]:active, button[type=submit]:active, button[type=reset]:active, main button:active {
    box-shadow: none;
    border: 1px solid var(--grey-mid-light);
    scale: 0.98;
}

.rounded {
    border-radius: var(--rounded);
}

img.rounded {
    object-fit: cover;
}

.tippy-content {
    font-size: 2rem;
}

a.tooltip,
.card a.tooltip {
    color: var(--grey-darkest);
    border-bottom: 1px dotted var(--grey-darkest);
    padding: 0 var(--half-space);
}

a.tooltip:hover {
    background: none;
    cursor: default;
}


.alert-info {
    color: var(--grey-darkest);
    background-color: #fff;
    border: 2px solid var(--yellow-mid-light);
}

.alert-danger {
    color: var(--red-dark);
    background-color: var(--red-light);
    border: 1px solid var(--red-mid-light);
}

.alert-success {
    color: var(--blue-dark);
    background-color: var(--blue-light);
    border: 1px solid var(--blue-mid-light);
}

.alert {
    position: fixed;
    bottom: var(--space);
    right: var(--space);
    z-index: 20;
    width: 50vw;
    min-width: 15rem;
    max-width: 25rem;
    padding: var(--space);
    margin-bottom: 0rem;
    border-radius: var(--rounded);
    box-shadow: -6px 6px 6px 2px var(--grey-darkest);
    animation: glow 1s;
}

@keyframes glow {
  from {
    box-shadow: -14px 14px 30px 14px var(--yellow);
  }
  to {
    box-shadow: -6px 6px 6px 2px var(--grey-darkest);
  }
}

/* Let's make sure all's aligned */
hr, .hr {
  border: 1px solid;
  margin: -1px 0;
}
/*
a, b, i, strong, em, small, code {
  line-height: 0;
}
*/
sub, sup {
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}
sup {
  top: -0.5em;
}
sub {
  bottom: -0.25em;
}

/*
 * Remove text-shadow in selection highlight:
 * https://twitter.com/miketaylr/status/12228805301
 *
 * Vendor-prefixed and regular ::selection selectors cannot be combined:
 * https://stackoverflow.com/a/16982510/7133471
 *
 * Customize the background color to match your design.
 */

::-moz-selection {
    background: #b3d4fc;
    text-shadow: none;
}

::selection {
    background: #b3d4fc;
    text-shadow: none;
}

/*
 * A better looking default horizontal rule
 */

hr {
    display: block;
    height: 1px;
    border: 0;
    border-top: 1px solid var(--grey);
    margin: var(--space) 0 var(--space) 0;
    padding: 0;
}

/*
 * Remove the gap between audio, canvas, iframes,
 * images, videos and the bottom of their containers:
 * https://github.com/h5bp/html5-boilerplate/issues/440
 */

audio,
canvas,
iframe,
img,
svg,
video {
    vertical-align: middle;
}

canvas {
    margin-top: var(--space);
}

/*
 * Remove default fieldset styles.
 */

fieldset {
    border: 1px solid var(--grey);
    margin: 0rem;
    margin-top: var(--space);
    padding: 0 var(--half-space) var(--half-space) var(--half-space);
    border-radius: var(--rounded);
}

/*
 * Allow only vertical resizing of textareas.
 */

textarea {
    resize: vertical;
}

/* ==========================================================================
   Browser Upgrade Prompt
   ========================================================================== */

.browserupgrade {
    margin: var(--space) 0;
    background: #ccc;
    color: #000;
    padding: var(--space) 0;
}

/* ==========================================================================
   Author's custom styles
   ========================================================================== */

body, header {
    color: black;
    background: var(--grey-lightest);
    scroll-behavior: smooth;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

section.container {
    background-color: var(--grey-lightest);
    display: grid;
    max-width: 160rem;
    margin: 0 auto;
    padding: 0;
    grid-template-areas: 
        "header main main main"
        "aside main main main"
        "aside footer footer footer";
}

section.side-wrapper {
    position: -webkit-sticky;
    position: sticky;
    top: 0px;
    width: 25rem;
    margin: 0 auto;
    height: 100%;
    overflow-y: auto;
}

header {
    grid-area: header;
    z-index: 10;
    width: 25rem;
    background-color: var(--grey-lightest);
    padding: 0px var(--space);
}

header section.controls {
    display: flex;
    flex-direction: column;
}

header section.controls a {
    text-align: center;
}

.logo {
    display: block;
}

.logo-mobile,
.menu {
    display: none;
}

img.border {
    padding: 0;
    margin-top: 1rem;
    border: 1px solid var(--grey);
}

header section.controls a img#ssf-logo {
    margin: var(--space) auto var(--half-space) auto;
}

header section.controls a:hover img#ssf-logo {
    scale: 1.04;
    transition: var(--animate);
}

header section.controls {
    /* overflow: hidden; */
    white-space: nowrap;
}

header section.controls .avatar {
    background-color: var(--grey-dark);
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 20rem;
}

header section.controls .avatar img {
    border-radius: var(--rounded);
    display: inline-flex;
}

header section.controls .avatar span {
    color: white;
}

header section.authentication {
    display: flex;
    color: var(--grey-lightest);
    box-shadow: -2px 2px 4px 0px var(--grey-dark);
    border-radius: var(--rounded);
    margin-bottom: var(--half-space);
    background-color: var(--blue);
}

header section.authentication a {
    flex-grow: 1;
    padding: var(--half-space) 0;
    background: linear-gradient(180deg, var(--grey-mid-light) 0%, var(--grey) 100%);
    color: var(--yellow-darkest);
    text-shadow: 1px 1px 2px var(--grey-lightest);
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    text-decoration: none;
    text-align: center;
    border-top-right-radius: var(--rounded);
    border-bottom-right-radius: var(--rounded);
    transition: var(--animate);
}

header section.authentication a:hover {
    color: var(--blue-dark);
    text-shadow: 2px 2px 4px var(--blue-lightest);
}

header section.authentication a:active {
    color: var(--grey-dark);
    scale: 0.98;
}

header section.authentication a.primary {
    background: linear-gradient(180deg, var(--blue-lightest) 0%, var(--blue-light) 100%);
    border-top-right-radius: 0px;
    border-bottom-right-radius: 0px;
    border-top-left-radius: var(--rounded);
    border-bottom-left-radius: var(--rounded);
}

header nav.nav {
    color: var(--grey-darkest);
    margin-bottom: var(--space);
    border-right: 1px solid var(--grey-mid-light);
}

header nav.nav section {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: var(--half-space) 0px;
}

header nav.nav > ul {
    list-style: none;
    margin: var(--half-space) 0;
    padding-left: 0;
    border-left: 2px solid white;
}

header nav.nav ul ul {
    list-style: none;
    margin-left: var(--space);
    padding-left: 0;
}

header nav.nav li {
    display: block;
    border-left: 1px solid var(--grey-light);
}

header nav.nav a {
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    font-weight: bold;
    line-height: var(--space);
    color: var(--blue-mid-dark);
    background-color: var(--grey-lightest);
    display: block;
    text-decoration: none;
    padding: var(--half-space) 0 var(--half-space) var(--space);
    border-right: var(--half-space) solid var(--grey-light);
}

header nav.nav a:hover {
    color: var(--blue-dark);
    background-color: var(--grey-mid-light);
    border-right: var(--half-space) solid var(--grey);
}

header nav.nav a:active {
    color: #000;
    background-color: var(--grey);
    border-right: 1rem solid var(--grey-mid-dark);
}

header nav.nav a img {
    height: 1rem;
}

header span.label {
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    padding-right: var(--half-space);
}

header nav.nav section button {
    width: 1.3rem;
    height: 1.3rem;
    padding: 1.3rem;
    border-radius: 50%;
    background: linear-gradient(225deg, var(--grey-mid-dark) 0%, var(--grey) 100%);
    border: 1px solid var(--grey);
    box-shadow: -6px 6px 6px 2px var(--grey-darkest);
    transition: var(--animate);
}

header nav.nav section button.selected {
    box-shadow: -2px 2px 4px 1px var(--grey-darkest);
}

header nav.nav section span.light {
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background: var(--grey-dark);
    border: 1px solid var(--grey-mid-light);
    transition: var(--animate);
    margin-left: 1rem;
}

header nav.nav section span.light.on {
    background: radial-gradient(circle, var(--red-light) 0%, var(--red-mid-dark) 85%);
    border: 1px solid var(--red-mid-dark);
    box-shadow: 0px 0px 8px 4px var(--red);
}

aside {
    grid-area: aside;
    background: var(--grey-lightest);
    margin-bottom: var(--space);
}

aside nav {
    width: 20rem;
    min-width: 20rem;
    margin: 0px var(--space);
    background-color: var(--grey-light);
    border-radius: var(--rounded);
    box-shadow: inset -1px 1px 6px var(--grey-mid-dark);
}

aside nav ul {
    margin: 0;
    padding: var(--half-space) 0px;
}

.mobile-nav, .slider1, .slider2, .slider3, .slider4, .slider5, .hide {
    display: none;
}

.slider1.on, .slider2.on, .slider3.on, .slider4.on {
    display: block;
    background-color: var(--grey-light);
    box-shadow: inset -1px 1px 6px var(--grey-mid-dark);
}

.slider1.on a, .slider2.on a, .slider3.on a, .slider4.on a {
    color: var(--blue-mid-dark);
}

.slider1.on a:hover, .slider2.on a:hover, .slider3.on a:hover, .slider4.on a:hover, .slider5.on a:hover {
    color: var(--blue-darkest);
}

aside nav li {
    list-style-type: none;
}

aside nav li a {
    display: block;
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    line-height: var(--space);
    padding: var(--half-space) 0 var(--half-space) var(--space);
    color: var(--blue-mid-dark);
    text-decoration: none;
    text-align: left;
    border-right: var(--half-space) solid transparent;
}

aside nav li a img {
    height: var(--half-space);
}

aside nav li a:hover {
    color: var(--blue-dark);
    border-right: var(--half-space) solid var(--grey-mid-dark);
}

aside nav li a:active {
    background-color: var(--grey-mid-light);
}

main {
    grid-area: main;
    border-left: 2px solid var(--grey-mid-light);
    background: var(--grey-lightest);
    min-width: calc(100% - 20rem);
    padding: 0px var(--space) var(--double-space) var(--space);
}


main section.intro::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: url(../img/ssf-header.png);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-size: auto 100%;
    background-repeat: no-repeat;
    background-position: 40% top;
    background-color: var(--grey-mid-light);
    box-shadow: inset -1px 1px 8px 0px var(--grey-mid-dark);
    z-index: 1;
}

/*
main section.intro::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: url(../img/nebula.jpg);
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    background-color: var(--grey-mid-light);
    background-size: auto 100%;
    background-repeat: repeat-x;
    background-position: 0px 0px;
    z-index: 0;
    animation: animated-background 20s linear infinite alternate;
}

@keyframes animated-background {
	from { background-position: 0 0; }
	to { background-position: 100% 0; }
}
*/


main section.basics ul,
main section.main-body ul,
main section.main-diet ul,
main section.main-exercise ul,
main section.main-more ul
 {
    border: 2px solid var(--grey-lightest);
    border-radius: var(--rounded);
background-color: #ffffff;
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23e6e6e6' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    margin-bottom: var(--space);
}

main section.basics li a,
main section.main-body li a, 
main section.main-diet li a,
main section.main-exercise li a,
main section.main-more li a
{
    border: 1px solid var(--grey-lightest);
    border-radius: var(--rounded);
    margin-right: var(--space);
    background: white;
}

main section.main-body {

}

main section.main-diet {

}

main section.main-exercise {

}

main section.intro,
main section.main-nav {
    position: relative;
    box-shadow: inset -1px 1px 8px 0px var(--grey-mid-dark);
    min-height: 30rem;
    border: none !important;
    margin-left: calc(-1*var(--space));
    margin-right: calc(-1*var(--space));
    padding: var(--space);
}

/*
@keyframes animated-intro {
    from {
        background-position: 0 0;
      }
      to {
        background-position: 100% 0;
      }
  }
*/

main section.main-nav {
    box-shadow: inset -1px 1px 8px 0px black;
    margin-top: var(--double-space);
    margin-bottom: var(--space);
    background-color: var(--grey-darkest);
    padding: var(--space);
}

main section.main-nav h1 {
    background-color: var(--grey-mid-light);
    margin-top: 0;
    margin-bottom: var(--half-space);
    padding-top: var(--space);
    padding-bottom: var(--space);
    padding-left: var(--space);
    border-radius: var(--rounded);
}

main section.main-nav p,
main .main-header p:first-child {
    margin-top: var(--space);
    max-width: 100%;
}

main section.main-nav blockquote {
    border-left: var(--half-space) solid var(--red-dark);
    margin: var(--space) var(--space) 0 0;
    display: inline;
    background: none;
    padding: var(--space);
    color: var(--red-darkest);
    text-shadow: 2px 2px 2px var(--red-lightest);
    position: absolute;
    top: calc(2*var(--space));
    min-width: 20rem;
    max-width: 30rem;
    font-size: inherit;
}

main section.main-nav blockquote footer {
    color: var(--red-darkest);
    text-shadow: 2px 2px 2px var(--red-light);
}

main section.intro > *,
main section.main-nav >* {

}

main section.intro section > p {
    display: inline;
    background: white;
    margin: 0;
    margin-right: var(--space);
    padding: var(--half-space);
    color: black;
    position: absolute;
    bottom: var(--space);
}

main div.intro img {
    max-height: 7.5rem;
    margin: var(--space) 0 var(--half-space) 0;
}

main section.intro p,
main section.intro h4 {
    margin: 0;
    z-index: 2;
}

main section > img {
    padding-top: var(--space);
    max-height: 50rem;
    max-width: 50rem;
}

main section.main-nav section > img {
    width: 100%;
    padding-top: 0;
    min-height: 30rem;
    max-height: 30rem;
}

main section > h1 img,
main section > a img {
    height: 1em;
    max-width: 1em;
}

main section.main-nav li:first-child a {
    font-weight: bold;
}

main section.main-nav li img,
.main-nav li a img {
    height: var(--space);
}

main section.main-nav hr {
    border-top: 1px solid var(--grey-dark);
}

main section.main-nav a:hover {
    color: var(--blue-dark);
    background: var(--grey-mid-light);
    border-radius: var(--rounded);
    border-bottom: 1px solid var(--red-light);
}

main section.main-nav a:active {
    background-color: var(--grey-light);
}

main section.main-header {
    margin-top: 4rem;
    margin-bottom: 2rem;
    padding: 0 0 2rem 0;
}

main section.main-header h1 {
    padding-bottom: 1rem;
}
main section.main-header > div.row {
    margin-top: 1rem;
}

main section.main-header a {
    color: var(--blue);
    border-bottom: 1px solid var(--grey-light);
}

main section.main-header a:hover {
    border-radius: var(--rounded);
    color: var(--blue-darkest);
    background: var(--grey-mid-light);
    border-bottom: 2px solid var(--red);
}

main section.main-header a:active {
    background-color: var(--grey);
}

main section.main-header a.badge,
main a.button {
    background-color: var(--grey-darkest);
    box-shadow:  -5px 5px 10px #d9d9d9, 
                 5px -5px 10px #fdfdfd;
}

main section.main-nav a.badge {
    background-color: var(--grey-dark);
    box-shadow:  5px 5px 9px #2d2e2b, 
                -5px -5px 9px #3d3e3b;
}

main section.main-header a.badge,
main section.main-nav a.badge {
    color: var(--blue-light);
    display: inline-block;
    font-weight: bold;
    border: none;
    border-bottom: 2px solid var(--red);
    width: 100%;
}

main section.main-header a.badge:hover,
main section.main-nav a.badge:hover {
    color: var(--blue-dark);
    background-color: var(--grey-light);
    border-bottom: 2px solid var(--red-mid-light);
}

main section.main-header a.badge:active,
main section.main-nav a.badge:active {
    color: var(--grey-dark);
    box-shadow: none;
}

main section.main-header ul
 {
    border: 2px solid white;
    border-radius: var(--rounded);
background-color: #f0f0f0;
background-image: url("data:image/svg+xml,%3Csvg width='6' height='6' viewBox='0 0 6 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23d9d9d9' fill-opacity='1' fill-rule='evenodd'%3E%3Cpath d='M5 0h1L0 6V5zM6 5v1H5z'/%3E%3C/g%3E%3C/svg%3E");
    margin-bottom: var(--space);
}

main section.main-header li a {
    color: var(--blue-mid-dark);
    border: 2px solid var(--grey-light);
    border-radius: var(--rounded);
    margin-right: var(--space);
    background: var(--grey-lightest);
}

main section.main-header li a:hover {
    color: var(--blue-dark);
}

main section.main-nav ul,
main section.main-header ul {
    margin-top: 0px;
    list-style-type: none;
    padding-left: 0px;
}

main section.main-nav a,
main section.main-header a {
    color: var(--blue);
    display: block;
    padding: var(--half-space);
}

main section.scroll-header * {
    will-change: transform;
    transition: var(--animate);
}

main section.scroll-header {
    position: sticky;
    position: -webkit-sticky;
    margin-top: var(--space);
    background: var(--grey-lightest);
    display: flex;
    align-items: baseline;
    top: 0;
    left: 0;
    border-bottom: 2px solid var(--red-mid-light);
    color: var(--grey-mid-dark);
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    height: var(--double-space);
    padding: ;
}

main section.scroll-header h4 {
    margin: 0;
    max-width: 80rem;
}

main section.scroll-header a {
    color: var(--blue-mid-dark);
    font-weight: bold;
    padding: var(--half-space) var(--quarter-space);
    margin-left: var(--quarter-space);
    margin-right: var(--quarter-space);
}

main section.scroll-header a:first-child {
    margin-left: 0;
}

main section.scroll-header a:last-child {
    background-color: var(--grey-light);
    color: var(--grey-darkest);
}

main section.scroll-header a:hover {
    color: var(--blue-darkest);
    background: var(--grey-mid-light);
    border: none;
}

main section.scroll-header a:active {
    background-color: var(--grey);
}

main section.scroll-header h4 a {
    display: block;
}

.icon,
main section h4 img,
main section.scroll-header a img {
    height: 1em;
}

/* main layout */

main section {
    margin: 0px auto;
    padding: 0;
    max-width: 80rem;
}

main .row {
    display: flex;
    flex-wrap: wrap;
    margin-right: calc(-1 * var(--half-space));
}

    main .expand {
        max-width: none;
        margin: 0px auto;
    }

    main .stacked {
        flex-direction: column;
    }

    main .spaced {
        justify-content: space-between;
    }

    main .spaced a {
        border: 1px solid #fff;
        border-radius: var(--rounded);
        padding: var(--space) var(--half-space);
        white-space: nowrap;
        margin-top: var(--half-space);
        border-bottom: 2px solid var(--grey-mid-light);
    }

    main .spaced a:hover {
        background: var(--grey-mid-light);
        border-bottom: 2px solid var(--red-mid-dark);
    }

    main .spaced a img {
        max-width: var(--double-space);
    }

    main .dashboard {
        margin-top: var(--space);
        padding: var(--half-space);
        background-color: var(--grey-darkest);
        margin-bottom: var(--double-space);
        border-radius: var(--rounded);
        color: var(--grey-lightest);
    }

    main .dashboard section {
        margin-bottom: 0px;
    }

    main .dashboard .row.feature {
        background: var(--grey-dark); 
        margin-top: var(--half-space);
        padding: 0 var(--half-space) var(--half-space) var(--half-space);
        border-radius: var(--rounded);
        margin-right: 0;
    }

    .dashboard h1 {
        color: var(--grey-light);
    }

    main section.dashboard .row > div > img {
        margin-top: 0;
    }

    .dashboard blockquote {
        color: var(--yellow-darkest);
        background: var(--yellow-lightest);
        margin-right: 0;
        font-size: inherit;
        margin-top: var(--half-space);
        border-radius: var(--rounded);
    }

    .dashboard.blockquote {
        padding-bottom: var(--half-space);
        margin-bottom: 0;
    }

    .dashboard h5 {
        color: var(--yellow);
    }

    .dashboard a, .dashboard li a {
        display: inline-block;
        color: var(--blue-light);
        text-decoration: underline;
        border-bottom: none;
    }

    .dashboard a.block {
        display: block;
        text-decoration: none;
        margin-top: var(--half-space);
        padding: var(--half-space);
        border: 1px solid var(--grey-dark);
        border-radius: var(--rounded);
        background-color: var(--grey-darkest);
    }

    .dashboard progress {
        margin-top: var(--half-space);
        border: 2px solid var(--grey);
        height: var(--double-space);
        width: 100%;
    }

    .dashboard a img {
        width: var(--space);
        height: var(--space);
    }

    .dashboard a:hover, 
    .dashboard li a:hover,
    .dashboard a img:hover {
        background: var(--blue-dark);
        color: var(--blue-light);
    }

main .row > * {
    flex: 1;
    min-width: 20rem;
    margin-right: var(--half-space);
}

section > p {
    max-width: 66ch;
}

section > p,
section li,
input {
    color: black;
}

main a {
    color: #000;
    text-decoration: none;
    transition: var(--animate);
}

main p a,
main li a,
main label a {
    border-bottom: 1px solid var(--blue-mid-light);
}

main p a:hover {
    border-bottom: 1px solid var(--blue-darkest);
    background-color: var(--grey-light);
}

footer p {
    color: var(--grey-light);
    max-width: none;
}

footer a {
    color: var(--blue-lightest);
    text-decoration: underline;
    transition: var(--animate);
}

footer a.button, 
a.button.small {
    line-height: var(--space);
    display: inline-block;
    padding: var(--half-space);
    color: var(--blue-dark);
    border-radius: var(--rounded);
    border: 0px;
    background-color: var(--blue-lightest);
    border-bottom: 1px solid var(--red-mid-light);
    text-decoration: none;
}

main a:hover {
    color: #000;
}

a.button.small:hover, footer a.button:hover {
    color: var(--blue-darkest);
    background: var(--blue-light);
    border-bottom: 1px solid var(--red);
}

main a.button.small:active, footer a.button:active {
    border: 0px;
    background: var(--grey-mid-light);
    border-bottom: 1px solid var(--grey-mid-light);
    color: var(--grey-dark);
}

footer a:hover {
    background-color: var(--grey-darkest);
}

main a:active {
    color: var(--blue-darkest);
    background: var(--grey);
}

main h4.section img {
    height: 1rem;
    margin-bottom: 0.2rem;
}

footer {
    color: var(--grey-light);
    grid-area: footer;
    padding: 0 var(--space) var(--space) var(--space);
    border-left: 1px solid var(--grey);
    background-color: var(--grey-dark);
}

footer section {
    margin: 0px auto;
    max-width: 80rem;
}

main section .row > div > img,
main section .row > div > a img {
    margin-top: var(--half-space);
    vertical-align: middle;
    border-style: none;
    max-height: 50rem;
    max-width: 50rem;
    height: auto;
}

.small, .caption, small {
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    margin-bottom: 0;
    display: block;
}

.badge {
    display: inline-block;
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    border: 2px solid var(--red-mid-light);
    border-radius: var(--rounded);
    padding: var(--quarter-space);
}

a.badge {
    color: var(--blue-dark);
    padding: var(--half-space);
}

.badge-pill {
    display: inline-block;
    border-radius: 50%;
    box-sizing: initial;
    text-align: center;
    width: var(--space);
    padding: 0rem;
}

.badge-vitamins,
.badge-minerals {
    background-color: var(--yellow-lightest);
}

.badge-protein,
.badge-fibre,
.badge-fats,
.badge-starches
 {
    background-color: var(--blue-lightest);
}

.badge-antioxidants,
.badge-testosterone,
.badge-omega {
    background-color: var(--red-lightest);
}

.badge-secondary {
    color: var(--grey-dark);
    border: 1px solid var(--grey-mid-light);
    background-color: var(--grey-light);
}

.top-padding {
    padding-top: var(--space);
}

.card {
    border-radius: var(--rounded);
    background: var(--grey-light);
    margin-top: var(--space);
    padding: var(--space);
}

.card a {
    color: var(--blue-mid-dark);
    border-bottom: 1px solid var(--blue-mid-dark);
}

.card.calculator {
    color: var(--grey-lightest);
    background: var(--grey-darkest);
    border-radius: 1rem;
}

.card.calculator a {
    color: var(--yellow-light);
    border-bottom: 1px solid var(--yellow-mid-dark);
}

.card.calculator a:hover {
    color: var(--yellow-lightest);
    background: var(--yellow-darkest);
}

.card.calculator a:active {
    color: var(--yellow-lightest);
    background: black;
}

.card.calculator label {
    margin: 0 var(--half-space) 0 0;
    display: inline-block;
}

.card.calculator fieldset {
    margin-top: var(--half-space);
}

.card.calculator a.tooltip {
    color: var(--grey-lightest);
    border-bottom: 1px dotted var(--grey-lightest);
    padding: 0 var(--quarter-space);
}

.card.results, .results tr, .results td {
    background: var(--grey-dark);
    border: none;
}

.results tr, .results td {
    color: var(--grey-lightest);
    vertical-align: middle;
}

ul.no-bullet {
    margin-left: 0px;
    padding-left: 0px;
    list-style-type: none;
}

ul.no-bullet li label {
    margin: 0;
}

ul.list {
    margin-left: 0px;
    padding-left: 0px;
}

ul.list > li {
    list-style-type: none;
    border-bottom: var(--grey-mid-light);
}

.feature ul.list > li,
.feature ul.list > li > ul > li {
    border-bottom: 1px solid var(--yellow-dark);
}

ul.list > li a {
    color: var(--blue-mid-dark);
    border-bottom: 1px solid var(--grey-mid-light);
    padding: var(--half-space);
    display: block;
}

ul.list > li a:hover {
    color: var(--blue-dark);
    border-bottom: 1px solid var(--blue);
}

ul.list > li a:active {
    background-color: var(--grey-mid-light);
}

ul.list > li > ul > li {
    list-style-type: none;
}

.row .card {
    margin-right: var(--half-space);
}

.card > *:first-child {
    margin-top: 0px;
}

.card.feature {
    background-color: var(--grey-darkest);
    color: #fff;
}

.card.feature h3, .card.feature h4, .card.feature li {
    color: #fff;
}

.card.feature a {
    color: #fff;
    border-bottom: 1px solid var(--blue-lightest);
}

.card.feature a:hover {
    color: var(--blue-lightest);
    border-bottom: 1px solid var(--blue-light);
    background-color: var(--grey-dark);
}

.card.info a {
    color: var(--grey-darkest);
    border-bottom: 1px solid var(--blue-mid-light);
}

.card.info a:hover {
    color: var(--blue-darkest);
    border-bottom: 1px solid var(--blue-darkest);
    background-color: var(--grey-mid-light);
}

.card.info {
    border-radius: var(--rounded);
    color: var(--grey-darkest);
    background: var(--grey-light);
    padding: 0 0 var(--space) 0;
}

.card.info h4, .card.info h5 {
    margin: 0;
    border-top-left-radius: var(--rounded);
    color: var(--grey-darkest);
    background: var(--red-light);
    padding: var(--quarter-space) var(--space);
    display: inline-block;
    border-right: 1px solid var(--grey-mid-light);
    border-bottom: 1px solid var(--grey-mid-light);
}

.card.info p {
    margin: var(--space) var(--space) 0 var(--space);
    max-width: 66ch;
}

.card.info ul {
    margin: var(--space) var(--space) 0 var(--space);
}

.card img {
    vertical-align: middle;
    max-width: 50rem;
    max-height: 50rem;
}

.card img.i {
    margin-top: 0px;
    vertical-align: middle;
    max-width: var(--space);
}

.card blockquote {
    margin-bottom: 0;
}

.button.premium {
    background-color: var(--yellow-light);
}

.badge.premium {
    color: white;
    background-color: var(--yellow-mid-dark);
    padding: 0rem var(--quarter-space);
}

a.badge.premium {
    color: var(--blue-darkest);
    background-color: var(--yellow-lightest);
    border: none;
    padding: var(--quarter-space) var(--half-space);
    display: block;
    max-width: max-content;
    margin-top: var(--space);
}

a.badge.premium:hover {
    color: white;
    background-color: var(--yellow-mid-dark);
    border: none;
}

a.badge.premium:active {
    background-color: var(--yellow-darkest);
}

p.success {
    color: var(--blue-mid-dark);
}

table.success,
div.success {
    border: 1px solid var(--blue);
}

p.warning,
.text-danger {
    color: var(--red-dark);
}

table.warning,
div.warning {
    border: 1px solid var(--red);
}

.padding {
    margin-top: var(--space);
}

.accordion {
    position: relative;
    width: 100%;
}

.accordion > dt { 
    border: 1px solid var(--blue-mid-light);
}

.accordion:last-child, .accordion:only-child {

}

.accordion > dt > a {
    color: var(--blue-darkest);
    display: block;
    padding: var(--half-space);
}

.accordion a:hover {
    background: var(--grey-light);
}

.accordion a:active {
    color: var(--grey-darkest);
    background-color: var(--grey-mid-light);
}

.accordion > dd {
    padding-left: 1rem;
    padding-right: 1rem;
    margin-left: 0px;
    padding-bottom: 1rem;
}

div.verify {
    position: absolute;
    text-indent: 100%;
    white-space: nowrap;
    overflow: hidden;
    top: -1000px;
}

.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.text-center {
    text-align: center;
}

.text-right {
    text-align: right;
}

.text-muted {
    color: var(--grey-dark);
}

a.internalLink, 
.card.info a.internalLink {
    color: black;
    border-bottom: 0px;
    background-color: var(--yellow-mid-light);
}

.card.feature a.internalLink {
    color: var(--yellow-lightest);
    border-bottom: 1px solid var(--yellow-mid-dark);
    border-top: 1px solid var(--yellow-mid-dark);
    background-color: var(--yellow-dark);
}

blockquote a.internalLink {
    color: var(--yellow-darkest);
    border-bottom: 0px;
    background-color: var(--yellow-lightest);
}

a.internalLink:hover,
.card.info a.internalLink:hover {
    color: black;
    border-bottom: 0px;
    background-color: var(--yellow);
}

.card.feature a.internalLink:hover {
    color: #fff;
    background-color: var(--yellow-mid-dark);
}

blockquote a.internalLink:hover {
    color: var(--blue-darkest);
    border-bottom: 0px;
}

p.ad {
    font-size: var(--caption);
    text-transform: uppercase;
    letter-spacing: 0.5ex;
}

progress {
    height: var(--space);
}

progress::-webkit-progress-bar {background-image: linear-gradient(var(--grey-mid-light), var(--grey-lightest)); width: 100%;}
progress {background-image: linear-gradient(var(--grey-mid-light), var(--grey-lightest))}

progress::-moz-progress-bar {background-color: var(--red) !important;}
progress::-webkit-progress-value {background-color: var(--red) !important;}
progress {color: var(--red);}

.no-spacing, .no-spacing > p {
    margin: 0;
    padding: 0;
}

main a.button {
    color: var(--blue-dark);
    max-width: 40rem;
    flex-grow: 1;
    display: block;
    padding: var(--half-space);
    margin-top: var(--space);
    background: var(--blue-lightest);
    font-size: var(--caption);
    letter-spacing: 0.02rem;
    font-weight: bold;
    text-decoration: none;
    text-align: center;
    border-radius: var(--rounded);
    line-height: var(--space);
    border-bottom: 1px solid var(--red-mid-light);
}

main a.button:hover {
    color: var(--blue-darkest);
    border-bottom: 1px solid var(--red);
    background-color: var(--blue-light);
}

main a.button:active {
    color: var(--grey-dark);
    background: var(--grey-mid-light);
    border-bottom: 1px solid var(--grey-mid-light);
}

main a.button.secondary {
    background: linear-gradient(180deg, var(--grey-mid-light) 0%, var(--grey) 100%);
}

table {
    margin-top: var(--space);
    border-collapse: collapse;
    display: block;
    width: 100%;
    overflow-x: auto;
}

.img-padding-top,
table img {
    margin-top: var(--quarter-space);
}

thead, tfoot {
    color: var(--red-darkest);
    background: var(--grey-mid-light);
}

thead.success {
    background: var(--blue-lightest);
}

thead.warning {
    background: var(--red-lightest);
}

table tr {
    width: 100%;
}

table tr:last-child {
    border-bottom: 1px solid var(--red-mid-light);
}

table tbody tr:nth-of-type(2n+1) {
    background-color: var(--grey-light);
}

table th {
    vertical-align: bottom;
}

table td {
    vertical-align: top;
}

table td, table th {
    padding: var(--quarter-space) 0 var(--quarter-space) var(--half-space);
    text-align: left;
    line-height: var(--space);
}

table td:last-of-type, table th:last-of-type {
    padding-right: var(--half-space);
}

thead, tfoot {
    border-top: 1px solid var(--red-mid-light);
    border-bottom: 1px solid var(--red-mid-light);
}



/* ==========================================================================
   Helper classes
   ========================================================================== */

/*
 * Hide visually and from screen readers
 */

.hidden {
    display: none !important;
}

/*
 * Hide only visually, but have it available for screen readers:
 * https://snook.ca/archives/html_and_css/hiding-content-for-accessibility
 *
 * 1. For long content, line feeds are not interpreted as spaces and small width
 *    causes content to wrap 1 word per line:
 *    https://medium.com/@jessebeach/beware-smushed-off-screen-accessible-text-5952a4c2cbfe
 */

.visuallyhidden {
    border: 0;
    clip: rect(0 0 0 0);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    white-space: nowrap; /* 1 */
}

/*
 * Extends the .visuallyhidden class to allow the element
 * to be focusable when mobile-navgated to via the keyboard:
 * https://www.drupal.org/node/897638
 */

.visuallyhidden.focusable:active,
.visuallyhidden.focusable:focus {
    clip: auto;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    margin: 0;
    overflow: visible;
    position: static;
    width: auto;
    white-space: inherit;
}

/*
 * Hide visually and from screen readers, but maintain layout
 */

.invisible {
    visibility: hidden;
}

/*
 * Clearfix: contain floats
 *
 * For modern browsers
 * 1. The space content is one way to avoid an Opera bug when the
 *    `contenteditable` attribute is included anywhere else in the document.
 *    Otherwise it causes space to appear at the top and bottom of elements
 *    that receive the `clearfix` class.
 * 2. The use of `table` rather than `block` is only necessary if using
 *    `:before` to contain the top-margins of child elements.
 */

.clearfix:before,
.clearfix:after {
    content: " "; /* 1 */
    display: table; /* 2 */
}

.clearfix:after {
    clear: both;
}

/* ==========================================================================
   EXAMPLE Media Queries for Responsive Design.
   These examples override the primary ('mobile first') styles.
   Modify as content requires.
   ========================================================================== */

@media only screen and (max-width: 375px) {

    header section.controls .avatar {
        display: none;
    }

    nav.menu {
        margin-right: 0.5rem;
    }
    nav.menu span.light {
        margin: auto 0.5rem auto 0px;
    }
    main section > img,
    main section .row > div > img {
        max-height: 500px;
        max-width: 100%;
    }
}

@media only screen and (max-width: 35em) {
    
    section.container {
    display: grid;
    grid-template-areas: 
        "header"
        "main"
        "footer"
        "aside";
    }

    .logo-mobile {
        display: block;
    }

    h1, .h1,
    h2, .h2 {
        font-size: 2.4rem;
    }

    header section.controls a img#ssf-logo {
        height: var(--space);
        margin: var(--half-space) var(--quarter-space) var(--half-space) 0;
        vertical-align: baseline;
    }

    .logo {
        display: none;
    }

    section.side-wrapper {
        margin: 0;
        z-index: 2;
        height: auto;
        width: unset;
        overflow-y: unset;
    }

    nav.menu {
        display: flex;
    }

    header nav.nav section button {
        width: 3rem;
        height: 1.5rem;
        padding: 0;
        border-radius: var(--rounded);
        box-shadow: -2px 3px 4px 0px var(--grey-darkest);
        transition: var(--animate);
    }

    header nav.nav section button.selected {
        box-shadow: -1px 1px 1px 0px var(--grey-darkest);
    }

    nav.menu button {
        font-size: var(--caption);
        letter-spacing: 0.02rem;
        text-shadow: 1px 1px 2px var(--grey-light);
        margin: 0.5rem 0;
        padding: 0.5rem;
        border-radius: var(--rounded);
        background: linear-gradient(225deg, var(--grey) 0%, var(--grey-mid-light) 100%);
        border: 1px solid var(--grey-mid-light);
        box-shadow: -2px 3px 4px 0px var(--grey-darkest);
        transition: var(--animate);
    }

    nav.menu button.selected {
        box-shadow: 0px 0px 1px 1px var(--grey-darkest);
    }

    nav.menu button:active {
        color: var(--grey-dark);
    }

    nav.menu span.light {
        margin: auto 0.5rem;
        width: 0.6rem;
        height: 0.6rem;
        border-radius: 50%;
        background: var(--grey-dark);
        border: 1px solid var(--grey-mid-light);
        transition: var(--animate);
    }

    nav.menu span.light.on {
        background: radial-gradient(circle, var(--red-light) 0%, var(--red-mid-dark) 85%);
        border: 1px solid var(--red-mid-dark);
        box-shadow: 0px 0px 8px 4px var(--red);
    }

    nav.secondary {
        display: none;
    }

    header {
        border-bottom: 1px solid var(--grey);
        width: initial;
    }

    header section.controls {
        flex-direction: row;
        width: 100%;
    }

    header section.authentication {
        margin: auto 0;
    }

    header section.authentication a {
        padding: var(--half-space);
        margin: auto 0;
    }

    header section.controls .avatar {
        position: relative;
        margin: auto;
        background-color: transparent;
        border: 1px solid var(--grey-dark);
    }

    header section.controls .avatar span {
        display: none;
    }

    header nav.nav {
        display: flex; /* flex, if you want it to appear */
        position: fixed;
        bottom: 0;
        left: 0;
        background-color: var(--grey-light);
        margin: 0;
        /* height: 6rem; */
        border-top: 1px solid var(--grey);
        width: 100%;
    }

    header nav.nav ul {
        display: inline-flex;
        border-left: none;
        margin: auto;
        overflow-x: auto;
    }

    header nav.nav li,
    header nav.nav ul ul {
        background-color: none;
        border-right: none;
        margin: 0;
    }

    header nav.nav a,
    header nav.nav a:hover  {
        margin: 0 0 var(--space) 0;
        border-bottom: 1px solid var(--red-mid-light);
        border-right: 1px solid var(--grey-mid-light);
        background-color: var(--grey-light);
        border-radius: var(--rounded);
        padding: var(--half-space) var(--space);
        white-space: nowrap;
    }

    header nav.nav section {
        flex-direction: column;
        width: 25vw;
    }

    header span.label {
        padding: 0;
        text-align: center;
    }

    header nav.nav section span.light {
        margin: 0.5rem 0;
    }

    
    aside {
        margin-bottom: 0;
    }

    aside nav {
        border-top: 1rem solid var(--grey-mid-light);
        border-right: 1rem solid var(--grey-mid-light);
        border-left: 1rem solid var(--grey-mid-light);
        border-radius: var(--rounded) var(--rounded) 0 0;
        position: fixed;
        bottom: 6rem;
        box-shadow: inset -1px 1px 6px var(--grey-mid-dark);
    }

    main {
        border-left: none;
    }

    .mobile-nav {
        display: block;
        margin: auto;
    }

    .mobile-nav .mobile-menu {
        padding: var(--half-space) 0;
        width: 50%;
        margin: 0;
        background: white;
        border: 1px solid var(--grey-mid-light);
        -webkit-box-shadow: -2px 3px 4px 0px var(--grey-dark);
        -moz-box-shadow:    -2px 3px 4px 0px var(--grey-dark);
        box-shadow:         -2px 3px 4px 0px var(--grey-dark);
        height: auto;
        position: absolute;
        left: 0px;
        transition: left 0.2s ease-in-out; 
    }

    nav.mobile-nav ul {
        margin: 0;
        padding: 0;
    }

    nav.mobile-nav li {
        width: 100%;
        margin: 0;
        float: none;
        list-style-type: none;
        padding: 0;
    }

    nav.mobile-nav li a {
        display: block;
        text-align: left;
        font-size: var(--caption);
        letter-spacing: 0.02rem;
        line-height: var(--space);
        text-decoration: none;
        color: var(--blue-mid-dark);
        padding: var(--half-space) var(--space);
    }

    nav.mobile-nav li a:active {
        background-color: var(--grey-light);
    }

    .mobile-nav input#toggle {
        display: none;
    }

    .mobile-nav input#toggle + label {
        display: block;
        margin: auto;
        background-color: var(--grey-light);
        position: relative;
        cursor: pointer;
        z-index: 10;
        font-size: var(--caption);
        letter-spacing: 0.02rem;
        padding: var(--half-space);
        border-radius: var(--rounded);
        border-bottom: 1px solid var(--red-mid-light);
        border-left: 1px solid var(--grey-mid-light);
        border-right: 1px solid var(--grey-mid-light);
    }

    .mobile-nav input#toggle + label:active {
        color: var(--blue-mid-dark);
        background-color: var(--yellow-light);
        border-bottom: 1px solid var(--grey);
    }

    input#toggle:checked ~ .mobile-menu {
        left: -400px;
    }

    aside nav.slider5.on {
        display: block;
        top: 3rem;
        bottom: initial;
        border-top: none;
        border-radius: 0 0 var(--rounded) var(--rounded);
        border-bottom: 1rem solid var(--grey-mid-light);
        margin: 0px 0px 0px 1rem;
        background-color: var(--grey-lightest);
    }

    aside nav.slider5.on a:hover {
        color: var(--blue-darkest);
    }

    main section > img,
    main section .row > div > img {
        max-height: 400px;
    }

    main section.scroll-header {
        top: var(--double-space);
        z-index: 1;
    }

    main section > img,
    main section .row > div > img {
        max-height: 500px;
        max-width: 100%;
    }

    label > img {
        margin-right: 10rem;
    }

    .results > table {
        font-size: var(--caption);
        letter-spacing: 0.02rem;
    }

    .results > table input[type="text"]:disabled {
        padding: var(--quarter-space);
        min-width: var(--double-space);
    }

    .card.results, .card.calculator {
        padding: var(--half-space);
    }

    footer {
        padding-bottom: 10rem;
    }

}

@media print,
       (-webkit-min-device-pixel-ratio: 1.25),
       (min-resolution: 1.25dppx),
       (min-resolution: 120dpi) {
    /* Style adjustments for high resolution devices */
}

/* ==========================================================================
   Print styles.
   Inlined to avoid the additional HTTP request:
   http://www.phpied.com/delay-loading-your-print-css/
   ========================================================================== */

@media print {
    *,
    *:before,
    *:after {
        background: transparent !important;
        color: #000 !important; /* Black prints faster:
                                   http://www.sanbeiji.com/archives/953 */
        box-shadow: none !important;
        text-shadow: none !important;
    }

    a,
    a:visited {
        text-decoration: underline;
    }

    a[href]:after {
        content: " (" attr(href) ")";
    }

    abbr[title]:after {
        content: " (" attr(title) ")";
    }

    /*
     * Don't show links that are fragment identifiers,
     * or use the `javascript:` pseudo protocol
     */

    a[href^="#"]:after,
    a[href^="javascript:"]:after {
        content: "";
    }

    pre {
        white-space: pre-wrap !important;
    }
    pre,
    blockquote {
        border: 1px solid var(--grey-mid-dark);
        page-break-inside: avoid;
    }

    /*
     * Printing Tables:
     * http://css-discuss.incutio.com/wiki/Printing_Tables
     */

    thead {
        display: table-header-group;
    }

    tr,
    img {
        page-break-inside: avoid;
    }

    p,
    h2,
    h3 {
        orphans: 3;
        widows: 3;
    }

    h2,
    h3 {
        page-break-after: avoid;
    }
}
