html {
    -webkit-text-size-adjust: none; /* Prevent font scaling in landscape */
    background-color: #fff;
}
body {
    -webkit-text-size-adjust: 100%;
    width: 100%;
    margin: -20px 0 0 0;
}

/* display contents for mobile only */
.mobile-only {
    display: block;
}

/* hide contents from mobile only */
.mobile-hidden {
    display: none;
}

/* hide contents from mobile */
.menu-top,
.menu-bottom,
.menu-faq,
.search-suite,
#left-sidebar,
#right-sidebar,
form#content-search2 {
    display: none;
}

/* wrapper */
div#wrapper {
    min-width: 100%;
    min-height: 100%;
}
#wrapper-2 {
    min-width: auto;
}
#wrapper-3 {
    width: 100%;
}
body.forum div#wrapper-3 {
    margin-top: 46px;
}

div#wrapper-4 {
    width: 100%;
    margin: 0;
    padding: 0 18px;
    min-height: 0;
}

/* header */
#wrapper-2 header {
    height: 126px;
}
header .menu-bar {
    padding-right: 0;
}
.userAccount {
    width: 100%;
}
#main {
    min-height: 0 !important;
}

body.book #wrapper-4 #main,
body.homepage #wrapper-4 #main,
body.staticPage #wrapper-4 #main {
    min-height: auto !important;
}

#wrapper-2 footer {
    width: 100%;
    margin-left: 0;
    padding: 16px 22px;
}

/* hide my manual feature*/
.section-number,
.highlighted {
    background-color: #fff !important;
}
.bkmk-nte-box,
.myNotesPart {
    display: none;
}
div.toc-part span.notesCount,
div.toc-part span.bookmarkCount {
    display: none;
}

div.menu-bar,
body.faqPage div.menu-bar {
    width: 100%;
    height: 100%;
    padding-top: 0;
    background-color: #ffffff;
}
div.menu-bar #mobile-logo {
    background-color: #E5E84D;
    padding-top: 2%;

}
div.menu-bar #mobile-logo img {
    width: 100%;
    padding: 14px 18px 6px 18px;
}

/* mobile navigation Page */
div#mobile-nav-links {
    margin: 25px 0;
}
div.mobile-nav-link {
    border-bottom: 1px solid #ccc;
    padding: 4px 0;
}
div.mobile-nav-link:last-child {
    border-bottom: none;
}
div.mobile-nav-link a {
    font-family: "Source Serif 4 Bold", "Times New Roman", Times, serif;
    font-weight: 700;
    font-style: normal;
    font-stretch: normal;
    color: #000;
    font-size: 18px;
}

/* mobile nav arrows */
.navigation.mobile-only {
    margin: 20px 0 10px;
}
.navigation.mobile-only + h1 {
    margin-top: 10px !important;
}
.page-section + .navigation.mobile-only {
    margin-top: 14px;
}
span.arrow.nav-prev {
    border-width: 17px 34px 17px 0;
    border-color: transparent #000 transparent transparent;
}
span.arrow.nav-next {
    border-width: 17px 0 17px 34px;
    border-color: transparent transparent transparent #000;
}
.navigation.mobile-only a:first-child {
    margin-right: 20px;
}
.navigation.mobile-only a:hover {
    text-decoration: none;
}

/* trail */
nobr {
    white-space: normal;
}

/* toc */
body.bookToc.toc .title,
body.toc .title {
    width: 84%;
}

/* mobile-search-suite */
#mobile-search-suite {
    padding: 0 18px;
}

#mobile-search-suite form[name="para-search"] {
    float: right;
    margin-right: 37px;
}
#mobile-search-suite form[name="content-search"] {
    margin-right: 16px;
}
#mobile-search-suite .index {
    display: none;
}
#mobile-search-suite form input[name="goto"],
#mobile-search-suite form input[name="clause"] {
    height: 30px;
    margin: 18px 0;
    padding-top: 4px;
    font-size: 14px;
    border: 0;
}
#mobile-search-suite form span#search-glass {
    margin-left: -24px;
    margin-top: 26px;
}
#mobile-search-suite #autosuggest_container_header {
    margin-left: 0;
    margin-top: -19px;
}
span.goto-para {
    margin-top: 29px;
}

/* mobile nav bars */
#MenuToggle {
    position: absolute;
    right: 18px;
    padding: 0;
    margin-top: -43px;
}
#MenuToggle .icon-bar{
    display: block;
    width: 35px;
    height: 4px;
    position: relative;
    margin-bottom: 5px;
    background-color: #000;
    background-image: none;
    -webkit-border-radius: 1px;
    -moz-border-radius: 1px;
    border-radius: 1px;
}
#MenuToggle .icon-bar+.icon-bar {
    margin-top: 3px;
}
#MenuToggle,
#MenuToggle:hover,
#MenuToggle.active,
#MenuToggle:active,
#MenuToggle:hover,
#MenuToggle:focus,
#MenuToggle.disabled,
#MenuToggle[disabled] {
    border: 0;
    box-shadow: none;
    background: none;
}

