/*
Theme Name:   WikiPress Child
Theme URI:    https://example.com/wikipress-child
Description:  Child theme for WikiPress. Use this to safely customize styles, templates, and functions without editing the parent theme, so your changes survive WikiPress updates. Activate this theme instead of WikiPress and add your customizations here.
Author:       Phytosanitary
Author URI:   https://example.com
Template:     wikipress
Version:      1.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License:      GNU General Public License v2 or later
License URI:  https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  wikipress-child
Tags:         blog, news, education, two-columns, left-sidebar, right-sidebar, custom-colors, custom-logo, custom-menu, translation-ready

WikiPress Child Theme, (C) 2026.
Distributed under the terms of the GNU GPL v2 or later.
This is a child theme of WikiPress (Template: wikipress).
*/

/* ============================================================
   WikiPress Child Theme - Custom Styles
   ------------------------------------------------------------
   Add your CSS overrides below. This file loads AFTER the
   parent theme's stylesheet (assets/css/main.css), so anything
   you write here wins over the parent without needing !important.

   The parent exposes reusable CSS custom properties on :root.
   The cleanest way to re-brand is to override those variables.
   Common ones (see parent assets/css/main.css for the full set):

     --wikipress-primary        Link / accent color        (#0645ad)
     --wikipress-primary-hover  Link hover color           (#043a7a)
     --wikipress-text           Body text color            (#202122)
     --wikipress-heading        Heading color              (#000000)
     --wikipress-bg             Page background            (#ffffff)
     --wikipress-bg-off         Off-white background       (#f8f9fa)
     --wikipress-border         Border color               (#a2a9b1)
     --wikipress-font-content   Article font stack         (Georgia serif)
     --wikipress-font-ui        UI font stack              (system sans)
     --wikipress-font-size      Base font size             (16px)
     --wikipress-content-max    Article max width          (780px)
   ============================================================ */

/* ---- Example: re-brand the accent color -------------------
   Uncomment and change the values to match your palette.

:root {
	--wikipress-primary: #2e7d32;
	--wikipress-primary-hover: #1b5e20;
}
------------------------------------------------------------ */

/* ---- Example: tweak article typography --------------------

:root {
	--wikipress-font-content: "Merriweather", Georgia, serif;
	--wikipress-font-size: 17px;
}
------------------------------------------------------------ */

/* ---- Add your custom rules below this line ---------------- */

