/* Rules moved out of inline style= attributes in the .php and .js files.
   Loaded last; selectors are specific enough to beat style.css and the
   skel breakpoint sheets (style-desktop/-1000px/-mobile), which skel may
   insert after this file. */

/* ==== Base ==== */

/* body: overrides the #f0f0f0 background in style.css */
body.homepage { background: none; }

/* Header (head.php, head-ng.php, head-ng-demo.php, header.php) */
#header-wrapper > .container { padding: 1em 0 3em 0; }
.logo-header { position: absolute; }
#logo { height: 2em; }
#logo img { width: 8em; vertical-align: top; float: left; }

/* Footer (footer.php, footer-ng.php) */
#footer-wrapper { width: 100%; }
#copyright .footer-links { font-size: .75em; list-style: none; text-align: center; margin-left: 0; line-height: 1.4em; }

/* ==== Utilities (single purpose; combine freely) ==== */

/* text alignment */
.text-center, main .text-center { text-align: center; }
.text-left { text-align: left; }

/* text colour / weight / size */
.text-red   { color: red; }
.text-brand { color: #de5841; }
.fw-900     { font-weight: 900; }
main .font-1em { font-size: 1em; }   /* cancels style.css "b { font-size: 1.5em }" */

/* width and spacing */
.w-100      { width: 100%; }
.mt-1em     { margin-top: 1em; }
.mt-neg-1em { margin-top: -1em; }
.mb-0       { margin-bottom: 0; }
.ml-4em     { margin-left: 4em; }

/* ==== Page titles ==== */
/* page-title: most pages; page-title-red: TTS_for_windows, Using-Text-to-Speech-with-Hear2Read-TTS,
   NepaliTTSProject; home-title: index.php */
h1.page-title, h1.page-title-red, h1.home-title { font-size: 2em; line-height: 1.25em; }
h1.page-title-red, h1.home-title { color: #de5841; }
h1.page-title-red { margin: 1em 0; }
h1.home-title     { margin-top: -.5em; }

/* ==== Components, by page ==== */

/* Large unbulleted list of links (tutorials.php) */
ul.link-list { list-style-type: none; font-size: 1.5em; }

/* Centred tutorial video (the *_nvda_tutorial.php pages) */
.tutorial-video { width: 60%; margin-left: 20%; }
.tutorial-video video { width: 95%; }

/* "Get it here" NVDA Addon link block (TTS_for_windows.php) */
.get-it-here { text-align: center; margin-bottom: 1em; }
.get-it-here h3 { text-align: center; margin-bottom: 1em; }
.get-it-here img { width: 25%; }

/* Side images in body text (about.php) */
.side-img-left  { float: left;  width: 15%; margin-right: 1em; }
.side-img-right { float: right; width: 15%; margin-left: 1em; }

/* Contact form send button (h2r_sendmail.php) */
.send-button { width: 15%; }
.send-button input { width: 100%; }

/* Home page intro band (index.php): side image | title + video | side video */
.intro-side { float: left; }
.intro-side-left  { width: 14%; }
.intro-side-right { width: 15%; }
.intro-side img, .intro-side video { width: 100%; margin-bottom: -.7em; }
.intro-main { width: 70%; float: left; }
.intro-video-pad { padding-left: 5%; width: 100%; }
.intro-video { width: 60%; float: left; margin-left: 20%; }
.intro-video video { display: block; }
h3.intro-note { font-size: 1em; margin-top: .5em; }

/* news.php */
table.news-table td     { text-align: left; }
table.news-table td img { vertical-align: bottom; }
.news-summary           { margin-left: 1em; }
.news-summary p         { font-size: .9em; line-height: 1em; margin-bottom: 0; }

/* NVDA_Addon.php */
ol.store-steps { list-style: decimal; }
ol.store-steps li { text-align: left; margin-left: 5em; }
ul.install-steps li { text-align: left; margin-left: 2em; }

/* ==== TTS demo pages ==== */

/* ng-tts-demo-common-code.php and the archive *-text-to-speech-demo pages */
input.demo-icon-btn { border: 0; margin: -.5em 0 0 0; }
#user-info input.demo-user-input { width: 10em; }
button.demo-btn { font-size: 1.1em; color: #de5841; }

/* HTML built by js/test-speech.js and js/test-speech-ng.js */
p.msg-error, p.msg-info { margin-top: 0; text-align: center; }
p.msg-error { color: red; }
p.msg-info  { color: #00548b; }
ol.example-list { padding-left: 1.5em; list-style: decimal; }
ol.example-list li { margin-bottom: .5em; }
ol.example-list a { text-decoration: none; }
/* ng2 pages (prototype-common-code-ng2.php): list sits in the 9em inner box */
.ng2-examples ol.example-list { font-size: 1.2em; line-height: 1.2em; }
/* test-speech-ng.js writes the numbers itself (browser list numbering did not show) */
ol.ex-numbered { list-style: none; padding-left: 0; }
ol.ex-numbered li { padding-left: 2.5em; text-indent: -2.5em; }
ol.ex-numbered .ex-num { display: inline-block; width: 2.5em; padding-right: .5em; text-align: right; text-indent: 0; }
div.comment-row { width: 100%; }
div.comment-row .comment-word-col { width: 15%; float: left; }
div.comment-row .comment-word-col input { float: left; width: 100%; }
div.comment-row .comment-word-col input, div.comment-row textarea { border: 3px solid; border-radius: 5px; }
div.comment-row .comment-word-col button { display: inline; vertical-align: -.5em; margin-right: .5em; width: 90%; }   /* + demo-btn */
div.comment-row textarea { width: 85%; }

/* Language lists: lang-link (js/test-speech-ng.js populate_NG_languages),
   lang-link-home (populate_NG_languages2, index.php) */
/* lang-link is also used on text-to-speech-demo.php (archive picker) */
h3.lang-link { line-height: 1.2em; font-weight: 400; }
h3.lang-link-home { line-height: 2em; font-weight: 700; font-size: 1em; text-align: left; }
span.lang-link-sub { font-size: .6em; vertical-align: .1em; }

/* Original_NVDA_Addon.php: release-notes changelog tables (built in PHP) */
table.changelog { text-align: left; }
tr.changelog-head { font-weight: bold; }
tr.changelog-head td:first-child { padding-right: 4em; }
table.changelog br { line-height: 220%; }
td.changelog-entry { padding-bottom: 1em; }