#MenuToggle:hover {
    cursor: pointer;
}

/* home page, subscription page, faq pages */
#main div.div-link,
body.faqPage #wrapper-4 .page-header .div-link {
    float: none;
    width: 100%;
    height: auto;
    border-top: none;
    border-bottom: 1px solid #58646A;
}
div.div-link a {
    width: 100%;
    margin: 0;
    padding: 16px 0;
}
#main .div-link.middle {
    border-bottom: 1px solid #58646A;
}
#main div.div-link.content,
#main div.div-link.cg-bibliography,
body.faqPage #wrapper-4 .page-header .div-link.faq-subscribe {
    border-top: 1px solid #58646A;
}
body.faqPage .page-header,
#main #link-group.citation-guide {
    height: auto;
}

#main #subscribe-page .sub-button {
    display: block;
}

#main img {
    max-width: 100%;
    height: auto;
}
body.staticPage h1 + div.text-section > div.text > p.paft {
    margin-top: inherit;
    margin-bottom: inherit;
}

/* search */
#myManualSearchTab {
    display: none !important;
}
#searchPanels .tabs {
    height: auto;
    display: block;
}
#searchPanels .tabs li {
    width: 100%;
    height: 30px;
    font-size: 10px;
    padding-top: 10px;
    margin-bottom: 10px;
}
#searchPanels .tabs li:not(:first-child) {
    margin-left: 0;
}

/* video tutorial page */
body.staticPage #main iframe {
    max-width: 100vw;
    max-height: 56.25vw;
    width: 100%;
}

/* submit a question */
body.faqPage #main .form-row input, body.faqPage #main .form-row textarea {
    max-width: 400px;
    width: 100%;
}


/* footer */
footer {
    padding: 0 18px;
}
div.social-media-links {
    float: none;
}
div.footer-links a {
    display: block;
}
p.footer-links1, p.footer-links2 {
    display: inline;
}
p.copyright {
    width: 100%;
}

/* pages with footnotes */
.page-section .notes {
    margin-bottom: 20px;
}

/* long url */
.url {
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* table/example adjustment */
div#pn10024-sb01 td:nth-child(1) {
    width: 20%
}
div#pn10033-sb01 td:nth-child(1) {
    width: 14%
}
div#pn10049-sb01 td:nth-child(1) {
    width: 32%
}
div#pn10056-sb01 td:nth-child(1) {
    width: 42%
}
div#pn10048-sb01 table td:first-child {
    width: 40%;
}
div#pn10069-sb01 table td:nth-child(1) {
    width: 25%;
}
div#pn10069-sb01 table td:nth-child(2) {
    width: 14%;
}
.sidebar#pn10060-sb01 table {
    width: 130%;
}
.sidebar#pn10062-sb01 table {
    width: 130%;
}
.sidebar#pn10069-sb01 table {
    width: 150%;
}
div#pn10075-sb01 table, #pn10078-sb02 table {
    width: 100%;
}

/* 3.80, old 3.79 */
ul.none li.ul, ul.none li.ulf, ul.none li.ull {
    width: 100%;
}
/* 10.64, old 10.58 */
div#pn10064-sb01 td:nth-child(1) {
    width: auto;
    padding-right: 0;
}
div#pn10064-sb01.sidebar table {
    min-width: 310px;
}
/* 12.27, old 13.27 */
div#pn12027-sb01 {
    min-width: 400px;
}
/* 12.25, old 13.25 */
div#pn12025-sb01,
div#pn12025-sb02 {
    min-width: 428px;
}
/* 12.66, old 13.57 */
div#pn12066-sb01 {
    min-width: 449px;
}
/* 12.82, old 13.71 */
div#pn12082-sb01 {
    min-width: 330px;
}
/*1 3.37, old 14.34 */
div#pn13037-sb01 {
    min-width: 500px;
}
/* 5.44, old 5.41 */
div#pn05044-sb01 {
    min-width: 527px;
}
/* 5.148, old 5.143 */
div#pn05148-sb01 {
    min-width: 318px;
}
/* 5.229, old 5.222 */
div#pn05229-sb01 {
    min-width: 521px;
}
/* 11.132, old 11.122 */
div#pn11132-sb01 table tr td:nth-child(1),
div#pn11132-sb02 table tr td:nth-child(1) {
    min-width: 58px;
}
/* 15.69, old 16.61 */
div#pn15069-sb01 {
    /*min-width: 589px;*/
}

div#pn10063-sb01, div#pn10063-sb02 {
    min-width: 500px;
}
div#pn15038-sb01 table {
    width: 70%;
}

#pn07045-sb01 li.sbuls {
    margin-left: 8px;
}
#pn07045-sb02 li.sbuls {
    margin-left: 0;
}

