/* innovativetio2.com — single hand-written stylesheet (no framework). Colours/spacing ported from the Bootstrap 3 site. */
:root {
  --nav-bg: #2e2e2e;
  --nav-hover: #000;
  --nav-fg: #ddd;
  --accent: #ff8c00;
  --footer-bg: #414141;
  --footer-fg: #efefef;
  --band-bg: #e6e6e6;
  --text: #333;
  --muted: #8c8c8c;
  --rule: #eee;
  --link: #337ab7;
  --link-hover: #23527c;
  --success: #3c763d;
  --danger: #a94442;
  --max: 1170px;
  --content: 970px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; font: 14px/1.43 var(--font); color: var(--text); background: #fff;
  -webkit-font-smoothing: antialiased; display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--link); text-decoration: none; }
a:hover, a:focus { color: var(--link-hover); text-decoration: underline; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 20px 0; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.1; margin: 20px 0 10px; }
h1 { font-size: clamp(30px, 5vw, 50px); }
h2 { font-size: clamp(24px, 3.5vw, 30px); }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
p { margin: 0 0 10px; }
sub { font-size: 75%; line-height: 0; vertical-align: -.25em; }
abbr[title] { text-decoration: underline dotted; cursor: help; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 15px; }
.content { max-width: var(--content); margin: 0 auto; padding: 0 15px; }
.content--wide { max-width: var(--max); }
.content--article { max-width: 1045px; }   /* the Bootstrap col-lg-11 column of the old article pages */
.divider { height: 50px; }
.page-header { padding-bottom: 9px; margin: 40px 0 20px; border-bottom: 1px solid var(--rule); text-align: center; }
.page-header h1, .page-header h2 { margin-top: 0; }
.lead { font-size: 21px; font-weight: 300; line-height: 1.4; margin-bottom: 20px; }
.center { text-align: center; }
.section-title { font-size: 38px; font-weight: 500; margin: 0 0 10px; }
.prose p, .prose li { font-size: 18px; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose li { margin-bottom: .5em; }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: var(--nav-bg); font-weight: 700; }
.nav ul { list-style: none; margin: 0 auto; padding: 0; max-width: var(--max); display: flex; }
.nav li { flex: 1 1 0; text-align: center; }
.nav a { display: block; padding: 15px 8px; color: var(--nav-fg); line-height: 20px; }
.nav a:hover, .nav a:focus, .nav a[aria-current] { background: var(--nav-hover); color: #fff; text-decoration: none; }
.nav a.accent { color: var(--accent); }
.nav-toggle { position: absolute; left: -9999px; }
.nav-burger { display: none; }
@media (max-width: 767px) {
  .nav ul { display: none; flex-direction: column; }
  .nav-toggle:checked ~ ul { display: flex; }
  .nav li { text-align: left; }
  .nav a { padding: 10px 15px; }
  .nav-burger { display: block; width: 44px; height: 44px; margin: 4px 8px 4px auto; padding: 12px 10px; cursor: pointer; border-radius: 4px; border: 1px solid #333; }
  .nav-burger span { display: block; width: 22px; height: 2px; margin-bottom: 4px; background: #fff; border-radius: 1px; }
  .nav-toggle:focus-visible ~ .nav-burger { outline: 2px solid var(--accent); }
}

/* ---------- home masthead / carousel ---------- */
.masthead { position: relative; background: #333; color: #fff; }
.masthead .logo {
  position: absolute; top: 70px; left: 0; right: 0; z-index: 2; text-align: center;
  font-size: clamp(24px, 4vw, 40px); font-weight: 600; color: var(--accent); padding: 0 15px; pointer-events: none;
}
.carousel { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: min(600px, 70vh); }
.carousel::-webkit-scrollbar { display: none; }
.carousel figure { flex: 0 0 100%; margin: 0; position: relative; scroll-snap-align: start; background: #bbb; }
.carousel img { width: 100%; height: 100%; object-fit: cover; }
.carousel figcaption { position: absolute; left: 0; right: 0; bottom: 20%; text-align: center; padding: 0 15px; text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.carousel figcaption h2 { color: #fafafa; font-size: clamp(24px, 4vw, 30px); margin: 0; }
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 15%; max-width: 90px; height: 100%; top: 0; transform: none;
  border: 0; background: linear-gradient(to right, rgba(0,0,0,.4), transparent); color: #fff; font-size: 30px; cursor: pointer; opacity: .6;
}
.carousel-btn:hover { opacity: 1; }
.carousel-btn.next { right: 0; background: linear-gradient(to left, rgba(0,0,0,.4), transparent); }
.carousel-btn.prev { left: 0; }
.no-js .carousel-btn { display: none; }

/* ---------- home sections ---------- */
.band { background: var(--band-bg); padding: 20px 0 30px; }
.hero-band { min-height: 400px; background: url(/static/img/optimized/3D_plant.jpg) center/cover no-repeat; }
@media (min-width: 768px) { .hero-band { background-attachment: fixed; } }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 30px; list-style: none; margin: 0; padding: 0; }
@media (max-width: 480px) { .cards { grid-template-columns: 1fr 1fr; gap: 10px; } }
.card { background: #fff; border-radius: 4px; box-shadow: 0 1px 1px rgba(0,0,0,.05); overflow: hidden; }
.card a { display: block; color: var(--text); }
.card a:hover { text-decoration: none; color: var(--link-hover); }
.card img { width: 100%; aspect-ratio: 600 / 400; object-fit: cover; background: #ddd; }
.card p { padding: 15px; margin: 0; font-size: 14px; }
.home-section > h2 { font-size: 38px; font-weight: 500; margin: 0 0 10px; }
.about img { width: 100%; }
.about p { font-size: 18px; }
.social { display: flex; justify-content: center; gap: 12px; list-style: none; padding: 0; margin: 30px 0; }
.social img { width: 57px; height: 57px; }

/* ---------- contact form ---------- */
.contact { display: grid; grid-template-columns: 3fr 1fr; gap: 30px; }
@media (max-width: 767px) { .contact { grid-template-columns: 1fr; } }
.contact address { font-style: normal; font-size: 18px; margin-top: 60px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; }
.form-grid .full { grid-column: 1 / -1; }
.form-grid input, .form-grid textarea {
  width: 100%; padding: 6px 12px; font: inherit; color: #555; background: #fff; border: 1px solid #ccc; border-radius: 4px; box-shadow: inset 0 1px 1px rgba(0,0,0,.075);
}
.form-grid input:focus, .form-grid textarea:focus { border-color: #66afe9; outline: 0; box-shadow: 0 0 6px rgba(102,175,233,.6); }
.form-grid textarea { min-height: 100px; resize: vertical; }
#email-hp { position: absolute; left: -9999px; }        /* honeypot: must stay empty */
.btn { display: inline-block; padding: 6px 12px; font-weight: 400; border: 1px solid #ccc; border-radius: 4px; background: #fff; color: var(--text); cursor: pointer; font: inherit; }
.btn:hover { background: #e6e6e6; border-color: #adadad; text-decoration: none; }
.btn[disabled] { opacity: .65; cursor: default; }
.form-msg { margin: 10px 0 0; font-size: 16px; }
.form-msg.ok { color: var(--success); }
.form-msg.err { color: var(--danger); }
.cf-turnstile { min-height: 65px; }

/* ---------- listings ---------- */
.list-item { margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.list-item h3 { font-size: 16px; margin: 0; padding: 10px 15px; background: #f5f5f5; border-radius: 4px; }
.list-item .date { font-size: 11px; color: var(--muted); margin: 8px 0 4px; white-space: nowrap; }
.list-item p { font-size: 18px; }

/* ---------- articles ---------- */
/* Sizes/colours follow the Bootstrap-era article pages: 14px body, 24px bold section headings, 18px #777 figure captions. */
.article-date { font-size: 20px; line-height: 28px; color: #6c7a78; text-align: right; margin-bottom: 8px; }
.article-meta { display: flex; align-items: center; gap: 12px; margin: 10px 0 20px; }
.article-meta img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; }
.article-author { font-weight: 700; }
.article-author-about { font-size: 12px; color: var(--muted); }
.article { font-size: 18px; line-height: 1.43; }   /* matches .list-item p — same size as the list-page teasers */
.article h3 { text-align: center; font-weight: 700; font-size: 24px; margin: 20px 0 10px; }
.article h4 { text-align: center; font-weight: 700; font-size: 18px; line-height: 1.43; margin: 0 0 10px; }
.article ol, .article ul { font-size: 1em; list-style-position: inside; padding-left: 40px; }
.article li { margin-bottom: 10px; }
.article img { height: auto; }
/* CKEditor inline styling kept by the extraction as classes */
.article .justify { text-align: justify; }
.article .right { text-align: right; }
.article .muted { color: #777; }
.article img.float-left { float: left; margin: 0 20px 10px 0; }
.article img.float-right { float: right; margin: 0 0 10px 20px; }
.article img.bordered { border: 1px solid #333; }
.article .clear, .article::after { content: ""; display: block; clear: both; }
.article iframe { max-width: 100%; }
.article .fig { margin: 0 0 1.5em; text-align: center; }
.article .fig img { max-width: 100%; height: auto; }
.article .fig figcaption { color: #777; font-size: 18px; font-weight: 500; line-height: 1.1; margin-top: .5em; }
.article .fig small { display: block; font-size: 9px; word-break: break-all; }
.article .fig.chart { max-width: 640px; margin-left: auto; margin-right: auto; }
.article .fig.chart svg { display: block; width: 100%; height: auto; }
.article .table-title { margin: 0 0 10px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec { border-collapse: collapse; width: 100%; font-size: 14px; margin-bottom: 20px; }
table.spec caption { caption-side: top; font-weight: 700; padding: 8px; border: 1px solid #000; border-bottom: 0; }
table.spec th, table.spec td { border: 1px solid #000; padding: 4px 8px; vertical-align: top; text-align: left; }
table.spec th { text-align: center; font-weight: 700; }
table.spec td:first-child { text-align: center; }
table.spec td[colspan] { text-align: left; }
table.spec colgroup + thead th, table.spec colgroup ~ tbody td { padding-bottom: 12px; }   /* Part-1 tables: fixed 752px columns, Word-export paragraph spacing */
table.spec:has(colgroup) { width: auto; max-width: 100%; }
table.spec.cells-center th, table.spec.cells-center td { text-align: center; padding: 8px; }
table.spec thead .info { background: #d9edf7; }
table.spec tbody .info { background: #1d1e1f; color: #fff; }
table.spec tbody .info a, table.spec tbody .info abbr { color: inherit; }
.cta { margin: 40px 0 0; padding: 20px; text-align: center; background: #ededed; font-size: 20px; }
.cta .btn { margin-left: 8px; }

/* ---------- mainstream-process tables ---------- */
table.tech { border-collapse: collapse; width: 100%; font-size: 14px; margin-bottom: 20px; background: #fff; }
table.tech th, table.tech td { border: 1px solid #ddd; padding: 8px; vertical-align: top; text-align: left; }
table.tech.condensed th, table.tech.condensed td { padding: 5px; }
table.tech thead th { border-bottom-width: 2px; vertical-align: bottom; }
table.tech tbody tr:nth-child(odd) { background: #f9f9f9; }
table.tech tbody tr:hover { background: #f5f5f5; }
table.tech td.info { background: #1d1e1f; color: #fff; }
table.tech td.grey { background: darkgrey; color: #000; }
table.tech td.aliceblue { background: aliceblue; color: #000; }

/* ---------- dossier ---------- */
.dossier .pitch p { font-size: 18px; font-weight: 700; font-style: italic; }
.dossier .text-success { color: var(--success); }
.dossier .text-danger { color: var(--danger); }
.dossier .text-attent { color: var(--accent); }
.dossier .text-attent-green { color: #5cb85c; }
.dossier ul { padding-left: 1.5em; }
.dossier li { font-size: 18px; font-weight: 700; margin-bottom: .5em; }
.dossier li ul li { font-weight: 400; font-style: italic; }
.dossier .center img { margin: 20px auto; }

/* ---------- footer ---------- */
.site-footer { background: var(--footer-bg); color: var(--footer-fg); margin-top: 50px; padding: 20px 15px; }
.site-footer p { max-width: var(--max); margin: 0 auto; color: #ccc; }
.to-top { position: fixed; bottom: 0; right: 6%; z-index: 10; padding: 4px 12px; background: #f2f3f2; color: #222; border-radius: 3px 3px 0 0; font-size: 20px; }
.to-top:hover { text-decoration: none; }

/* ---------- 404 ---------- */
.error-page { text-align: center; padding: 80px 15px; }
.error-page h1 { font-size: 80px; margin: 0; }

/* ---------- utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.slide { margin: 30px 0; text-align: center; }
.slide img { width: 100%; height: auto; }

/* ---------- pass 3: slide frames (SVG/HTML transcriptions of the PowerPoint slides) ---------- */
.slide-frame {
  display: grid; grid-template-columns: 56px 1fr; grid-template-rows: 1fr auto; gap: 14px;
  margin: 30px 0; text-align: left;
}
.slide-frame__timeline { grid-row: 1; display: flex; flex-direction: column; gap: 6px; }
.slide-frame__timeline span {
  flex: 1 1 0; display: flex; align-items: center; justify-content: center; min-height: 160px;
  writing-mode: vertical-rl; transform: rotate(180deg); padding: 12px 0; white-space: nowrap;
  font-size: 18px; line-height: 1; border: 2px solid #376092; border-radius: 2px;
}
.slide-frame__body { grid-column: 2; grid-row: 1; min-width: 0; display: flex; align-items: center; }
.slide-frame__body > * { width: 100%; }
.slide-frame__band {
  grid-column: 2; grid-row: 2; padding: 14px 10px; text-align: center; font-size: 22px;
  border: 2px solid; border-radius: 2px;
}
.slide-frame figcaption { grid-column: 1 / -1; color: #777; font-size: 14px; text-align: center; }
@media (max-width: 600px) {
  .slide-frame { grid-template-columns: 1fr; gap: 8px; }
  .slide-frame__timeline { grid-row: 1; flex-direction: row; }
  .slide-frame__timeline span { writing-mode: horizontal-tb; transform: none; min-height: 0; padding: 6px 10px; font-size: 14px; }
  .slide-frame__body { grid-column: 1; grid-row: 2; }
  .slide-frame__band { grid-column: 1; grid-row: 3; font-size: 16px; }
}

/* grade maps: hub (our grade) + market analogues */
.hubs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 20px; }
.hub { flex: 0 1 calc(50% - 10px); max-width: 560px; }
@media (max-width: 600px) { .hub { flex-basis: 100%; } }
.hubs--stagger { flex-direction: column; align-items: flex-end; }
.hubs--stagger .hub { flex-basis: auto; width: calc(50% - 10px); }
.hubs--stagger .hub:nth-child(even) { align-self: flex-start; }
@media (max-width: 600px) { .hubs--stagger .hub { width: 100%; } }
.hub svg { display: block; width: 100%; height: auto; }

/* grade specification tables */
table.spec.grades { font-size: 15px; margin: 0; }
table.spec.grades th, table.spec.grades td { border-color: #000; }
table.spec.grades thead th { background: #262626; color: #fff; font-weight: 700; font-size: 17px; }
table.spec.grades thead th[rowspan] { vertical-align: bottom; }   /* "#" and "Data" sit on the 2nd header line, level with the grade names (as on the slides) */
table.spec.grades td:first-child { width: 3.5em; }
table.spec.grades tbody th { text-align: left; font-weight: 400; background: inherit; color: inherit; }
table.spec.grades tr.apps td, table.spec.grades tr.apps th, table.spec.grades tr.spec td, table.spec.grades tr.spec th { background: #d9d9d9; }
table.spec.grades tr.props td, table.spec.grades tr.props th { background: #4d4d4d; color: #fff; }
table.spec.grades tr.apps td, table.spec.grades tr.props td, table.spec.grades tr.apps th, table.spec.grades tr.props th { vertical-align: bottom; padding-top: 16px; }
table.spec.grades ul { list-style: none; margin: 0; padding: 0; }
table.spec.grades li { margin: 0; }

/* nano-TiO2 grade groups (slide 0021) */
.nano-groups { display: flex; flex-wrap: wrap; gap: 30px 40px; align-items: flex-start; }
.nano-group { flex: 1 1 320px; max-width: 600px; padding: 12px 14px 8px; background: #ff0; border: 2px solid #376092; }
.nano-groups .nano-group:nth-child(2) { align-self: flex-end; margin-top: 60px; }
.nano-group__grades { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 4px; }
.nano-group__grades span { display: inline-block; padding: 6px 10px; background: #000; color: #fff; font-size: 22px; line-height: 1.1; }
.nano-group p { margin: 10px 0 0; text-align: center; font-size: 22px; line-height: 1.3; }
@media (max-width: 600px) {
  .nano-groups .nano-group:nth-child(2) { margin-top: 0; }
  .nano-group__grades span, .nano-group p { font-size: 17px; }
}

/* text-only slides (strategic technologies) */
.slide-bullets { font-size: clamp(18px, 2.4vw, 28px); line-height: 1.35; margin: 0; padding: 10px 0 10px 1.2em; }
.slide-bullets p { margin: 0 0 .6em; }
.slide-bullets ul { margin: 0 0 .6em; padding-left: 1.2em; }
.slide-bullets li { margin-bottom: .35em; }
div.slide-bullets { padding-left: 0; }
.slide-motto { font-size: 1.15em; margin-top: 1em !important; }
.slide-motto i { color: #f00; font-style: normal; }

/* charts (technical-info articles) and the home experience map */
.fig.chart svg, .fig.experience svg { display: block; width: 100%; max-width: 100%; height: auto; margin: 0 auto; }
.fig.chart { margin: 30px 0; text-align: center; }
.fig.chart figcaption { color: #777; font-size: 16px; margin-top: 8px; }
.fig.experience { margin: 20px auto; max-width: 900px; }

/* process flowchart (/tio2-process/) */
.fig.flowchart { margin: 20px 0; }
.fig.flowchart svg { display: block; width: 100%; height: auto; }
