/* update: 171023 1 */
#maincontent  {
  position: relative;
  max-width: 1390px;
  margin: 0 auto;
  background-color: #fff;
  height: auto !important;
  display:block;
  clear:both;
  padding: 40px 40px;
  -webkit-text-size-adjust: 100%;
  font-size:1.2rem;
  line-height: 1.8rem;
  color: #404040;
  overflow: hidden;
}
#maincontent:before, #maincontent:after {
  content: " ";
  display:table;
  box-sizing: inherit;
}
.title-row {
  width:100%;
}
h1.title, h1.title a { 
  font-family:"oreilly-urw-typewriter-narro",Georgia,serif; 
  font-weight:100; 
  font-size:3.4375rem; 
  line-height:1em; 
  letter-spacing:-.01em; 
  color:#d3002d; 
  margin: 0 0 30px;
}
#nav-row {
  list-style: none;
  display:block;
  margin: 0 -40px 40px;
  background-color: #f5f5f5;
  padding-left: 40px;
  padding-right: 40px;
}
#nav-row li {
  display:inline-block;
  height: auto; 
  vertical-align: top;
}
#nav-row li a {
  height: auto;
  background-color: #d3002d;
  color:#fff;
  text-transform: uppercase;
  border-right: 1px solid #fff;
  display:inline-block;
  font: 100%/1.4 'guardian-text-oreilly',open-sans,Helvetica,Arial,sans-serif;
  font-size: .6875rem;
  letter-spacing: .1em;
  padding: 8px 11px;
  float: left;
  margin-bottom: 1px; }
}
#nav-row li:first-child {
  border-left: none;
}
#nav-row li a:hover, 
#nav-row li a:active, 
#nav-row li a:focus {
  opacity:.9;
}

/*general content styles*/
.lsn {
  list-style: none;
  padding-left: 0;
}
.video {
  box-sizing: content-box;
  overflow: hidden;
  position:relative; 
  width:100%; 
  padding-bottom:56.5%;
  margin-bottom: 10px;
}
.video iframe, .video object {
  position:absolute; 
  height:100%; 
  width:100%; 
  top:0;
}
.col-1-2, .col-2-3, .col-1-3 {
  display: block;
  float: left;
}
.col-1-2 {
  width: 47%;
}
.col-2-3 {
  width: 63.6667%;
}
.col-1-3 {
  width: 30.3333%;
}
.mr {
  margin-right: 3%;
}
.ml {
  margin-left: 3%;
}
.mt {
  margin-top: 20px;
}
.mb {
  margin-bottom: 20px;
}
.hmt {
  margin-top: 10px;
}
.hmb {
  margin-bottom: 10px;
}
.nowrap {
  white-space: nowrap;
}
h2 {
  font-size: 1.8rem;
  margin-bottom: 20px;
  font-weight: normal; 
  margin-top: 1.5rem;
  line-height: 2.17rem;
}
#maincontent p {
  margin-bottom: 10px;
}
#maincontent p:last-child {
  margin-bottom: 0;
}
.content-row ul, .content-row ol {
  padding-left: 23px;
  margin-bottom: 10px; 
}
.content-row a, article p a {
  border-bottom: 1px solid #c9c9c9;
  cursor: pointer;
}
.radar .content-row a:hover, 
.radar .content-row a:active, 
.radar .content-row a:focus, 
.radar article p a:hover, 
.radar article p a:active, 
.radar article p a:focus { 
  color: #d3002d; border-bottom-color: #d3002d; 
}
.page-title {
  margin-top: 0;
  margin-bottom: 40px;
  font-size: 1.8rem;
}
.fwb {
  font-weight: bold;
}
.highlight {
  background-color: #f5f5f5;
  padding: 25px 30px;
}
.mtb {
  margin-top: 20px;
  margin-bottom: 10px;
}
a.no-under {
  border-bottom: none;
}
.content-row ul.lsn, .content-row ol.lsn {
  list-style: none;
  padding-left: 0;
}
.word-wrap {
  word-wrap: break-word;
  overflow-wrap: break-word;
}
ul.bullet {
  padding-left: 24px;
  margin-bottom: 10px;
}

