/* 
1: VARIABLES
2: CORE
3: LAYOUT
4: TYPOGRAPHY
5: LISTS
6: LINKS
7: MEDIA
8: FORMS
9: TABLES
10 COMPONENTS
*/


/* 
1: VARIABLES
*/
:root {
  --dc-font-primary: 'Gotham A', 'Gotham B',  Helvetica, Arial, sans-serif;
  --dc-font-secondary: 'Whitney A', 'Whitney B',  Helvetica, Arial, sans-serif;
  --dc-font-monospace: 'Andale Mono', Monaco, 'Courier New', monospace;

  --dc-white: #ffffff;
  --dc-chalk: #eeeceb;
  
  --dc-light-grey: #DEDAD7;
  --dc-mid-grey: #707070;
  --dc-slate: #352e2f;
  --dc-blue: #3F9EFD;
  --dc-salmon: #6f42c1;
  --dc-green: #0aa696;
  --dc-plum: #a4609c;
  --dc-orange: #f47933;
  --dc-dark-orange: #c8583a;
  --dc-mustard: #fdb834;

  --dc-body-font-family: var(--dc-font-primary);
  --dc-body-font-size: 1rem;
  --dc-body-font-weight: 400;
  --dc-body-line-height: 1.4;
  --dc-body-color: #444444;
  --dc-body-bg: var(--dc-chalk);
}

.html { color: var(--dc-blue);   }
.css  { color: var(--dc-salmon); }
.js   { color: var(--dc-green);  }
.php  { color: var(--dc-plum);   }
.sql  { color: var(--dc-orange); }

/* 
2: CORE
*/

/* Box sizing for everything */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reduced motion */
@media (prefers-reduced-motion: no-preference) {
  :root {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--dc-font-secondary);
  font-size: var(--dc-body-font-size);
  font-weight: var(--dc-body-font-weight);
  line-height: var(--dc-body-line-height);
  color: var(--dc-body-color);
  background-color: var(--dc-body-bg);
}


/* 
3: LAYOUT
*/
html, body {
  height:  100%;
}
body {
  display: flex;
  flex-direction: column;
}
main {
  flex: auto;
}
header, footer {
  flex-shrink: 0;
}

article, aside, details, figcaption, figure, footer, header, hgroup, main, nav, section, summary {
  display: block;
}

.container {
  padding: 0 1rem;
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

@media (min-width: 576px) {
  .container-sm, .container {
    max-width: 540px;
  }
}
@media (min-width: 768px) {
  .container-md, .container-sm, .container {
    max-width: 720px;
  }
}
@media (min-width: 992px) {
  .container-lg, .container-md, .container-sm, .container {
    max-width: 960px;
  }
}
@media (min-width: 1200px) {
  .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1140px;
  }
}
@media (min-width: 1400px) {
  .container-xxl, .container-xl, .container-lg, .container-md, .container-sm, .container {
    max-width: 1320px;
  }
}
.container+.header-image {padding: 0;}
@media (max-width: 768px) {
  .row {padding-bottom: 1rem;}
}

@media (min-width: 768px) {
  .row {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
  }
  .c1of1 { width: 100%; }
  .c1of2 { width: 46.5%;  }
  .c1of3 { width: 28.5%;  }
  .c2of3 { width: 64.2%;  }
  .c1of4 { width: 19.75%;  }
  .c3of4 { width: 73.25%;  }
  .c1of6 { width: 14%; margin-right: 1.2%  }

  .wide-extra-height { padding-bottom: 2rem; }
}

.c1of1, .c1of2, .c1of3, .c1of4,
.c2of3, .c3of4 {
  margin-bottom: 1.5rem;
}
.c1of3.tight {
  margin-bottom: 0;
}


/* TYPOGRAPHY */
@media (min-width: 1200px) {
  body { font-size: 1.2rem }
}

h1, h2, h3, h4, h5, h6 {
  margin-top: 0;
  font-weight: normal;
  line-height: 1.2;
  color: var(--dc-slate);
  font-family: var(--dc-font-primary);
}
h2, h3, h4, h5, h6 {
    text-transform: uppercase; 
}
h1 { font-size: calc(1.375rem + 1.5vw); }
h2 { font-size: calc(1.325rem + 0.9vw); }
h3 { font-size: calc(1.3rem + 0.6vw); }
h4 { font-size: calc(1.275rem + 0.3vw); }
h5 { font-size: 1.25rem; }
h6 { font-size: 1rem; font-weight: bold;}