/* ChemSOF — an open engineering notebook. */
:root {
  --cs-paper: #f8f7f3;
  --cs-white: #fffefa;
  --cs-ink: #252e28;
  --cs-muted: #697067;
  --cs-line: #dedfd6;
  --cs-orange: #b54424;
  --cs-peach: #f4e6dc;
  --cs-green: #20392f;
  --cs-mono: 'Cascadia Code', 'Consolas', monospace;
  --wikipress-primary: #b54424;
  --wikipress-primary-hover: #87331c;
  --wikipress-heading: #252e28;
  --wikipress-text: #353d36;
  --wikipress-text-light: #697067;
  --wikipress-border: #cbd0c5;
  --wikipress-border-light: #dedfd6;
  --wikipress-bg: #f8f7f3;
  --wikipress-bg-off: #f0f0e9;
  --wikipress-accent: #eeeee6;
  --wikipress-font-ui: 'Segoe UI', Arial, sans-serif;
  --wikipress-font-content: 'Segoe UI', Arial, sans-serif;
  --wikipress-font-size: 17px;
  --wikipress-content-max: 780px;
}
html { scroll-padding-top: 110px; }
body.chemsof-design { background: var(--cs-paper); color: var(--cs-ink); font-size: 16px; line-height: 1.65; }
.chemsof-design .site { max-width: none; background: var(--cs-paper); overflow: clip; }
.chemsof-design .content-wrapper { display: block; max-width: none; }
.chemsof-design .site-main { padding: 0; background: transparent; }
.chemsof-design .cs-container { width: calc(100% - 112px); max-width: 1280px; margin-inline: auto; }
h1, h2, h3, h4, h5, h6 { font-weight: 600; color: var(--cs-ink); }
.chemsof-design h1, .chemsof-design h2 { border: 0; padding: 0; }
.chemsof-design a { color: var(--cs-ink); }
.chemsof-design a:hover { color: var(--cs-orange); text-decoration: none; }
.chemsof-design a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--cs-orange); outline-offset: 4px; }
.chemsof-design a:focus:not(:focus-visible) { outline: none; }
button, input, select, textarea { font-family: inherit; }
button { cursor: pointer; }
.cs-icon { display: inline-block; flex: 0 0 auto; vertical-align: middle; }
.cs-mono, .cs-kicker, .cs-eyebrow { font-family: var(--cs-mono); font-size: 10px; line-height: 1.7; letter-spacing: .09em; }
.cs-eyebrow { margin: 0 0 20px; font-size: 11px; color: var(--cs-orange); font-weight: 500; }
.cs-kicker { color: var(--cs-muted); font-size: 10px; }
.cs-button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; background: var(--cs-orange); color: white !important; border: 1px solid var(--cs-orange); border-radius: 3px; padding: 14px 23px; font-size: 13px; font-weight: 600; transition: background .2s, transform .2s; }
.cs-button:hover { background: #92381e; transform: translateY(-2px); }
.cs-button .cs-icon { width: 18px; height: 18px; }
.cs-button--light { background: #e9ece0; color: var(--cs-green) !important; border-color: #e9ece0; }
.cs-button--light:hover { background: white; }
.cs-text-link { display: inline-flex; align-items: center; gap: 17px; font-size: 13px; font-weight: 600; }
.cs-text-link .cs-icon { width: 19px; height: 19px; }

/* Global masthead. */
.chemsof-design .cs-header { height: 94px; background: var(--cs-paper); border-bottom: 1px solid var(--cs-line); box-shadow: none; backdrop-filter: none; }
.cs-header__inner { width: calc(100% - 112px); max-width: 1392px; height: 100%; margin: auto; display: flex; align-items: center; gap: 42px; }
.cs-brand { display: inline-flex; align-items: center; gap: 10px; font-size: 28px; font-weight: 700; line-height: 1; letter-spacing: -.065em; white-space: nowrap; }
.cs-brand__accent { color: var(--cs-orange); }
.cs-brand__mark { color: var(--cs-orange); display: inline-flex; padding-right: 2px; }
.cs-brand small { display: block; margin-top: 8px; font: 8px/1.1 var(--cs-mono); letter-spacing: .12em; color: var(--cs-muted); }
.cs-nav { display: flex; align-items: center; justify-content: center; gap: 28px; margin-inline: auto; }
.cs-nav > a { font-size: 12px; font-weight: 500; padding: 34px 0; position: relative; white-space: nowrap; }
.cs-nav > a[aria-current]::after { content: ''; width: 4px; height: 4px; position: absolute; border-radius: 50%; bottom: 24px; left: calc(50% - 2px); background: var(--cs-orange); }
.cs-header__actions { display: flex; align-items: center; gap: 22px; }
.cs-search-open { display: grid; place-items: center; border: 0; background: none; width: 32px; height: 36px; color: var(--cs-ink); }
.cs-search-open .cs-icon { width: 18px; }
.cs-header__cta { padding: 10px 14px; font-size: 11px; font-weight: 600; border: 1px solid #bdc3b6; display: inline-flex; align-items: center; gap: 14px; border-radius: 3px; white-space: nowrap; }
.cs-header__cta .cs-icon { width: 15px; height: 15px; }
.cs-menu-toggle { display: none; }
.cs-search-dialog { background: var(--cs-paper); border: 1px solid var(--cs-line); border-radius: 6px; padding: 35px; width: min(720px, calc(100% - 32px)); color: var(--cs-ink); }
.cs-search-dialog::backdrop { background: #13261ed9; backdrop-filter: blur(5px); }
.cs-search-dialog__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
.cs-search-dialog__top h2 { font-size: 27px; margin: 0; letter-spacing: -.04em; }
.cs-search-dialog__top button { border: 0; background: none; color: var(--cs-ink); font-size: 28px; line-height: 1; }
.cs-search-dialog > p { margin: 20px 0 0; font-size: 13px; color: var(--cs-muted); }

/* Home: typography, a process drawing, and a useful search. */
.cs-hero { display: grid; grid-template-columns: 1.14fr 1fr; gap: 70px; align-items: center; padding-block: 78px 73px; }
.cs-hero__copy { padding-block: 10px; }
.cs-hero__copy .cs-eyebrow { display: flex; gap: 9px; align-items: center; letter-spacing: .07em; }
.cs-hero__copy .cs-eyebrow > span { width: 6px; height: 6px; background: var(--cs-orange); border-radius: 50%; }
.cs-hero h1 { font-size: clamp(44px, 4.7vw, 68px); line-height: 1.08; font-weight: 500; letter-spacing: -.065em; margin: 26px 0; }
.cs-hero h1 em { font-family: Georgia, serif; color: var(--cs-orange); font-weight: 400; letter-spacing: -.06em; }
.cs-hero__description { font-size: 15px; line-height: 1.8; max-width: 455px; color: var(--cs-muted); margin-bottom: 31px; }
.cs-hero__actions { display: flex; align-items: center; gap: 30px; }
.cs-hero__notes { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; font-size: 10px; color: var(--cs-muted); }
.cs-hero__notes > span { display: inline-flex; gap: 5px; align-items: center; }
.cs-hero__notes .cs-icon { color: var(--cs-orange); width: 13px; height: 13px; }
.cs-engineering-panel { background-color: var(--cs-green); background-image: linear-gradient(#ffffff04 1px,transparent 1px),linear-gradient(90deg,#ffffff04 1px,transparent 1px); background-size: 22px 22px; color: #eef1e5; border-radius: 5px; padding: 25px 29px 21px; position: relative; box-shadow: 10px 10px 0 #e8e9df; }
.cs-engineering-panel__head { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid #ffffff25; padding-bottom: 19px; color: #b5c4b9; }
.cs-engineering-panel__head .cs-mono { font-size: 8px; }
.cs-status-dot { width: 5px; height: 5px; display: inline-block; background: #c3d2a4; border-radius: 50%; margin-right: 7px; }
.cs-engineering-panel__label { padding-top: 24px; }
.cs-engineering-panel__label > span { font: 8px/1.5 var(--cs-mono); letter-spacing: .13em; color: #bdc9bb; }
.cs-engineering-panel__label h2 { margin: 9px 0 -8px; font-size: 24px; line-height: 1.25; letter-spacing: -.035em; color: #f0f2e7; font-weight: 400; }
.cs-exchanger { display: block; width: 100%; height: auto; margin-block: 10px; overflow: visible; }
.cs-engineering-panel__result { padding-top: 18px; border-top: 1px solid #ffffff25; display: flex; align-items: center; justify-content: space-between; }
.cs-engineering-panel__result .cs-mono { display: block; font-size: 7px; color: #b9c7ba; }
.cs-engineering-panel__result strong { font-size: 39px; letter-spacing: -.035em; line-height: 1.5; font-weight: 400; }
.cs-engineering-panel__result strong small { font-size: 18px; color: #b9c7ba; }
.cs-engineering-panel__result > a { display: grid; place-items: center; border: 1px solid #b6c3ad80; border-radius: 50%; width: 42px; height: 42px; color: #e8eede; }
.cs-engineering-panel__result > a:hover { background: #f0f2e7; color: var(--cs-green); }
.cs-engineering-panel__equation { font: 10px/1.7 var(--cs-mono); color: #b9c7ba; margin-top: 8px; }
.cs-find { display: grid; grid-template-columns: 1fr 2fr; gap: 30px; align-items: center; border-block: 1px solid var(--cs-line); padding-block: 27px; }
.cs-find > div { display: flex; align-items: center; gap: 24px; }
.cs-find .cs-kicker { width: 92px; color: var(--cs-orange); font-size: 8px; }
.cs-find p { margin: 0; font-size: 12px; line-height: 1.6; color: var(--cs-muted); }
.chemsof-design .cs-search-form { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 18px; border: 1px solid #cfd2c7; border-radius: 3px; background: var(--cs-white); width: 100%; }
.cs-search-form > .cs-icon { width: 18px; height: 18px; color: #72796d; }
.chemsof-design .cs-search-form .search-field { border: 0; background: transparent; box-shadow: none; min-width: 0; flex: 1; padding: 8px 0; font-size: 12px; color: var(--cs-ink); width: 100%; }
.chemsof-design .cs-search-form .search-submit { display: inline-flex; gap: 15px; align-items: center; background: var(--cs-green); border: 0; border-radius: 2px; color: white; font-size: 11px; padding: 11px 17px; }
.cs-search-form .search-submit .cs-icon { width: 16px; height: 16px; }
.cs-section { padding-block: 73px; }
.cs-section-heading { display: flex; align-items: end; justify-content: space-between; gap: 35px; margin-bottom: 30px; }
.cs-section-heading .cs-eyebrow { margin-bottom: 12px; font-size: 9px; }
.cs-section-heading h2 { font-size: 35px; line-height: 1.15; letter-spacing: -.05em; font-weight: 500; margin: 0 0 12px; }
.cs-section-heading p:not(.cs-eyebrow) { color: var(--cs-muted); font-size: 13px; margin: 0; }
.cs-section-heading > .cs-text-link { margin-bottom: 5px; white-space: nowrap; }

/* Resource cards. */
.cs-resource-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.cs-resource-card { min-width: 0; background: var(--cs-white); border: 1px solid var(--cs-line); padding: 27px 27px 0; border-radius: 4px; display: flex; flex-direction: column; position: relative; transition: border-color .2s, box-shadow .2s; }
.cs-resource-card:hover { border-color: #afbaaa; box-shadow: 0 5px 20px #20392f08; }
.cs-resource-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 27px; }
.cs-card-icon { display: grid; place-items: center; width: 39px; height: 39px; border: 1px solid #e3e5dc; border-radius: 4px; color: var(--cs-green); }
.cs-card-icon .cs-icon { width: 22px; height: 22px; }
.cs-resource-card__top .cs-kicker { font-size: 8px; text-transform: uppercase; color: var(--cs-muted); }
.cs-card-topic { color: var(--cs-orange); font-size: 10px; line-height: 1.5; margin: 0 0 10px; }
.cs-resource-card h3 { font-size: 19px; font-weight: 500; letter-spacing: -.025em; line-height: 1.35; margin: 0 0 13px; }
.cs-resource-card h3 a::after { content: ''; position: absolute; inset: 0; }
.cs-card-description { font-size: 12px; line-height: 1.75; color: var(--cs-muted); margin: 0 0 22px; }
.cs-card-formula { font: 11px/1.7 var(--cs-mono); color: #657060; padding: 12px 0; margin-top: auto; border-top: 1px dashed #dedfd6; }
.cs-resource-card__bottom { margin-top: auto; border-top: 1px solid var(--cs-line); display: flex; justify-content: space-between; align-items: center; min-height: 55px; font-size: 10px; color: var(--cs-muted); }
.cs-resource-card__bottom > a { display: grid; place-items: center; width: 28px; height: 28px; color: var(--cs-orange); position: relative; }
.cs-resource-card__bottom .cs-icon { width: 19px; height: 19px; }
.cs-resource-grid--guides .cs-resource-card__top { margin-bottom: 40px; }

/* Topic directory. */
.cs-topics-section { background: #eeefe8; border-block: 1px solid #e5e6dc; }
.cs-topic-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 0; border-top: 1px solid #ccd1c3; border-left: 1px solid #ccd1c3; }
.cs-topic-card { display: flex; flex-direction: column; padding: 25px; border-right: 1px solid #ccd1c3; border-bottom: 1px solid #ccd1c3; transition: background .2s; }
.cs-topic-card:hover { background: #f8f8f1; }
.cs-topic-card__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; color: #50674e; }
.cs-topic-card__top .cs-mono { color: #7b8673; font-size: 9px; }
.cs-topic-card h3 { font-size: 16px; line-height: 1.35; font-weight: 500; margin: 0 0 12px; letter-spacing: -.02em; }
.cs-topic-card p { font-size: 11px; line-height: 1.8; color: var(--cs-muted); margin-bottom: 25px; }
.cs-topic-card__bottom { display: flex; justify-content: space-between; align-items: center; font-size: 9px; color: #65745c; margin-top: auto; }
.cs-topic-card__bottom .cs-icon { width: 16px; height: 16px; }
.cs-principles { background: var(--cs-green); color: #e9eedd; padding: 52px 58px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 70px; border-radius: 4px; }
.cs-principles .cs-eyebrow { font-size: 9px; color: #c6d4b7; }
.cs-principles h2 { font-size: 35px; font-weight: 400; line-height: 1.2; color: #f2f3e6; letter-spacing: -.04em; margin: 0 0 28px; }
.cs-principles ol { margin: 0; padding: 0; list-style: none; }
.cs-principles li { display: flex; gap: 22px; padding-bottom: 20px; margin-bottom: 21px; border-bottom: 1px solid #ffffff20; }
.cs-principles li:last-child { padding: 0; margin: 0; border: 0; }
.cs-principles li > span { font: 10px/2 var(--cs-mono); color: #b9caab; }
.cs-principles h3 { margin: 0 0 5px; color: #e9eedd; font-size: 14px; font-weight: 500; }
.cs-principles li p { font-size: 12px; line-height: 1.7; margin: 0; color: #becbb8; }
.cs-library-stats { display: flex; gap: 45px; align-items: center; padding-block: 41px; font-size: 11px; color: var(--cs-muted); }
.cs-library-stats .cs-kicker { margin-right: auto; }
.cs-library-stats strong { font-weight: 500; font-size: 22px; color: var(--cs-ink); margin-right: 7px; }

/* The full library: archives, taxonomies, dates, authors, and search. */
.chemsof-design .cs-archive { padding-block: 30px 0; }
.cs-simple-breadcrumb, .chemsof-design .breadcrumbs { display: block; color: var(--cs-muted); font-size: 11px; padding: 0; margin: 0 0 42px; background: none; border: 0; }
.cs-simple-breadcrumb { display: flex; align-items: center; gap: 13px; }
.cs-simple-breadcrumb > span[aria-hidden] { color: #989f92; }
.chemsof-design .breadcrumbs-list { gap: 12px; margin: 0; line-height: 1.7; }
.chemsof-design .breadcrumbs-item { gap: 12px; }
.chemsof-design .breadcrumbs-sep { margin: 0; font-size: 10px; color: #989f92; }
.chemsof-design .breadcrumbs-current { color: var(--cs-muted); }
.cs-archive-header { display: flex; justify-content: space-between; align-items: center; gap: 55px; padding-bottom: 45px; }
.cs-archive-header .cs-eyebrow { margin-bottom: 15px; }
.cs-archive-header h1 { max-width: 880px; margin: 0 0 21px; font-size: clamp(34px,4vw,53px); font-weight: 500; line-height: 1.13; letter-spacing: -.055em; }
.cs-archive-description { max-width: 660px; color: var(--cs-muted); font-size: 15px; line-height: 1.85; margin: 0; }
.cs-archive-symbol { min-width: 170px; height: 155px; display: flex; flex-direction: column; justify-content: center; align-items: center; border: 1px solid var(--cs-line); background: #eef0e8; border-radius: 50%; gap: 17px; transform: rotate(-7deg); }
.cs-archive-symbol > .cs-icon { width: 42px; height: 42px; color: #577052; }
.cs-archive-symbol .cs-mono { font-size: 8px; color: #65745c; }
.cs-archive-search { max-width: 750px; margin-bottom: 35px; }
.cs-resource-tabs { display: flex; gap: 30px; border-bottom: 1px solid var(--cs-line); margin-bottom: 20px; }
.cs-resource-tabs a { padding: 12px 0 15px; font-size: 12px; }
.cs-resource-tabs a[aria-current] { color: var(--cs-orange); border-bottom: 2px solid var(--cs-orange); }
.cs-archive-filters { display: flex; gap: 14px; align-items: center; border-block: 1px solid var(--cs-line); padding: 20px 0; margin-bottom: 28px; }
.cs-filter-field { display: flex; align-items: center; gap: 10px; }
.cs-filter-field label { font-size: 10px; color: var(--cs-muted); }
.cs-filter-field select { font-size: 11px; min-height: 41px; border: 1px solid #d5d8cd; background: var(--cs-white); border-radius: 3px; padding: 9px 27px 9px 11px; max-width: 235px; color: var(--cs-ink); }
.cs-filter-submit { border: 1px solid #aebaa5; padding: 10px 13px; background: transparent; color: var(--cs-green); border-radius: 3px; font-size: 10px; display: flex; align-items: center; gap: 15px; min-height: 41px; }
.cs-filter-submit .cs-icon { width: 15px; height: 15px; }
.cs-filter-submit:hover { background: #e8ecdf; }
.cs-results-count { margin-left: auto; white-space: nowrap; color: var(--cs-muted); font: 10px/1.5 var(--cs-mono); }
.cs-filter-reset { text-decoration: underline; font-size: 10px; }
.cs-archive .cs-resource-card { min-height: 310px; }
.chemsof-design .pagination { margin: 45px 0; border: 0; padding: 0; }
.chemsof-design .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; }
.chemsof-design .page-numbers { border: 1px solid var(--cs-line); border-radius: 3px; min-width: 38px; padding: 9px 13px; font-size: 12px; background: transparent; }
.chemsof-design .page-numbers.current { color: white; background: var(--cs-green); border-color: var(--cs-green); }
.cs-archive-end { border-top: 1px solid var(--cs-line); margin-top: 60px; padding-block: 34px 42px; display: flex; gap: 30px; align-items: center; }
.cs-archive-end .cs-mono { color: var(--cs-orange); font-size: 9px; }
.cs-archive-end p { font-size: 14px; margin: 0; }
.cs-archive-end .cs-text-link { margin-left: auto; }
.cs-empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--cs-line); }
.cs-empty__icon { display: inline-flex; padding: 17px; border-radius: 50%; background: #e9ede1; }
.cs-empty h2 { margin: 25px 0 13px; font-size: 27px; }
.cs-empty p { max-width: 440px; margin: 0 auto 25px; color: var(--cs-muted); font-size: 14px; }

/* Editorial reading surfaces. */
.chemsof-design .cs-single-main, .chemsof-design .cs-calculator-main, .chemsof-design .cs-page-main { padding-block: 30px 70px; }
.chemsof-design .cs-single-main { max-width: 1140px; }
.chemsof-design .cs-calculator-main { max-width: 1100px; }
.chemsof-design .article-header { padding: 0 0 35px; margin-bottom: 38px; border-bottom: 1px solid var(--cs-line); }
.chemsof-design .article-header .cs-eyebrow { margin-bottom: 17px; font-size: 9px; }
.chemsof-design .article-title { font-size: clamp(32px,3.9vw,53px); font-weight: 500; letter-spacing: -.05em; line-height: 1.14; padding: 0; margin: 0 0 24px; max-width: 1030px; border: 0; }
.chemsof-design .article-meta { font-size: 11px; color: var(--cs-muted); gap: 4px; margin: 0; line-height: 1.8; }
.chemsof-design .article-meta a { color: var(--cs-orange); }
.chemsof-design .meta-divider { color: #c7cbbf; margin-inline: 6px; }
.chemsof-design .article-content-wrapper { gap: 65px; flex-direction: row; }
.chemsof-design .article-body { max-width: 780px; }
.chemsof-design .article-sidebar { display: block; position: sticky; width: 235px; top: 120px; }
.chemsof-design .toc-desktop { display: block; }
.chemsof-design .article-content { font-size: 17px; line-height: 1.9; color: #41483f; overflow-wrap: break-word; }
.chemsof-design .article-content h2 { font-size: 27px; letter-spacing: -.03em; margin-top: 2.1em; padding-top: 10px; line-height: 1.35; }
.chemsof-design .article-content h3 { font-size: 21px; line-height: 1.45; font-weight: 600; letter-spacing: -.025em; }
.chemsof-design .article-content h4 { font-size: 18px; }
.chemsof-design .article-content a { color: var(--cs-orange); text-decoration: underline; text-underline-offset: 3px; }
.chemsof-design .article-content table { font-size: 13px; line-height: 1.7; background: var(--cs-white); }
.chemsof-design .article-content th { color: var(--cs-green); background: #e9ede1; }
.chemsof-design .article-content td, .chemsof-design .article-content th { padding: 14px; }
.chemsof-design .article-content pre { max-width: 100%; overflow-x: auto; padding: 20px; background: #eceee6; border: 1px solid var(--cs-line); }
.chemsof-design .article-content blockquote { padding: 20px 25px; background: #edece1; border-color: #849c70; color: var(--cs-green); margin-inline: 0; }
.chemsof-design .short-answer-box { border: 0; border-left: 3px solid #728962; background: #eaede2; padding: 23px 27px; border-radius: 0 4px 4px 0; margin-bottom: 38px; }
.chemsof-design .short-answer-label { font: 9px/1.7 var(--cs-mono); color: #547046; letter-spacing: .08em; }
.chemsof-design .short-answer-text { font-size: 16px; line-height: 1.85; }
.chemsof-design .toc-widget { background: transparent; padding: 0 0 0 22px; border: 0; border-left: 1px solid var(--cs-line); border-radius: 0; margin: 0; }
.chemsof-design .toc-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; border: 0; padding: 0 0 17px; background: none; color: var(--cs-ink); }
.chemsof-design .toc-title { font: 10px/1.7 var(--cs-mono); text-transform: uppercase; letter-spacing: .08em; }
.chemsof-design .toc-toggle-icon { color: var(--cs-muted); font-size: 15px; }
.chemsof-design .toc-list { padding: 0; list-style: none; max-height: calc(100vh - 220px); overflow-y: auto; scrollbar-width: thin; }
.chemsof-design .toc-list a { display: block; font-size: 11px; color: var(--cs-muted); line-height: 1.65; padding: 5px 0; }
.chemsof-design .toc-list a.is-active, .chemsof-design .toc-list a:hover { color: var(--cs-orange); }
.chemsof-design .toc-level-h3 { margin-left: 14px; }
.chemsof-design .toc-mobile { display: none; }
.chemsof-design .infobox { background: #eeefe7; border-color: var(--cs-line); font-size: 12px; }
.cs-reading-progress { position: fixed; z-index: 110; height: 2px; width: 100%; background: var(--cs-orange); left: 0; top: 94px; transform: scaleX(0); transform-origin: left; }
body.admin-bar .cs-header { top: 32px; }
body.admin-bar .cs-reading-progress { top: 126px; }
.cs-related { border-top: 1px solid var(--cs-line); margin-top: 70px; padding-top: 45px; }
.cs-related .cs-section-heading h2 { font-size: 29px; }
.cs-related .cs-resource-card h3 { font-size: 17px; }
.chemsof-design .post-navigation { margin-top: 35px; padding-top: 25px; border-top: 1px solid var(--cs-line); }
.chemsof-design .post-navigation-links { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.chemsof-design .post-navigation a { font-size: 13px; }
.chemsof-design .nav-label { font: 9px/1.7 var(--cs-mono); color: var(--cs-muted); margin-bottom: 9px; display: block; }
.chemsof-design .article-section { max-width: 780px; }
.chemsof-design .comments-area { max-width: 780px; border-top: 1px solid var(--cs-line); padding-top: 30px; margin-top: 40px; }
.chemsof-design .comments-area textarea, .chemsof-design .comments-area input:not([type=checkbox]):not([type=submit]) { width: 100%; background: var(--cs-white); border: 1px solid #cdd2c4; border-radius: 3px; padding: 12px; }
.chemsof-design .comments-area .submit { padding: 12px 22px; background: var(--cs-green); color: white; border: 0; border-radius: 3px; }
.chemsof-design .cs-page-main { max-width: 1140px; }
.cs-page-main .wiki-page:not(.cs-directory-page) { max-width: 800px; margin-inline: auto; }
.cs-page-intro { font-size: 16px; color: var(--cs-muted); line-height: 1.8; margin: 0; }
.cs-directory-page .article-content > p { font-size: 14px; margin-bottom: 30px; color: var(--cs-muted); }
.cs-directory-page .cs-topic-card { text-decoration: none; background: #f0f1e9; }
.cs-directory-page .cs-topic-card:hover { background: #e8eddd; }
.cs-directory-page .cs-topic-card h3 { font-size: 18px; margin-top: 0; }
.cs-directory-page .cs-topic-card p { font-size: 12px; margin-bottom: 25px; }
.cs-calculator-main .article-content { max-width: none; }
.cs-calculator-main .article-content > p, .cs-calculator-main .article-content > ul, .cs-calculator-main .article-content > ol { max-width: 860px; }
.cs-calculator-main [class^="cs-"][class$="__banner"] { border-radius: 0; }
.chemsof-design :is(.cs-lmtd, .cs-duty, .cs-reynolds, .cs-pipe, .cs-units, .cs-head, .cs-pump, .cs-molar, .cs-gas, .cs-area) { --cs-ink: #253b2d; --cs-blue: #b54424; --cs-border: #d8ddd0; --cs-muted: #697067; border-radius: 5px; background: var(--cs-white); }
.cs-calculator-main .article-content [class$="__banner"] { background: #e9ede2; }
.cs-calculator-main .article-content [class$="__results"] { background: #f1f3ea; }
.cs-calculator-main .article-content h2[class*="__heading"] { font-size: 16px; line-height: 1.4; font-weight: 650; margin: 0 0 22px; padding: 0; }
.cs-calculator-main .cs-lmtd__flow-option:has(input:checked) { background: #f5e9df; }
.cs-not-found { padding-block: 110px !important; min-height: 650px; }
.cs-not-found h1 { font-size: clamp(40px,5vw,65px); font-weight: 500; letter-spacing: -.05em; margin: 0 0 25px; line-height: 1.12; }
.cs-not-found > p:not(.cs-eyebrow) { max-width: 440px; color: var(--cs-muted); font-size: 15px; }
.cs-not-found .search-form { max-width: 620px; margin-block: 30px; }

/* Footer, compact and useful. */
.chemsof-design .cs-footer { background: #eeefe7; border-top: 1px solid #d9ddce; padding: 0; font-size: 12px; }
.cs-footer__inner { width: calc(100% - 112px); max-width: 1280px; margin: auto; padding-top: 55px; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 45px; }
.cs-footer__intro .cs-brand { gap: 0; font-size: 30px; }
.cs-brand__dot { margin-left: 4px; color: var(--cs-orange); }
.cs-footer__intro > p { font-size: 19px; line-height: 1.5; margin: 22px 0 20px; letter-spacing: -.02em; }
.cs-footer__intro .cs-mono { font-size: 7px; color: #748069; display: block; max-width: 240px; line-height: 1.8; }
.cs-footer h2 { margin: 6px 0 22px; font: 9px/1.6 var(--cs-mono); color: #5d6b54; letter-spacing: .08em; text-transform: uppercase; }
.cs-footer ul { list-style: none; padding: 0; margin: 0; font-size: 11px; }
.cs-footer li { margin-bottom: 12px; }
.cs-footer__inner > div > p { color: #65715d; font-size: 11px; line-height: 1.9; }
.cs-footer__inner > div > a:not(.cs-brand) { font-size: 11px; }
.cs-footer__inner > div > a > .cs-icon { width: 15px; height: 15px; margin-left: 8px; }
.cs-footer__bottom { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #d5dacb; padding-block: 23px; margin-top: 12px; font-size: 10px; color: #6c7864; }

/* Responsive layouts and motion preferences. */
@media (min-width: 1600px) { .cs-hero { gap: 100px; } }
@media (max-width: 1150px) {
  .chemsof-design .cs-container, .cs-header__inner, .cs-footer__inner { width: calc(100% - 64px); }
  .cs-header__inner { gap: 25px; }
  .cs-header__cta { display: none; }
  .cs-nav { gap: 25px; }
  .cs-nav > a { font-size: 12px; }
  .cs-hero { gap: 40px; padding-block: 60px; }
  .cs-hero h1 { font-size: 53px; }
  .cs-hero__notes { gap: 10px; }
  .cs-hero__actions { gap: 20px; }
  .cs-hero__actions .cs-text-link { font-size: 11px; }
  .cs-hero__actions .cs-button { font-size: 12px; padding-inline: 16px; gap: 15px; }
  .cs-engineering-panel { padding-inline: 23px; }
  .cs-resource-card { padding: 23px 23px 0; }
  .cs-topic-card { padding: 22px; }
  .cs-principles { padding: 40px; gap: 40px; }
  .chemsof-design .article-content-wrapper { gap: 40px; }
  .chemsof-design .article-sidebar { width: 215px; }
  .cs-filter-field { gap: 7px; }
  .cs-filter-field select { max-width: 195px; }
  .cs-archive-filters { gap: 10px; }
  .cs-footer__inner { gap: 28px; }
}
@media (max-width: 860px) {
  .cs-hero { gap: 28px; }
  .cs-hero h1 { font-size: 43px; }
  .cs-hero__copy .cs-eyebrow { font-size: 8px; }
  .cs-hero__description { font-size: 13px; }
  .cs-hero__actions { flex-wrap: wrap; gap: 15px; }
  .cs-engineering-panel__label h2 { font-size: 21px; }
  .cs-engineering-panel__head .cs-mono { font-size: 6px; }
  .cs-engineering-panel__result strong { font-size: 33px; }
  .cs-find { grid-template-columns: 1fr; gap: 20px; }
  .cs-find > div { gap: 24px; }
  .cs-find p br { display: none; }
  .cs-resource-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cs-resource-grid--guides .cs-resource-card:last-child { grid-column: 1 / -1; }
  .cs-topic-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .cs-principles { gap: 30px; }
  .cs-principles h2 { font-size: 29px; }
  .cs-library-stats { gap: 25px; flex-wrap: wrap; }
  .cs-library-stats .cs-kicker { width: 100%; }
  .cs-archive-filters { flex-wrap: wrap; }
  .cs-results-count { margin-left: auto; }
  .cs-archive-end { flex-wrap: wrap; gap: 20px; }
  .cs-archive-symbol { min-width: 130px; height: 130px; }
  .chemsof-design .article-sidebar { display: none; }
  .chemsof-design .article-content-wrapper { flex-direction: column; }
  .chemsof-design .toc-mobile { display: block; margin-bottom: 35px; }
  .chemsof-design .toc-mobile .toc-widget { padding: 18px 22px; border: 1px solid var(--cs-line); background: #eeefe7; border-radius: 4px; }
  .chemsof-design .toc-mobile .toc-list { max-height: 270px; }
  .cs-footer__inner { grid-template-columns: repeat(3,1fr); }
  .cs-footer__intro { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; align-items: start; }
  .cs-footer__intro > p { margin: 0; grid-column: 2; grid-row: 1 / 3; }
  .cs-footer__intro .cs-mono { margin-top: 15px; }
}
@media (max-width: 640px) {
  .chemsof-design .cs-container, .cs-header__inner, .cs-footer__inner { width: calc(100% - 40px); }
  .chemsof-design .cs-header { height: 76px; }
  .cs-header__inner { gap: 16px; }
  .cs-brand { font-size: 25px; }
  .cs-brand small { font-size: 6px; margin-top: 6px; }
  .cs-brand__mark svg { width: 25px; height: 25px; }
  .cs-header__actions { margin-left: auto; }
  .cs-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 6px; order: 3; width: 34px; height: 38px; padding: 6px; border: 0; background: transparent; }
  .cs-menu-toggle > span:not(.screen-reader-text) { display: block; width: 21px; height: 1.5px; background: var(--cs-ink); }
  .cs-menu-toggle[aria-expanded=true] > span:first-child { transform: translateY(3.75px) rotate(45deg); }
  .cs-menu-toggle[aria-expanded=true] > span:nth-child(2) { transform: translateY(-3.75px) rotate(-45deg); }
  .cs-nav { position: absolute; top: 75px; left: 0; right: 0; display: none; background: var(--cs-paper); border-bottom: 1px solid var(--cs-line); padding: 15px 20px 25px; box-shadow: 0 15px 25px #20392f12; }
  .cs-nav.is-open { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .cs-nav > a { padding: 13px 10px; font-size: 14px; }
  .cs-nav > a[aria-current]::after { bottom: 24px; left: -3px; }
  .cs-hero { display: flex; flex-direction: column; align-items: stretch; gap: 35px; padding-block: 38px 46px; }
  .cs-hero__copy { padding: 0; }
  .cs-hero__copy .cs-eyebrow { font-size: 8px; margin-bottom: 18px; }
  .cs-hero h1 { font-size: clamp(41px,10.7vw,61px); margin: 0 0 24px; line-height: 1.08; }
  .cs-hero__description { font-size: 14px; margin-bottom: 25px; }
  .cs-hero__description br { display: none; }
  .cs-hero__actions { gap: 22px; }
  .cs-hero__actions .cs-button { padding: 13px 18px; font-size: 12px; }
  .cs-hero__actions .cs-text-link { font-size: 11px; gap: 9px; }
  .cs-hero__notes { margin-top: 23px; gap: 11px; font-size: 8px; }
  .cs-engineering-panel { padding: 22px 24px; box-shadow: 6px 6px 0 #e8e9df; }
  .cs-engineering-panel__head .cs-mono { font-size: 7px; }
  .cs-engineering-panel__label h2 { font-size: 24px; }
  .cs-engineering-panel__result strong { font-size: 36px; }
  .cs-find { padding-block: 23px; }
  .cs-find .cs-kicker { flex-shrink: 0; }
  .cs-find p { font-size: 11px; }
  .chemsof-design .cs-search-form { gap: 8px; padding-left: 12px; }
  .chemsof-design .cs-search-form .search-field { font-size: 11px; }
  .chemsof-design .cs-search-form .search-submit { font-size: 10px; padding-inline: 11px; gap: 9px; }
  .cs-search-form .search-submit .cs-icon { display: none; }
  .cs-section { padding-block: 43px; }
  .cs-section-heading { display: block; margin-bottom: 23px; }
  .cs-section-heading h2 { font-size: 29px; }
  .cs-section-heading p:not(.cs-eyebrow) { font-size: 12px; }
  .cs-section-heading > .cs-text-link { margin-top: 17px; font-size: 12px; }
  .cs-resource-grid { grid-template-columns: 1fr; gap: 14px; }
  .cs-resource-card { padding: 24px 24px 0; }
  .cs-resource-card__top { margin-bottom: 22px; }
  .cs-resource-card h3 { font-size: 21px; }
  .cs-card-description { font-size: 13px; }
  .cs-resource-card__bottom { min-height: 58px; font-size: 11px; }
  .cs-topic-card { padding: 19px 16px; }
  .cs-topic-card h3 { font-size: 15px; }
  .cs-topic-card p { font-size: 11px; line-height: 1.7; }
  .cs-topic-card__top { margin-bottom: 20px; }
  .cs-principles { padding: 30px 25px; grid-template-columns: 1fr; gap: 35px; }
  .cs-principles h2 { font-size: 30px; }
  .cs-principles h3 { font-size: 15px; }
  .cs-library-stats { padding-block: 30px; gap: 15px 25px; }
  .cs-library-stats > span { font-size: 10px; }
  .cs-library-stats strong { font-size: 21px; }
  .cs-archive-header { display: block; padding-bottom: 30px; }
  .cs-archive-header h1 { font-size: 38px; }
  .cs-archive-description { font-size: 14px; }
  .cs-archive-symbol { display: none; }
  .cs-simple-breadcrumb, .chemsof-design .breadcrumbs { font-size: 10px; margin-bottom: 30px; }
  .chemsof-design .breadcrumbs-list { gap: 9px; }
  .chemsof-design .breadcrumbs-item { gap: 9px; }
  .cs-archive-filters { align-items: end; gap: 14px 10px; }
  .cs-filter-field { flex-direction: column; align-items: stretch; flex: 1; min-width: 0; gap: 5px; }
  .cs-filter-field select { width: 100%; max-width: none; min-width: 0; font-size: 10px; padding-right: 18px; }
  .cs-results-count { order: 6; width: 100%; text-align: right; }
  .cs-filter-submit { min-width: 110px; }
  .cs-resource-tabs { gap: 22px; }
  .cs-resource-tabs a { font-size: 11px; }
  .cs-archive-end { margin-top: 35px; padding-block: 28px; display: block; }
  .cs-archive-end p { margin-block: 12px; font-size: 13px; }
  .cs-empty { padding: 45px 20px; }
  .chemsof-design .cs-single-main, .chemsof-design .cs-page-main, .chemsof-design .cs-calculator-main { padding-block: 25px 40px; }
  .chemsof-design .article-title { font-size: 35px; line-height: 1.14; }
  .chemsof-design .article-header { padding-bottom: 25px; margin-bottom: 28px; }
  .chemsof-design .article-meta { font-size: 10px; gap: 3px; }
  .chemsof-design .article-meta .meta-divider { margin-inline: 4px; }
  .chemsof-design .article-content { font-size: 16px; line-height: 1.85; }
  .chemsof-design .article-content h2 { font-size: 25px; }
  .chemsof-design .article-content h3 { font-size: 21px; }
  .chemsof-design .short-answer-box { padding: 20px; }
  .chemsof-design .short-answer-text { font-size: 15px; }
  .cs-reading-progress { top: 76px; }
  body.admin-bar .cs-header { top: 46px; }
  body.admin-bar .cs-reading-progress { top: 122px; }
  .cs-related { margin-top: 40px; padding-top: 30px; }
  .chemsof-design .post-navigation-links { gap: 25px; }
  .chemsof-design .post-navigation a { font-size: 12px; }
  .cs-directory-page .cs-topic-card h3 { font-size: 16px; }
  .cs-directory-page .cs-topic-card p { font-size: 11px; }
  .cs-search-dialog { padding: 25px 20px; }
  .cs-search-dialog__top h2 { font-size: 25px; }
  .cs-not-found { padding-block: 65px !important; min-height: 520px; }
  .cs-footer__inner { grid-template-columns: 1fr 1fr; gap: 30px; padding-top: 38px; }
  .cs-footer__intro { display: block; padding-bottom: 10px; }
  .cs-footer__intro > p { font-size: 22px; margin-top: 20px; }
  .cs-footer__intro .cs-mono { font-size: 8px; }
  .cs-footer__inner > div:nth-child(4) { grid-column: 1 / -1; }
  .cs-footer__inner > div:nth-child(4) > p { max-width: 320px; }
  .cs-footer h2 { margin-bottom: 20px; }
  .cs-footer ul { font-size: 12px; }
  .cs-footer__bottom { flex-wrap: wrap; gap: 10px 25px; margin-top: 0; }
  .cs-footer__bottom > span:nth-child(2) { order: 3; width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
@media print {
  .cs-header, .cs-footer, .cs-related, .post-navigation, .toc-mobile, .article-sidebar, .breadcrumbs, .cs-reading-progress { display: none !important; }
  .chemsof-design .cs-container { width: 100%; }
  .chemsof-design .article-content { color: #000; font-size: 11pt; }
  .chemsof-design .article-title { font-size: 25pt; }
  .chemsof-design .article-header { margin-bottom: 20px; }
  .chemsof-design .site { background: white; }
}