.hero-image {
  position:relative;
  margin:0 0 10px;
  text-align:center;
}
.hero-image:before {
  content:"";
  position:absolute;
  z-index:0;
  left:0;
  top:0;
  height:100%;
  width:100%;
  background:transparent url(//cdn.oreillystatic.com/oreilly/images/hero-shop-1310x657.jpg) right top no-repeat;
  background-size:cover;
}
.hero-image .hero-heading {
  position:relative;
  z-index:1;
  padding:40px 40px 40px;
  color:#fff;
}
.hero-image .hero-heading h2 {
  max-width:800px;
  margin:0 auto 20px;
  font-size:2.5rem;
  line-height:1.15em;
}
.hero-image .hero-heading p {
  max-width:800px;
  margin:0 auto 20px;
  font-size:1.5rem;
}
.hero-image .cta-signup {
  position:relative;
  z-index:1;
  margin-top:40px;
}
.hero-image .cta-signup .btn, .hero-image .cta-signup .btn:focus {
  display:inline-block;
  background:#d3002d;
  margin:0 0 10px;
  padding:12px 20px 18px;
  border-radius:2px;
  border-bottom:0;
  font-size:1.5rem;
  line-height:1.1em;
  color:#fff;
}
.hero-image .cta-signup .btn:hover, .hero-image .cta-signup .btn:active {
  color:#fff;
  background:#9F0027;
  border-bottom:0;
}
.hero-image .cta-signup p {
  text-transform:uppercase;
  font-size:.875rem;
  line-height:1em;
}
.hero-image .hero-options {
  position:relative;
  z-index:1;
  background:rgba(255,255,255,.83);
  padding:40px 20px 40px;
  overflow:hidden;
}
.hero-image .hero-options--section {
  float:left;
  margin:0 20px;
  width:calc(33.33% - 40px);
}
.hero-image .hero-options--section h3 {
  margin:0 0 10px;
  font-size:1.125rem;
  line-height:1.2em;
  font-weight:bold;
  text-transform:uppercase;
}
.hero-image .hero-options--section p {
  margin:0;
  font-size:1.125rem;
  line-height:1.4em;
}

.shop-notice {
  background: #f5f5f5;
  padding:30px 40px 32px;
  margin:0 0 10px;
}
.shop-notice h2 {
  margin:0 0 5px;
  font-size:1.5rem;
  font-weight:bold;
}
.shop-notice p {
  margin:0;
  font-size:1.125rem;
}


/* Carousel */
.carousel-module { position:relative; border-bottom:1px solid #ddd; margin:0 0 10px; overflow:hidden; }
.carousel-module:before, .carousel-module:after { content:""; display:block; position:absolute; z-index:0; top:0; left:0; height:100%; width:1px; background-color:#ddd; }
.carousel-module:after { left:auto; right:0; }
.carousel-module .header {
  position:relative;
  z-index:1;
  font-size: 1.125rem;
  padding: 6px 15px 10px;
  background-color: #ddd;
}
.carousel-container {
  position:relative;
  z-index:1;
  width: calc(100% + 8px);
  left:-4px;
  overflow:hidden;
  padding:0;
  box-sizing:content-box !important;
}
.carousel {
  width:0%;
  position:relative;
  margin-left:0;
  overflow:hidden;
}
.carousel-item {
  width:0%;
  padding:0 4px;
  float:left;
  box-sizing:border-box !important;
}
.carousel-item .block {
  display:block;
  height:120px;
  padding:10px;
  background-color:rgba(0,0,0,.05);
  border-bottom: 0;
  text-align:center;
  white-space:nowrap;
  box-sizing: content-box !important;
}
.carousel-item .block:hover {
  background-color:rgba(0,0,0,.07);
  text-decoration: none;
  border-bottom: 0;
}
.carousel-item .block:before {
  content:"";
  height:100%;
  display:inline-block;
  vertical-align:middle;
}
.carousel-item .block img {
  display:inline-block;
  vertical-align:middle;
  max-width:100%;
  max-height:100%;
  margin:0 auto;
}
.carousel-item .metadata {
  display:block;
  margin:4px 0;
}
#maincontent .carousel-item .metadata .title {
  display:block;
  margin:0;
  padding:0 4px;
  text-align:center;
  font-size:0.75rem;
  line-height:1rem;
}
.carousel-item a {
  color:#222;
  text-decoration:none;
  border-bottom:0;
}
.carousel-item a:hover {
  color:#d3002d;
  text-decoration:none;
  border-bottom:0;
}
.carousel-container .dots {
  width:100%;
  visibility:hidden;
  text-align:center;
}
.carousel-container .dots a {
  display:none;
}
.carousel-container .dots a.dot {
  display:inline-block;
  height:10px;
  width:10px;
  padding:5px;
  border-bottom:0;
  box-sizing: content-box !important;
}
.carousel-container .dots a.dot:hover {
  border-bottom:0;
}
.carousel-container .dots a.dot:before {
  display:block;
  content:"";
  height:10px;
  width:10px;
  background:rgba(0,0,0,.1);
  -webkit-border-radius:50%;
  -moz-border-radius:50%;
  border-radius:50%;
}
.carousel-container .dots a.dot:hover:before {
  background:rgba(0,0,0,.2);
}
.carousel-container .dots a.dot.current:before, .carousel .dots a.dot.current:hover:before {
  background:rgba(0,0,0,.3);
}
.carousel-container .arrow {
  display:block;
  position:absolute;
  top:20px;
  height:100px;
  width:30px;
  background:rgb(255,255,255);
  opacity:0;
  border-bottom:0;
  -webkit-box-shadow:0 0 6px 0 rgba(0,0,0,0.3);
  -moz-box-shadow:0 0 6px 0 rgba(0,0,0,0.3);
  box-shadow:0 0 6px 0 rgba(0,0,0,0.3);
  -webkit-transition:opacity .2s;
  transition:opacity .2s;
}
.carousel-container .arrow:hover {
  border-bottom:0;
}
.carousel-container:hover .arrow {
  opacity:.75;
}
.carousel-container:hover .arrow:hover {
  opacity:.95;
}
.carousel-container:hover .arrow.hidden, .carousel-container:hover .arrow.hidden:hover {
  opacity:.5;
}
.carousel-container .arrow.left {
  left:4px;
  -webkit-border-top-right-radius:8px;
  -webkit-border-bottom-right-radius:8px;
  -moz-border-radius-topright:8px;
  -moz-border-radius-bottomright:8px;
  border-top-right-radius:8px;
  border-bottom-right-radius:8px;
}
.carousel-container .arrow.right {
  right:4px;
  -webkit-border-top-left-radius:8px;
  -webkit-border-bottom-left-radius:8px;
  -moz-border-radius-topleft:8px;
  -moz-border-radius-bottomleft:8px;
  border-top-left-radius:8px;
  border-bottom-left-radius:8px;
}
.carousel-container:hover .arrow:before {
  display:block;
  content:"";
  width:12px;
  height:21px;
  margin:40px 0 0 9px;
}
.carousel-container:hover .arrow.left:before {
  background:transparent url(//cdn.oreillystatic.com/oreilly/images/carousel-arrow-left.svg) 0 0 no-repeat;
  opacity:.75;
}
.carousel-container:hover .arrow.right:before {
  background:transparent url(//cdn.oreillystatic.com/oreilly/images/carousel-arrow-right.svg) 0 0 no-repeat;
  opacity:.75;
}
.carousel-container:hover .arrow.hidden:before {
  opacity:.25;
}
/* End Carousel */

/* Search Field */
.search {
  float: none;
}
.searchInput {
  float: left;
  display: block;
  width: calc(100% - 117px);
}

#search-form {
  position: absolute;
  top: 47px;
  right: 40px;
  width: 100%;
  max-width: 475px;
  margin-bottom:12px;
}

#search-field input {
  background: #F1F1F1;
  border-radius: 2px;
  font-size: 0.8rem;
  color: #444;
  letter-spacing: 0;
  line-height: 1.2rem;
  border: 0;
  width: 100%;
  height: 2.7rem;
  padding-left: 1rem;
  display: inline-block;
}

#search-button {
  width: 6.5rem;
  height: 2.7rem;
  background: #444;
  color: #fff;
  font-size: 0.8rem;
  text-align: center;
  margin-left: 0.8rem;
  display: block;
  float: right;
  border: none;
  cursor: pointer;
}
@media (max-width: 930px) {
  #search-form {
    position: relative;
    display: block;
    top: auto;
    right: auto;
    margin-top: 0;
  }
}

