/* jdmfsm.info: Toyota document pages on a phone (tools/add_mobile_css.py) */
@media (max-width:700px){
body{margin:0 6px!important}
body:has(div#contentsBody){margin:0!important}
img{max-width:100%!important;height:auto!important;box-sizing:border-box}
img.full{margin-left:0!important}
div.full,div.half{float:none!important;width:auto!important}
table{display:block;overflow-x:auto;width:fit-content!important;max-width:100%!important}
td,th{word-break:normal;overflow-wrap:break-word;font-size:11.5px!important}
td *,th *{font-size:inherit!important}
ol,ul{margin-left:0!important;padding-left:16px!important}
li table:not(td table){margin-left:-16px!important;max-width:calc(100% + 16px)!important}
li li table:not(td table){margin-left:-32px!important;max-width:calc(100% + 32px)!important}
li li li table:not(td table){margin-left:-48px!important;max-width:calc(100% + 48px)!important}
li li li li table:not(td table){margin-left:-64px!important;max-width:calc(100% + 64px)!important}
pre{white-space:pre-wrap}
div#contentsBody{margin:0 8px!important}
div#contentsBody div.figureAPatternGroup{float:none!important;width:auto!important;max-width:100%;margin:6px 0 10px}
div#contentsBody div.figure,div#contentsBody div.aPattern,div#contentsBody div.bPattern,div#contentsBody div.cPattern,div#contentsBody div.dPattern,div#contentsBody div.graphic{width:auto!important;max-width:100%}
div#contentsBody table{display:block;max-width:100%;width:auto!important;overflow-x:auto}
}
/* The site look at every width (GTS pages: div#contentsBody), so a document reads as part of
   jdmfsm.info rather than Toyota's viewer: graph paper, a centred white panel, the site font,
   dark-red step headings. The breadcrumb bar carries inline styles, hence !important. */
/* on html, not body: Toyota's global.css gives html its own colour and body height:100%, so a
   body background stopped one screen down (the C-HR page was 5,132 px on an 844 px phone) */
html:has(div#contentsBody){background-color:#f7f6f2!important;
 background-image:linear-gradient(rgba(31,110,140,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(31,110,140,.09) 1px,transparent 1px)!important;
 background-size:26px 26px!important}
html body:has(div#contentsBody){margin:0!important;background:transparent!important}
div[data-crumb]{position:sticky;top:0;z-index:10;margin:0!important;padding:.6rem .9rem!important;
 font:14px/1.5 -apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;background:#f6f6f4!important}
div[data-crumb] *{font-family:inherit!important;font-size:inherit!important}
div[data-crumb] a:link,div[data-crumb] a:visited{color:#8b1a1a!important;text-decoration:none!important}
div[data-crumb] a:hover{text-decoration:underline!important}
body:has(div#contentsBody) div#wrapper{max-width:70rem;margin:0 auto!important;padding:.9rem;background:transparent!important}
body:has(div#contentsBody) div#body,body:has(div#contentsBody) div#contents{background:transparent!important}
div#contentsBody{background:#fff;border:1px solid #d8d8d8;border-radius:6px;padding:1rem 1.2rem}
div#contentsBody,div#contentsBody p,div#contentsBody li{font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif}
div#contentsBody p,div#contentsBody li{font-size:14px;line-height:1.5}
div#contentsBody h1{background:none!important;color:#1a1a1a!important;border:0!important;padding:0!important;
 font:700 1.2rem/1.35 -apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;margin:.2rem 0 1rem!important}
div#contentsBody p.step1{background:none!important;border:0!important;border-bottom:2px solid #8b1a1a!important;padding:0 0 .2rem!important}
div#contentsBody p.step1 span.titleText{color:#8b1a1a!important;font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;font-size:1rem!important;letter-spacing:.04em}
div#contentsBody div.step2Head{color:#8b1a1a!important}
div#contentsBody div.testtitle,div#contentsBody div.nextAction,div#contentsBody div.endAction{background:#f6f4f0!important;
 border:1px solid #e2ddd4!important;border-left:4px solid #8b1a1a!important;border-radius:3px;color:#1a1a1a!important}
div#contentsBody div.testtitle span.titleText,div#contentsBody div.nextAction span.titleText,div#contentsBody div.endAction span.titleText{
 font-family:-apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;padding-left:12px!important}
/* The breadcrumb bar as the site header, still CSS only: "Home" shows the manual's name
   (--jdmfsm-book, written per manual below) on its own line, the path under it in grey with the
   page's topic dark, a version span after it as a chip. The bar's own "›" text is hidden
   (font-size 0) and redrawn before each item, so the name line does not start the path with one. */
body:has(div#contentsBody) div[data-crumb]{font-size:0!important;line-height:0!important;padding:.55rem .9rem .6rem!important;color:#666!important}
body:has(div#contentsBody) div[data-crumb] > *{font-size:13.5px!important;line-height:1.55!important;vertical-align:middle}
body:has(div#contentsBody) div[data-crumb] > a:first-child{display:block;font-size:0!important;margin-bottom:.1rem}
body:has(div#contentsBody) div[data-crumb] > a:first-child::after{content:var(--jdmfsm-book,"Home");font-size:16px;font-weight:700;color:#1a1a1a;line-height:1.5}
body:has(div#contentsBody) div[data-crumb] > a:link:not(:first-child),body:has(div#contentsBody) div[data-crumb] > a:visited:not(:first-child){color:#666!important}
body:has(div#contentsBody) div[data-crumb] > a:hover{text-decoration:underline!important}
body:has(div#contentsBody) div[data-crumb] > a:hover:not(:first-child){color:#8b1a1a!important}
body:has(div#contentsBody) div[data-crumb] > :not(:first-child):not(span + span)::before{content:"\203A";margin:0 .45em;color:#aaa;font-weight:400;display:inline-block;text-decoration:none}
body:has(div#contentsBody) div[data-crumb] > a:nth-child(2)::before{content:none!important}
body:has(div#contentsBody) div[data-crumb] > span{color:#333!important;font-weight:400}
body:has(div#contentsBody) div[data-crumb] > span + span{font-size:11.5px!important;font-weight:500;line-height:1.5!important;margin-left:.5em;
 border:1px solid #c9c3b8;border-radius:999px;padding:0 .6em;background:#f6f4f0;color:#5a4a3a!important;white-space:nowrap}
/* The same site look for the other document pages that carry a breadcrumb bar: GSIC2
   (repair2/html) Toyota/Lexus and Hyundai shop manuals. No #contentsBody to make a panel of, so
   the body itself is the white page on the graph paper. Their bar's separators are elements
   (<span>›</span>), so items are the odd children and separators the even ones; the one after
   "Home" goes, as "Home" becomes the manual's name on a line of its own. */
html:has(body div[data-crumb]):not(:has(div#contentsBody)){background-color:#f7f6f2!important;
 background-image:linear-gradient(rgba(31,110,140,.09) 1px,transparent 1px),linear-gradient(90deg,rgba(31,110,140,.09) 1px,transparent 1px)!important;
 background-size:26px 26px!important}
html body:has(div[data-crumb]):not(:has(div#contentsBody)){max-width:70rem;margin:0 auto!important;padding:0 1.2rem 1.5rem!important;
 background:#fff!important;border-left:1px solid #d8d8d8;border-right:1px solid #d8d8d8;min-height:100vh;box-sizing:border-box}
body:not(:has(div#contentsBody)) div[data-crumb]{margin:0 -1.2rem 1rem!important;padding:.55rem 1.2rem .6rem!important;
 font-size:0!important;line-height:0!important;border-bottom:1px solid #d8d8d8!important}
body:not(:has(div#contentsBody)) div[data-crumb] > *{font:13.5px/1.55 -apple-system,"Segoe UI",Roboto,Arial,sans-serif!important;vertical-align:middle}
body:not(:has(div#contentsBody)) div[data-crumb] > a:first-child{display:block;font-size:0!important;margin-bottom:.1rem}
body:not(:has(div#contentsBody)) div[data-crumb] > a:first-child::after{content:var(--jdmfsm-book,"Home");font:700 16px/1.5 -apple-system,"Segoe UI",Roboto,Arial,sans-serif;color:#1a1a1a}
body:not(:has(div#contentsBody)) div[data-crumb] > a:first-child + span{display:none}
body:not(:has(div#contentsBody)) div[data-crumb] > span:nth-child(even){color:#aaa!important;margin:0 .45em}
body:not(:has(div#contentsBody)) div[data-crumb] > a:link:not(:first-child),body:not(:has(div#contentsBody)) div[data-crumb] > a:visited:not(:first-child){color:#666!important}
body:not(:has(div#contentsBody)) div[data-crumb] > a:hover:not(:first-child){color:#8b1a1a!important}
body:not(:has(div#contentsBody)) div[data-crumb] > span:nth-child(odd):last-child{color:#333!important;font-weight:400!important}
@media (max-width:700px){
html body:has(div[data-crumb]):not(:has(div#contentsBody)){padding:0 .7rem 1rem!important;border:0}
body:not(:has(div#contentsBody)) div[data-crumb]{margin:0 -.7rem .8rem!important;padding:.5rem .7rem!important}
div#contentsBody h1{font-size:1.05rem!important}
body:has(div#contentsBody) div#wrapper{padding:.6rem}
div#contentsBody{padding:.7rem .6rem;margin:0!important}
}
:root{--jdmfsm-book:"2011 Veracruz EN 3.8 DOHC \b7  Shop Manual"}
