.pane-inset a {
    text-decoration: underline;
}

.search {
    float: right;
}

#search-button {
    float: right;
}

.searchInput {
    display: inline-block;
}

.yui-ac-content {
    position: absolute;
    width: 20em;
    border: 1px solid #808080;
    background-color: #fff;
    overflow: hidden;
    z-index: 9050;
}

.yui-ac-content li {
    margin: 0;
    padding: 2px 5px;
    cursor: default;
    white-space: nowrap;
}

.yui-ac-content li:hover {
    background-color: #bbb;
    color: #fff;
}

#autocomplete {
    top: 0;
    left: 0px !important;
    width: 158px !important;
}

#maincontent {
    position: relative;
}

h2.title {
    font-family: "oreilly-urw-typewriter-narro",Georgia,serif;
    font-weight: 100;
    font-size: 3.4375rem;
    line-height: 1em;
    letter-spacing: -.01em;
    color: #b9002d;
    margin: 0 0 30px;
}

.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;
}

#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;
    /*padding-top: 0.5rem;*/
    margin-left: 0.8rem;
    display: block;
    float: right;
    border: none;
    cursor: pointer;
}

#safari-link {
    width: 100%;
    display: block;
    text-decoration: none;
    line-height: 1.4rem;
    color: #b9002d;
    background-color: #f3f3f3;
    padding: 1rem;
    text-align: left;
}

#trial-btn {
    color: #fff;
    background: #b9002d;
    font-weight: bold;
}

#buy-on-amazon {
    color: #8a8a8a;
    border: 1px solid #8a8a8a;
    margin-bottom: 1rem;
}

.btn {
    padding: 0.7rem 0.9rem;
    display: block;
    margin: 1rem auto 0;
    text-align: center;
    width: 11.3rem;
    font-size: 1rem;
}

.title-row {
    border-bottom: 1px solid #e5e5e5;
    padding-bottom: 1.5rem;
    margin-bottom: 2rem;
}

#product-image-detail-links {
    position: relative;
}

#product-image {
    float: left;
    padding-right: 2rem;
    padding-bottom: 2rem;
}

#product-detail {
    width: calc(100% - 26rem);
    padding-right: 2rem;
    overflow-y: hidden;
    min-height: 440px;
}

#product-detail:after {
    content: "";
    display: table;
    clear: both;
}

#product-links {
    position: absolute;
    top: 0;
    right: 0;
    width: 13.5rem;
    border: 1px solid #efefef;
    height: auto;
    margin-bottom: 2rem;
}

#download-link, #customer-service, #errata-link, p.customer-service-link a {
    color: #1e9999;
    font-weight: bold;
    text-decoration: none;
}


#more-info {
    font-size: 0.77rem;
    padding: 0.5rem 1rem 1rem;
    line-height: 1rem;
    border-top: 1px solid #efefef;
    margin-top: 0;
}

#download-link {
    display: block;
    margin-top: 0.5rem;
}

#product-detail #more-info p {
    font-size: 0.74rem;
    font-weight: bold;
    margin-top: 0.5rem;
    line-height: 1.2rem;
}

#product-detail h1 {
    font-size: 1.5rem;
}

#product-detail h3 {
    font-size: 1.2rem;
    font-weight: normal;
    line-height: 1.4rem;
}

#product-description, #product-detail p, #product-detail li {
    font-size: 0.9rem;
    line-height: 1.3rem;
}

#product-description h2 {
    font-size: 1rem;
    margin-top: 1rem;
}

#publisher-release-length {
    margin: 1rem 0;
}

#publisher-release-length a {
    text-decoration: underline;
}

.authors, .authors a {
    color: #888;
    margin-top: 0.5rem;
}

#product-description p, #product-description ul {
    margin-top: 1.2rem;
}

#product-description ul {
    padding-left: 1.2rem;
}

#toc {
    width: 51rem;
    border: 1px solid #efefef;
    margin-top: 3rem;
    clear: both;
}

#toc tr:last-child td, #toc-content li ol li:last-child {
    border-bottom: none;
}

#toc > h3 {
    padding: 1rem 0 1rem 1rem;
    border-bottom: 1px solid #efefef;
    font-size: 1.3rem;
}

#toc-content li, #toc-content li h3, #toc-content li h4 {
    font-size: 0.9rem;
    line-height: 1.3rem;
    font-weight: normal;
    text-indent: 1rem;
}

#video-toc {
    font-size: 0.9rem;
    line-height: 1.3rem;
    font-weight: normal;
}

#video-toc h3 {
    margin-left: 1rem;
}