/* End Search Field */


@media (max-width: 1120px) {
  .hero-image:before {
    display:none;
  }
  .hero-image .hero-heading:before {
    content:"";
    position:absolute;
    z-index:0;
    left:0;
    top:0;
    height:100%;
    width:100%;
    background:transparent url(//cdn.oreillystatic.com/oreilly/images/hero-shop-1310x657.jpg) right top no-repeat;
    background-size:cover;
  }
  .hero-heading--section {
    position:relative;
    z-index:1;
  }
  .hero-image .hero-options {
    background:#ddd;
  }
}
@media (max-width: 940px) {
  #nav-row {
    margin-bottom: 10px;
    background-color: #fff;
  }
  #nav-row li {
    margin-right: 5px;
    margin-bottom: 5px;
    border: none;
  }
}
@media (max-width: 875px) {
  #maincontent {
    padding: 20px;
  }
  .shop-notice {
    padding: 15px 20px;
  }
  .page-title {
    margin-top: 20px;
  }
  .hero-image .hero-heading {
    padding:20px;
  }
  .hero-image .hero-heading h2 {
    font-size:2rem;
  }
}
@media (max-width: 800px) {
  .col-1-2, .col-2-3, .col-1-3 {
    width: 100%;
  }
  .mr {
    margin-right: 0;
  }
  .ml {
    margin-left: 0;
  }
  .rmt {
    margin-top: 20px;
  }
  .hero-image .hero-options {
    padding:40px 0 40px;
    overflow:hidden;
  }
  .hero-image .hero-options--section {
    margin:0 0 40px;
    padding:0 20px;
    width:100%;
  }
  .hero-image .hero-options--section:last-of-type {
    margin-bottom:0;
  }
}
@media (max-width: 750px) {
  .title-row {
    padding-left: 0;
    padding-right: 0;
  }
  .page-title {
    margin-bottom: 20px;
  }
}
@media (max-width: 600px) {
 #maincontent p, #maincontent td, #maincontent blockquote, #maincontent ul li, #maincontent ol li, #maincontent dt, #maincontent dd {
  font-size: 1rem;
  line-height: 1.6rem;
  }
  #maincontent h2 {
    font-size: 1.4rem;
    line-height: 1.8rem;
  }
  #maincontent h3 {
    font-size: 1.2rem;
    line-height: 1.8rem;
  }
  .page-title {
    font-size:1.5rem;
  }
  .highlight {
    padding: 10px 15px;
  }
  #maincontent .hero-image .hero-heading h2 {
    font-size:1.875rem;
    line-height:1.2em;
  }
}