hgroup h2, hgroup h3, hgroup h4, hgroup h5, hgroup h6 {margin-bottom:  0;}
hgroup {margin-bottom: 1rem;}

@media (min-width: 1200px) {
  h1 { font-size: 2.5rem;  }
  h2 { font-size: 2rem;    }
  h3 { font-size: 1.75rem; }
  h4 { font-size: 1.5rem;  }
}
h1         { margin-bottom: 2rem; }
h2, h3, h4 { margin-bottom: 1rem; }
h5, h6     { margin-bottom: 0.5rem; }
a h5, a h6 { margin-bottom: 0; }
.intro-text h1 { margin-bottom: 0; }

p {
  margin-top: 0;
  margin-bottom: 1rem;
}

.standfirst {
  font-size: 1.6rem;
}

.center {
  text-align: center;
}

.right {
  text-align: right;
}

.small {
  font-size: 0.9rem;
}

.nobr {
  white-space: nowrap;
}


sub,
sup {
  position: relative;
  font-size: 0.75em;
  line-height: 0;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* dfn with abbrs */
abbr[title],
abbr[data-bs-original-title] {
  -webkit-text-decoration: underline dotted;
  text-decoration: underline dotted;
  text-decoration-color: var(--dc-slate);
  cursor: help;
  font-weight: bold;
}

dfn, .dfn {
  font-style:  normal;
  font-weight: bold;
}

hr {
  margin: 0 0 1.5rem 0;
  color: inherit;
  height: 1px;
  opacity: 0.2;
}

hr.tall {
  margin:  1rem 0 3rem 0;
}

h4.tight {margin-bottom: 0;}

/* QUOTES + MARKS */
blockquote {
  margin: 0 0 1rem 0;
}

mark, .mark {
  padding: 0.2em;
  background-color: #fcf8e3;
}


@media (min-width: 1400px) {
  .intro-text {
    padding-top:  1.5rem;
  }
}

.big {
  font-size: 4rem;
}



/* CODE AND IO */
pre,
code, .code,
kbd,
samp,
.folder,
.path {
  font-family: var(--dc-font-monospace);
  direction: ltr /* rtl:ignore */;
  unicode-bidi: bidi-override;
}
code, p.code {
  font-size: 1rem;
}

pre {
  display: block;
  margin-top: 0;
  margin-bottom: 1rem;
  overflow: auto;
  font-size: 1rem;
}
pre code {
  font-size: inherit;
  color: inherit;
  word-break: normal;
}

code, .code {
  word-wrap: break-word;
}
a > code, a > .code {
  color: inherit;
}

kbd {
  padding: 0.2rem 0.3rem;
  font-size: 0.9rem;
  color: #333;
  background-color: #ffffff;
  border: 1px solid #999;
  border-radius: 0.2rem;
}

output {
  display: inline-block;
}

.screen {
  font-family: var(--dc-font-secondary);
  font-weight: bold;
}


/*
5: LISTS
standard
double-height
circular numbers
chapter list
*/

ol,
ul,
dl {
  padding: 0;
  margin-top: 0;
  margin-left: 0;
  margin-right:  0;
  margin-bottom: 1.5rem;
}

li {
  margin:  0 0 0 1.1rem;
  padding: 0;
}

ol ol,
ul ul,
ol ul,
ul ol {
  margin-bottom: 0;
}

dt {
  font-weight: 700;
}

dd {
  margin-bottom: 0.5rem;
  margin-left: 0;
}

/* Double height */
.double-height li {
  margin-bottom: 1.5rem;
}
.double-height li:last-child {
  margin-bottom: 0;
}





/* 
6: LINKS
*/
a                 { text-decoration: none;  }
main a            { color: var(--dc-dark-orange);}
a:hover, 
main a:hover      { color: var(--dc-plum); cursor: pointer; }
a:active          { color: var(--dc-plum); }
a:active, a:hover { outline: 0; }
main a:visited    { color: var(--dc-dark-orange); }
p a { font-weight: bold; } 

.link-circle,
.link-circle:visited {
  color: var(--dc-slate);  
  background-color: #fff;
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: inline-block;
  text-align: center;
  padding-top: .4rem;
  margin-left: .5rem;
}
.link-circle-current, 
a.link-circle:hover,
.btn-chapter-current,
.btn-chapter-current:hover {
  background-color: var(--dc-mustard);
}

/* 
7: MEDIA
*/
figure {
  margin: 0 0 1rem;
}

img,
svg {
  vertical-align: middle;
}

img {
  max-width: 100%;
  height: auto;
}

img.actual {
  width: auto;
  height:  auto;
}

.hero img {
  width:  100%;
  height:  auto;
}

.diagram {
  margin-bottom: 1.5rem;
}

.diagram-large {
  margin-top: 1.5rem;
  margin-bottom: 3rem;
}

iframe {
  border: 0;
}

.video-responsive {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}

.video-responsive::before {
  display: block;
  content: "";
  padding-top: 56.25%;
}

.video-responsive-item {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.screenshot {
  box-shadow: -1px 0px 10px 3px rgba(214,214,214,1);
}

/* HEADER + FOOTER */
.skip-link {
  position: fixed;
  top: -200px;
  left: 50%;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  background-color: #8b8885;
  color: #fff;
  padding: 5px;
  outline: none;
}

.skip-link:focus {
  top: 0;
}

header,
.footer-links {
  color: var(--dc-slate);
  background-color: var(--dc-white);
  font-family:  var(--dc-font-primary);
  text-transform: uppercase;
  text-align: center;
}
header {
  padding: 24px 0 8px 0;
}
@media (min-width: 768px) {
  header {
    padding: 24px 0;
  }
}
.footer-links {
    padding: 16px 0;
}


header .logo {
  font-weight: normal;
  font-size: calc(1.275rem + 0.3vw);  
  text-transform: uppercase;
  display: inline-block;
  margin: 0 auto;
}
header .logo img {
  height: 1.8em;
  width: 1.8em;
  margin-right: 1rem;
}
.logo a {
  color: var(--dc-slate);
  font-size: 1.6rem;
}
.logo a:hover {
  color: var(--dc-dark-orange);
}

header nav {
  display: flex;
  justify-content: space-between;
  padding:  1rem 2rem 0 2rem;
  vertical-align: middle;
  align-items: center;
}

header nav a,
footer nav a {
  color: var(--dc-slate);
  margin: 0 .75em;
}
header nav a:first-child,
footer nav a:first-child {
  margin-left:  0;
}
header nav a:last-child,
footer nav a:last-child {
  margin-right:  0;
}
header nav a {
  font-weight: bold;
}
header nav a:hover,
footer nav a:hover {
  color: var(--dc-dark-orange);
}
header nav a.on {
  color: var(--dc-dark-orange);
}
header nav .btn-primary.on {
  background-color: var(--dc-dark-orange);
  color: #fff;
}
footer nav {
  margin: 0.75rem 0;
}
footer nav a {
  font-weight: normal;
  color: var(--dc-slate);
}

@media (min-width: 768px) {
  header { text-align: left; }
  header .logo {
    display: inline-block;
    margin:  0;
  }
  header > div.container {
    display: flex;
    flex: 2;
    align-items: center;
  }
  header .logo {
    flex: 50%;
  }
  header nav {
    flex:  50%;
    justify-content:  flex-end;
    padding: 0;
  }
}

@media (min-width: 960px) {
  nav .buy::after {
    content: " this book";
  }
  .footer-links .container nav a {
    margin:  0;
  }
  .footer-links .container div,
  .footer-links .container nav {
    display: inline-block; 
  }
  .footer-links .container nav {
    float:  left;
    text-align: left;
    width:  40%;
    margin: 0;
  }
  .footer-links .container nav+nav {
    float:  right;
    text-align: right;
  }
}

@media (max-width: 767px) {
  footer .footer-logo {
    padding: .5rem 0 .4rem 0;
  }

}

/* SERIES PANEL */

.series-panel {
  padding:  2rem 0 1rem 0;
}
.series-panel div.title {
  text-align: center;
  padding: 0 1rem;
  font-weight: bold;
}
@media (max-width: 767px) {
  .series-panel .c1of3 a {
    display:  flex;
    gap: 4%;
    align-items: center;
  }
  .series-panel .c1of3 a div {
    flex-basis: 50%;
  }
  .series-panel .c1of3:last-child {
    margin-bottom: 0;
  }
}

.series-panel a {
  color: var(--dc-slates);
}
.series-panel a:hover, .series-panel a:hover h5 {
  color: var(--dc-dark-orange);
}
.series-panel img {
  margin-bottom: .5rem;  
}
.small-logo {
  margin-bottom:  0.5rem;
}

.series-panel img {
  border-radius: 4px;
}
.series-panel h5.series-header  {
  margin-bottom:  2rem;
  color: var(--dc-slate);
}

/* PAGES - sections of page in different colours */
@media (max-width: 767px) {
  .page {
    padding-top: 1rem;
    padding-bottom: 0rem;
  }
  h1 {
    margin-bottom: 1rem;
  }
}

@media (min-width: 768px) {
  .page {
    padding-top: 3rem;
    padding-bottom: 2rem;
  }
}
.page-white {
  background-color: #f8f8f8;
}
.page-chalk {
  background-color: var(--dc-chalk);
}
.page-white p, .page-white li {
  color:  var(--dc-slate);
}
.header-mustard {
  background-color: var(--dc-mustard);
}
.header-grey {
  background-color: #bab6b3;
}
.header-chalk {
  background-color: #e6e5e3;
}
.header-beige {
  background-color: #d7d6d1;
}
.header-slate {
  background-color: #1f1416;
}
.page-chalk+.page-white {
  padding-top:  2rem;
}

/* HEADERS FOR PAGES */
.download-container {
  position: relative;
  text-align: center;
}
.code-download {
  position: absolute;
  top: 0px;
  text-align: center;
  width: 100%
}
.call-to-action {
  font-family: var(--dc-font-primary);
}
@media (max-width: 479px) {
  .call-to-action {
    padding-top: .2rem;
    font-size: .9rem;
  }
}
@media  (min-width: 480px) and (max-width: 779px) {
  .call-to-action {
    padding-top: 1rem;
    font-size: 1rem;
  }
}
@media (min-width: 780px) and (max-width: 999px) {
  .call-to-action {
    padding-top: 2rem;
    font-size: 1.4rem;
  }
}
@media (min-width: 1000px) {
  .call-to-action {
    padding-top: 3rem;
    font-size: 2rem;
  }
}

.header-image {
  margin: 0 auto;
  text-align: center;
}
.header-video {
  margin: 0 auto;
}
@media (max-width: 299px) {
  .header-image {
    width: 100%;
  }
  .header-image img {
    margin:  0 auto;
  }
  .header-video {
    width: 100%;
    height: auto;
  }
}
@media (min-width: 300px) and (max-width: 399px) {
  .header-image { height: 87px; }
  .header-image img { width: 280px; height: 87px; }
  .header-video { height: 87px; width: 155px; }
}
@media (min-width: 400px) and (max-width: 575px) {
  .header-image { height: 112px; }
  .header-image img { width: 360px; height: 112px; }
  .header-video { height: 112px; width: 199px; }
}
@media (min-width: 576px) and (max-width: 767px) {
  .header-image { height: 168px; }
  .header-image img { width: 540px; height: 168px; }
  .header-video { height: 168px; width: 299px; }
}
@media (min-width: 768px) and (max-width: 991px) {
  .header-image { height: 225px; }
  .header-image img { width: 720px; height: 225px; }
  .header-video { height: 225px; width: 400px; }
}
@media (min-width: 992px) and (max-width: 1199px) {
  .header-image { height: 300px; }
  .header-image img { width: 960px; height: 300px; }
  .header-video { height: 300px; width: 533px; }
}
@media (min-width: 1200px) and (max-width: 1399px) {
  .header-image { height: 356px; }
  .header-image img { width: 1140px; height: 356px; }
  .header-video { height: 356px; width: 633px; }
}
@media (min-width: 1400px) {
  .header-image { height: 413px; }
  .header-image img { width: 1320px; height: 413px; }
  .header-video { height: 413px; width: 734px; }
}

.header-download {
  position: relative;
}

/* DOWNLOAD PAGE + HEADERS WITH TEXT */
.header .standfirst {
  margin: .5rem 0 .2rem 0;
  font-size:  1rem;
  font-weight: bold;
}

@media (min-width: 768px) {
  .header .standfirst {
    font-size:  1.6rem;
    font-weight: normal;
    max-width: 18rem;
    margin: 0 auto .5rem auto;
  }
}
@media (min-width: 768px) and (max-width: 999px) {
  .header .text {
    padding-top: .5rem;
  }
}
@media (min-width: 1000px) {
  .header .text {
    padding-top: 1.5rem;
  }
}

/* GENERAL */
.top-pad {
  margin-top:  3rem;
}
.bottom-pad {
  margin-bottom:  2rem;
}


/*
8: FORMS
*/
input,
button,
select,
optgroup,
textarea {
  margin: 0;
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  line-height: inherit;
}

textarea {
 overflow: auto; 
 resize: vertical;
}

.btn {
  font-family: var(--dc-font-primary);  
  display: inline-block;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  user-select: none;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 1rem;
  transition: color 0.15s ease-in-out, background-color 0.3s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

a.btn:hover {
  color:  #000;
  background-color: #f8a70a;
}

a.btn:visited {
  color: var(--dc-slate);
}

.btn-buy {
    padding: 4px 12px 2px 12px;
}

.btn-primary {
  background-color: var(--dc-mustard);
  color:  var(--dc-slate);  
}

.btn-big-icon {
  background-color: #fff;
  color: var(--dc-slate);
  width: 100%;
  padding: 2rem 1rem;
}

.btn-big-icon i {
  font-size: 4rem;
  padding-bottom: 1rem;
}

.btn-big-icon span {
  font-weight: bold;
}

/* Boxes */
.box-round {
  border-radius: 8px;
  padding: 2rem 1rem;
  text-align: center;
}
.box-round-white {
  background-color: #efefef;
  color: #fff;
}

.box-round-mustard {
  background-color: #fdb834;
  color: var(--dc-slate);
}

.box-round-mustard:hover {background-color: #fff;}


/* Download link */
.download {
  font-size: 2rem;
  background-color: var(--dc-light-grey);
  text-align: center;
  padding: 1rem;
  margin-bottom:  1.5rem;
}

/* Download button */
.btn-big-round{
  background-color: var(--dc-slate);
  color: #fff;
  display: flex;
  margin: 0 auto;
}

.btn-big-round i {
  display: inline-block;
}

.btn-big-round:hover {
  background-color: var(--dc-orange);
}

.page-download hgroup {
  overflow: hidden;
}

@media (max-width: 479px) {
  .btn-big-round {
    font-size: 1rem;
    border-radius: 1.2rem;
    width: 12rem;
  }
  .btn-big-round i {
    font-size: 1.5rem;
    margin-right: 1rem;
  }
  .btn-big-round .btn-text {
    line-height: 1.6rem;
  }
}
@media (min-width: 480px) {
  .btn-big-round {
    font-size: 1.5rem;
    border-radius: 2rem;
    width: 18rem;
  }
  .btn-big-round i {
    font-size: 2.5rem;
    margin-right: 1.5rem;
  }
  .btn-big-round .btn-text {
    line-height: 2.5rem;
  }
}


.btn-pill {
  color: #fff;
  display: inline-flex;
  width: min-content;
  background-color: var(--dc-slate);
  padding: .2rem;
  align-items: center;
} 

.btn-pill-med {
  font-size: 1rem;
  border-radius: 1.5rem;
}
.btn-pill-med i {
  font-size: 2rem;
}
.btn-pill-text {
  padding: 0 .5rem;
}
.btn-pill:hover {
  color: var(--dc-mustard);
}

@media (min-width: 768px)  {
  .btn-big-round{ 
    font-size: 2rem; 
    border-radius: 2.5rem; 
    padding: 0.5rem; 
    width: 24rem;
  }
  .btn-big-round i {
    font-size: 3.5rem;
  }
  .btn-big-round .btn-text {
    line-height: 3.5rem;
  }
}

/* FONT AWESOME ICON */
.btn-icon-background {
  padding-left: 32px;
  position: relative;
}
.btn-icon-background:before {
  position: absolute;
  font-family: 'FontAwesome';
  top: 0;
  left: 10px;
  content: "\f005";
}

/* MOVING ARROW BUTTON */
.btn-arrow {
  padding: .5rem 1rem;
}
.btn-arrow::after {
  display: inline-block;
  padding-left: 8px;
  content: "\0279E";
  transition: transform 0.3s ease-out;
}
.btn-arrow:hover {
  color: #0c5449;
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}

/* 
9:  TABLES
*/
table {
  caption-side: bottom;
  border-collapse: collapse;
  margin-bottom:  1.5em;
}

table.full-width {
  width:  100%;
}

caption {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  color: #6c757d;
  text-align: left;
}

th {
  text-align: inherit;
  text-align: -webkit-match-parent;
}

thead,
tbody,
tfoot,
tr,
td,
th {
  border-color: inherit;
  border-style: solid;
  border-width: 0;
}

tr {
  line-height: 1.5;
}

td,
th {
  padding: 0 8px 0 0; 
  line-height: 1.48; 
  vertical-align: top;
  font-weight: normal;
  border-bottom: 1px solid var(--dc-light-grey);
}

th {
  white-space: nowrap;
  text-transform: uppercase;
  color: var(--dc-slate);
  font-size:  0.85rem;
  padding:  0.05rem 1rem 0.05rem 0;
}

thead {
  border-bottom:  1px solid var(--dc-slate);
}

tr:last-child td, tr:last-child th {
  border-bottom: none;
}

/* Sample code tables */
.file-links th {font-weight: bold;}
.file-links td:first-child {font-weight: bold;}
.file-links td a {font-family: var(--dc-font-monospace); font-size: 1rem;}
.file-links td i.fas,
hgroup h6 i.fas {
  color: var(--dc-mid-grey);
}

/* 
10: COMPONENTS

.lists-triple
.home-box
.video-showcase
.card
.stickers

*/

/* THREE LISTS - Home page */

.lists-triple .c1of3 {
  margin-bottom: 1rem;
}
.lists-triple li {
  margin-left: 1.5rem;
}

@media (max-width: 767px) {
  .lists-triple .row {
    display: flex;
    flex-direction: column;
    padding-bottom: 0;
  }
  .lists-triple .c1of3 {
    display: inline-block;
    margin: 0 auto 1rem auto;
    width: 16rem;
  }
  .lists-triple h1 {
    display: inline-block;
  }
  .lists-triple ul {
    display: inline-block;
    width: auto;
    margin: 0 auto;
    text-align: left;
  }
}

/* HOME BOX - squidy layout used on home page */

.home-box { margin: 1rem 0; }

@media (max-width: 767px) {
  .home-box .standfirst {
    font-size: 1.3rem;
    margin-bottom: 1rem;
  }
  .home-box .row {
    margin-bottom: 0;
  }
  .home-box .c1of2 {
    margin-bottom: 0;
  }
}
@media (min-width: 768px) {
  .home-box .standfirst { margin-bottom: 2rem; }
}
@media (max-width: 991px) {
  .home-box {
    display: flex;
    flex-direction: column-reverse;
  }
  .home-box div.images {
    padding: 2rem 0;
    width: 100%;
    display: flex;
  }
  .home-box div.images img {
    flex-basis: 50%;
  }
  .home-box h1 span {
    white-space: nowrap;
  }
}
@media (min-width: 992px) {
  .home-box {
    display: flex;
    justify-content: space-between;
    flex-direction: row;
  }
  .home-box div.images {
    display: block;
    padding: 2rem 0;
  }
  .home-box div.images img {
    margin-bottom: 1rem;
  }
}
@media (min-width: 992px) and (max-width: 1399px) {
  .home-box div        { flex-basis: 47%; } 
  .home-box div.images { flex-basis: 46%; } 
  .home-box div.text   { flex-basis: 46%; } 
}
@media (min-width: 1200px) {
  .home-box h1 { margin-top: 3rem; }
  .home-box h1 span { white-space: nowrap; }
}
@media (min-width: 1400px) {
  .home-box div.images { flex-basis: 31%; } 
  .home-box div.text   { flex-basis: 64%; } 
}
@media (max-width: 959px) {
  .home-box div.images.nopad {
    padding: 0;
  }
}

/* VIDEO SHOWCASE */
.video-showcase {
  display: flex;
}
.player {
  overflow: hidden;
}
.thumbs a {
  background-color: var(--dc-light-grey);
  background-size: contain;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: row;
  align-items: flex-start; /* this is to fix safari bug */
  color: var(--dc-slate);
  font-size: .9rem;
  line-height: 1rem;
  font-family: var(--dc-font-primary);
  border-bottom: 2px solid var(--dc-chalk);
}
.thumbs a:last-child {
  border-bottom: 0px;
}
.thumbs a:visited {
  color: var(--dc-slate);
}
.thumbs a.video-on {
  background-color: var(--dc-mustard);
  color: var(--dc-slate);
}
.thumbs span {
  padding: 5px;
}

/* DIMENSIONS */
@media (min-width: 768px) {
  .video-showcase {
    width: 688px;
    height: 252px;
  }
  .thumbs {width: 230px;}
  .player {width: 448px}
}
@media (min-width: 992px) and (max-width: 1199px) {
  .video-showcase {
    width: 928px;
    height: 347px;
  }
  .thumbs {width: 310px;}
  .player {width: 618px}
}
@media (min-width: 1200px) and (max-width: 1399px)  {
  .video-showcase {
    width: 1108px;
    height: 415px;
  }
  .thumbs {width: 370px;}
  .player {width: 738px}
}
@media (min-width: 1400px) {
  .video-showcase {
    width: 1288px;
    height: 482px;
  }
  .thumbs {width: 430px;}
  .player {width: 858px}
}

/* VIDEO SHOWCASE LAYOUT */
@media (max-width: 767px) {
  .video-showcase {
    flex-direction: column;
  }
  .thumbs {
    width:  100%;
    max-height: 200px;
    overflow-y:auto;
  }
  .player {
    width: 100%;
  }
  .thumbs img {
    max-width: 180px;
  }
}
@media (min-width: 768px) {
  .video-showcase {
    flex-direction: row-reverse;
  }
  .thumbs {
    overflow-y: scroll;
  }
  .thumbs img {
    width: 45%;
  }
}

/* VIDEO SHOWCASE SCROLL BARS */
html {
  --scrollbarBG: var(--dc-mid-grey);
  --thumbBG: var(--dc-light-grey);
}
.thumbs::-webkit-scrollbar {
  width: 11px;
}
.thumbs {
  scrollbar-width: thin;
  scrollbar-color: var(--thumbBG) var(--scrollbarBG);
}
.thumbs::-webkit-scrollbar-track {
  background: var(--scrollbarBG);
}
.thumbs::-webkit-scrollbar-thumb {
  background-color: var(--thumbBG) ;
  border-radius: 6px;
  border: 3px solid var(--scrollbarBG);
}


/* CARDS - white rounded edges
(used on about page)
*/
.card {
  background-color: #fff;
  padding: 24px;
  box-shadow: 0 0 30px 0 rgb(0 0 0 / 7%);
  border-radius: 4px;
}
.card img {
  margin-bottom: 0;
  position: relative;
  top:  -8px;
}
.card h3 {
  font-weight: normal;
  color: var(--dc-slate);
  font-size: 1.25rem;
  margin-bottom: 0;
}
.card p {
  padding: 0 0 0.7rem 0;
  font-size: .9rem;
  color:  var(--dc-slate);
  line-height: 1.2rem;
  font-family: var(--dc-font-primary);
}


/* STICKERS */
.sticker {
  border-radius: 50%;
  color: #fff;
  background-color: var(--dc-slate);
  width: 4rem; height:  4rem;
  display: inline-block;
  font-size: .8rem;
  padding-top: 1.2rem;
  text-transform: uppercase;
  text-align: center;
  vertical-align: middle;
  float: left;
  margin-right: 8px;
  position: relative;
  top: -.5rem;
}
.sticker .text {
  display: inline-block;
  line-height: .8rem !important;
  font-weight: bold;
}

/* STOCKISTS */
.page-chalk h5 {color: var(--dc-slate);}
ul.stockists {
  list-style: none;
  width: 100%;
}
ul.stockists li {
  margin-left: 0;
  margin-bottom: 1.3rem;
}
ul.stockists li a {
  font-weight: bold;
  color: var(--dc-slate);
  background-color: #f8f8f8;
}
ul.stockists a:hover {
  color: var(--dc-dark-orange);
    transition: .5s;
}
.country {
  font-size: 1.3rem;
  font-family:  var(--dc-font-primary);
  color: var(--dc-slate);
  text-transform: uppercase;
  white-space: nowrap;
}
.stockist {
  font-weight: normal;
  color: var(--dc-slate);
}
ul.stockists li.gap {
  margin-bottom: 4rem;
}

@media (min-width: 768px) {
  ul.stockists {
    padding: 1rem 0;
  }
  ul.stockists li {
    display: flex;
    align-items: flex-end;
    gap: 1%; /* this would remove GAP */
  }
  .country, .stockist {
    display: inline-block;
  }
  .country {
    width: 34%;
    overflow-x: hidden;
  }
  .stockist {
    width: 65%;
  }
  .country-name:after {
    font-size: .7rem;
    padding-top:  .1rem;
    color: #999;
    width: 0;
    overflow-x: hidden;
    content:      "................................................................................................................................................................................................................................................................................................................................................................"
  }
}
@media (min-width: 980px) {
  ul.stockists {
    max-width: 54rem;
    margin: 0 auto;
  }
}

.press-link {
  padding-top: .5rem;
  font-size: .9rem;
}

@media (max-width: 767px) {
  .press .tight {
    text-align: center;
  }
}

/* DETAILS */
details {
  margin-bottom: 1.5rem;
}

details > summary {
  background-color: var(--dc-mustard);
  color: var(--dc-slate);
  border-radius: 4px;
  display:  inline-block;
  padding:  2px 8px;
}
details > summary::after {
  content: ' (click to view)';
}
details[open] > summary {
  margin-bottom: 1rem;
}
details[open] > summary::after {
  content: ' (click to hide)';
}

/* CHAPTER CODE PAGES */
.header-chapter-code {
  padding: 1rem;
}
.header-chapter-code .instruction {
  display: block;
}
@media (min-width: 768px) {
  .header-chapter-code {
    padding: 3rem;
  }
  .header-chapter-code .instruction {
    display: inline;
  }
}
.header-chapter-code {
  background-image: url(/phpsite/images/headers/geometry.png);
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center center;
  text-align: center;
  font-weight: bold;
}
.header-chapter-code span.instruction {
  font-size: 1.5rem;
  position: relative;
  top: -.25rem;
  padding-right: .5rem;
}

.table-chapter-code {
  white-space: nowrap;
  overflow-x: auto;
  max-width: fit-content;
  background-color: #f8f8f8;
}
.table-chapter-code a         { color: #000 }
.table-chapter-code a:hover   { color: var(--dc-dark-orange); }
.table-chapter-code td,
.table-chapter-code th {
  white-space: nowrap;
  padding: .2rem 1rem;
  text-align: left;
}
.table-chapter-code td:first-child,
.table-chapter-code th:first-child {
  padding-right: 2rem;
}
.table-chapter-code td:last-child,
.table-chapter-code th:last-child {
  padding-left: 2rem;
}
.table-chapter-code .fas {
  margin-right: .5rem
}
.table-chapter-code th,
.table-chapter-code .title {
  font-weight: bold;
}
.table-chapter-code .link,
.table-chapter-code td.title code {
  font-family: var(--dc-font-monospace);
  font-size:  1rem;
  font-weight: normal;
}

.box-chapter-code {
  display: inline-block;
  margin: 0 auto;
  text-align: left;
}
a.btn-chapter-selector {
  background-color: var(--dc-light-grey);
  color: #000;
  border-radius: 4px;
  font-weight: normal;
  margin-bottom: .5rem;
}

span.btn {
  border-radius: 4px;
  margin-bottom: .5rem;
}
span.btn:hover {
  cursor: default;
}