#video-toc h4 {
    font-weight: normal;
}

.video-row div {
    display: inline-block;
    vertical-align: top;
}

.video-row {
    padding: 0.5rem 0;
    border-bottom: 1px solid #efefef;
}

.video-segment-title {
    width: 85%;
}

.video-segment-title h4, .video-segment-title a {
    margin-left: 2rem;
    display: block;
}

.video-duration {
    width: 10%;
    margin-left: 2rem;
}

#toc-content, #video-toc {
  height: 23rem;
  overflow-y: scroll;
}

#toc-content .chapter ol li, #toc-content .chapter ol li h4, #toc td h4 {
    text-indent: 2rem;
}

#toc-content li, #toc-content #chapters .part h3, .chapter > h3, #toc-content #chapters, .chapter > h4, #toc td {
    list-style: none;
    border-bottom: 1px solid #efefef;
    padding: 0.5rem 0;
}

#toc-content #chapters .part h3 {
    padding-top: 0;
}

#toc-content .chapter > h4, #toc-content .chapter-label, #toc-content li h3, #toc td h3 {
    font-size: 1rem;
    font-weight: bold;
}

.test {
    display: none;
}

.faq-list {
    padding-left: 1.5rem;
    margin-bottom: 1.5rem;
}

.faq-list li {
    margin-bottom: 0.5rem;
}

.faq-list li img {
    margin: 1rem 0;
    display: block;
}

#safari-signup.btn {
    width: auto;
}

@media (max-width: 930px) {
	#search-form {
	    position: relative;
	    display: block;
	    top: auto;
	    right: auto;
    }
}

@media (max-width: 875px) {
    #product-detail {
        overflow: initial;
        width: calc(100% - 215px);
    }
}

@media (max-width: 850px) {
	#product-image-detail-links {
	    padding-left: 1.2rem;
    }
	#product-links {
	    position: relative;
	    top: auto;
	    right: auto;
	    display: block;
	    height: auto;
	    clear: left;
	    width: 100%;
	    text-align: center;
    }
	#safari-link {
	    text-align: center;
    }
	#product-detail {
	    width: auto;
	    padding-right: 1rem;
    }
	#toc {
	    width: auto;
	    margin-left: 1.2rem;
	    margin-right: 1.2rem;
    }
}

@media (max-width: 750px) {
    section:nth-of-type(n+3) ul, section:nth-of-type(n+3) h2 {
        display: block;
    }
}

@media (max-width: 700px) {
    .video-segment-title, .video-duration {
        width: 100%;
        padding-left: 2rem;
    }
}

@media (max-width: 600px) {
    #maincontent h2.title {
        font-size: 3.4375rem;
        line-height: 1em;
    }
}

@media (max-width: 440px) {
    #publisher-release-length {
        clear: left;
    }
}

@media (max-width: 420px) {
    #product-detail h1 {
        display: inline-block;
    }
}

#banner {
    margin-bottom: 20px;
}

#banner img {
    width: 100%;
}

section#faq a, div.highlight a {
    color: #1e9999;
    font-weight: bold;
    text-decoration: none;
}

section#faq a:hover {
    text-decoration: underline;
}

h1#faq-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
}

#faq p.answer {
    margin-bottom: 30px;
}

.safari-perks {
    padding-left: 23px;
}

.safari-perks span {
    font-weight: bold;
}

#faq p {
    margin-bottom: 10px;
}

span.bold {
    font-weight: bold;
}

section#faq {
    width: 63.6667%;
    margin-right: 3%;
    float: left;
}

aside#cs-links {
    margin-left: 3%;
    width: 30.3333%;
    float: left;
}

div.highlight {
    background-color: #f5f5f5;
    padding: 25px 30px;
}

div.highlight ul {
    list-style: none;
    padding-left: 0;
}

div.highlight li {
    padding-bottom: 10px;
}

.money-back {
    margin-top: 10px;
    margin-bottom: 30px !important;
}

@media (max-width: 800px) {
    aside#cs-links {
        width: 100%;
        margin-left: 0;
        margin-top: 20px;
    }
    section#faq {
        width: 100%;
        margin-right: 0;
    }
}

@media (max-width: 750px) {
    section#faq {
        padding: 20px;
    }
    h1#faq-title {
        font-size: 1.5rem;
    }
    h3.question, .faq-list li {
        font-size: 1.2rem;
    }
    #faq p, .safari-perks, .related-links {
        font-size: 1rem;
        line-height: 1.6rem;
    }

}

div#more-info .customer-service-link, div#more-info .phone-numbers {
    line-height: 1.2rem;
}