@charset "UTF-8";
/* CSS Document */
/* shared stylesheet for every page of the AppleLaunches mini-site */

/* body defaults */
body {
    background-color: rgb(58, 64, 82);
    color: #222;
    font-family: Arial, Helvetica, sans-serif;
}

/* box that holds the page layout */
#container {
    width: 960px;
    margin: auto;
    background-color: rgb(244, 244, 244);
    padding: 12px;
}

/*  header */
header {
    background-color: steelblue;
    color: white;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
    padding: 12px;
    text-align: center;
}
header h1 {
    font-size: 24pt;
    margin: 10px 0 0 0;
}

/* flexbox nav bar (same on every page) */
nav {
    background-color: rgb(40, 84, 120);
    padding: 5px;
    display: flex;
    justify-content: space-around;
    clear: both;
}
nav a {
    min-width: 100px;
    padding: 6px;
    text-align: center;
    color: white;
    text-decoration: none;
    font-weight: bold;
}
nav a:hover {
    background-color: white;
    color: steelblue;
}
/* the link for the page you are on */
nav a.current {
    background-color: rgb(244, 244, 244);
    color: rgb(40, 84, 120);
}

/* section headings */
h2 {
    background-color: gray;
    color: white;
    padding: 6px;
    clear: both;
}
h3 {
    color: steelblue;
    margin-bottom: 4px;
}

/* figure that wraps each data table or chart */
figure {
    margin: 0 0 12px 0;
    background-color: white;
    border: 1px solid gray;
    padding: 6px;
}
figure img {
    width: 100%;
}
figcaption {
    font-size: 10pt;
    font-style: italic;
    color: #444;
    text-align: center;
    padding: 6px;
}

/* data tables */
table {
    width: 100%;
    border-spacing: 1px;
    font-size: 10pt;
}
th {
    background-color: steelblue;
    color: white;
    padding: 5px;
    position: relative;
}
td {
    padding: 4px;
    text-align: center;
    border: 1px solid lightgray;
}
td {
    white-space: nowrap;
}
td.name {
    text-align: left;
    font-weight: bold;
    white-space: normal;
}
tbody tr:hover td {
    background-color: lightyellow;
}

/* verdict and percent-change cells */
.hit {
    background-color: lightsteelblue;
    font-weight: bold;
}
.miss {
    background-color: salmon;
    font-weight: bold;
}
.up {
    color: green;
    font-weight: bold;
}
.down {
    color: crimson;
    font-weight: bold;
}

/* pop-up definitions inside th (shown with jQuery) */
.definition {
    position: absolute;
    top: 30px;
    left: 0;
    width: 160px;
    z-index: 2;
    background-color: rgb(40, 84, 120);
    color: white;
    font-weight: normal;
    font-size: 9pt;
    padding: 6px;
    border-radius: 6px;
}
/* last columns: open the pop-up to the left so it stays inside the page */
th:nth-last-child(-n+2) .definition {
    left: auto;
    right: 0;
}
th.clickable {
    cursor: help;
}

/* white analysis box with a blue edge */
.step {
    background-color: white;
    border-left: 8px solid steelblue;
    padding: 12px;
    margin-bottom: 12px;
}
.step.missbox {
    border-left-color: crimson;
}
.left {
    float: left;
    width: 400px;
    margin-right: 12px;
}
.right {
    float: right;
    width: 480px;
    margin-left: 12px;
}
.right img {
    width: 480px;
}

/* three takeaway boxes on the homepage (flexbox like the nav) */
#takeaways {
    display: flex;
    justify-content: space-between;
}
.takeaway {
    width: 290px;
    background-color: white;
    border-top: 8px solid steelblue;
    padding: 10px;
    text-align: center;
}
.takeaway .bignum {
    font-size: 28pt;
    font-weight: bold;
    color: steelblue;
}
.takeaway .bignum.down {
    color: crimson;
}

/* "go to this page" boxes on the homepage */
#explore {
    display: flex;
    justify-content: space-between;
}
#explore a {
    width: 290px;
    background-color: rgb(40, 84, 120);
    color: white;
    text-decoration: none;
    padding: 12px;
    border-radius: 12px;
}
#explore a:hover {
    background-color: steelblue;
}

/* filter buttons + message box on the data page */
.button {
    display: inline-block;
    background-color: rgb(40, 84, 120);
    color: white;
    font-weight: bold;
    padding: 6px 12px;
    margin: 0 6px 6px 0;
    border-radius: 6px;
    cursor: pointer;
}
.button:hover, .button.selected {
    background-color: steelblue;
}
#messagebox {
    background-color: steelblue;
    color: white;
    padding: 12px;
    margin-bottom: 12px;
    min-height: 20px;
    border-radius: 6px;
}

/* clickable sentences that highlight table rows (like the hockey demo) */
.trigger {
    background-color: lightyellow;
    border-bottom: 2px dotted steelblue;
    cursor: pointer;
}
.highlight td {
    background-color: yellow;
}
#reset {
    color: steelblue;
    font-weight: bold;
    cursor: pointer;
}

/* note / limitations box */
.note {
    background-color: lightyellow;
    border: 1px solid goldenrod;
    padding: 12px;
    margin-bottom: 12px;
}

/* glossary */
dl {
    background-color: white;
    border: 1px solid steelblue;
    padding: 12px;
}
dt {
    font-weight: bold;
    color: steelblue;
    margin-top: 8px;
    cursor: pointer;
}
dt:hover {
    text-decoration: underline;
}
dd {
    margin-left: 24px;
}

/* resource lists */
ul.resources li {
    margin-bottom: 6px;
}

/* footer */
footer {
    background-color: rgb(40, 84, 120);
    color: white;
    font-size: 10pt;
    padding: 12px;
    margin-top: 12px;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
}
footer a {
    color: yellow;
}