@media only screen and (min-width: 545px) {
    /* table/example adjustment */
    div#pn10024-sb01 td:nth-child(1) {
        width: 10%
    }
    div#pn10033-sb01 td:nth-child(1) {
        width: 6%
    }
    div#pn10049-sb01 td:nth-child(1) {
        width: 20%
    }
    div#pn10056-sb01 td:nth-child(1) {
        width: 26%
    }
    div#pn10048-sb01 table td:first-child {
        width: 20%;
    }
    .sidebar#pn10060-sb01 table {
        width: 100%;
    }
    .sidebar#pn10062-sb01 table {
        width: 100%;
    }
    .sidebar#pn10069-sb01 table {
        width: 100%;
    }
    div#pn10075-sb01 table, #pn10078-sb02 table {
        width: 50%;
    }
}

/* adjust the search suite gradually */
@media only screen and (min-width: 981px) {
    #mobile-search-suite form {
        width: 48%;
    }
    #mobile-search-suite form input[name="goto"], #mobile-search-suite form input[name="clause"] {
        width: 95%;
    }
    #mobile-search-suite #autosuggest_container_header {
        width: 43.6%;
    }
}
@media only screen and (max-width:980px) and (min-width: 735px) {
    #mobile-search-suite form {
        width: 48%;
    }
    #mobile-search-suite form input[name="goto"], #mobile-search-suite form input[name="clause"] {
        width: 95%;
    }
    #mobile-search-suite #autosuggest_container_header {
        width: 43.6%;
    }
}
@media only screen and (max-width:734px) and (min-width: 545px) {
    #mobile-search-suite form {
        width: 47%;
    }
    #mobile-search-suite form input[name="goto"], #mobile-search-suite form input[name="clause"] {
        width: 94%;
    }
    #mobile-search-suite #autosuggest_container_header {
        width: 42%;
    }
}
@media only screen and (max-width:544px) and (min-width: 420px) {
    #mobile-search-suite form {
        width: 46%;
    }
    #mobile-search-suite form input[name="goto"], #mobile-search-suite form input[name="clause"] {
        width: 92%;
    }
    #mobile-search-suite #autosuggest_container_header {
        width: 39%;
    }
}
@media only screen and (max-width:419px) and (min-width: 370px) {
    #mobile-search-suite form {
        width: 45%;
    }
    #mobile-search-suite form input[name="goto"], #mobile-search-suite form input[name="clause"] {
        width: 92%;
    }
    #mobile-search-suite #autosuggest_container_header {
        width: 38%;
    }
}
@media only screen and (max-width:369px) and (min-width: 332px)  {
    #mobile-search-suite form {
        width: 44%;
    }
    #mobile-search-suite form input[name="goto"], #mobile-search-suite form input[name="clause"] {
        width: 92%;
    }
    #mobile-search-suite #autosuggest_container_header {
        width: 36%;
    }
}
@media only screen and (max-width:331px) {
    #mobile-search-suite form {
        width: 43%;
    }
    #mobile-search-suite form input[name="goto"], #mobile-search-suite form input[name="clause"] {
        width: 91%;
    }
    #mobile-search-suite #autosuggest_container_header {
        width: 35%;
    }
}

/* Tools & Help page with small screen */
@media only screen and (max-width:525px) {
    div.help-tools-left, div.help-tools-right {
        clear: both;
        width: 100%;
    }
    body.bookToc.toc .title,
    body.toc .title {
        width: 70%;
    }
}

/* site alert */
#alert-bar {
    padding-top: 20px;
}

/* wild equations adjustment on mobile portrait mode */
@media only screen and (max-width:525px) {
    .sidebar#pn07045-sb01 mjx-math {
        font-size: 70%;
    }
    .sidebar#pn07045-sb02 mjx-math {
        font-size: 60%;
    }

    #pn10070-sb01 table tr td:nth-child(2) div {
        margin-left: 10px;
        text-indent: -10px;
    }
    div#pn10063-sb01 {
        min-width: 110%;
    }
    div#pn10063-sb01 td:nth-child(1) {
        width: 52%;
    }
    div#pn10063-sb02 {
        min-width: 420px;
    }
    .sidebar#pn10069-sb01 table {
        width: 120%;
    }
    div#pn15038-sb01 table {
        width: 120%;
    }
    div#pn15052-sb01 table {
        width: 400px;
    }
    div#pn15052-sb01 td:nth-child(1) {
        width: 44%;
    }
    .sidebar#pn10060-sb01 table {
        width: 120%;
    }
    div#pn10060-sb01 table tr td:nth-child(1) {
        width: 50%;
    }
    div#pn10060-sb01 table tr td:nth-child(2) {
        width: 28%;
    }
    div#pn10060-sb01 table tr td:nth-child(3) {
        width: 22%;
    }
}