/* ChemistryCalc — the working notebook. Original layout and visual system. */
:root {
  --cc-paper: #fcfaf4;
  --cc-sheet: #ffffff;
  --cc-ink: #173d3e;
  --cc-body: #334b4a;
  --cc-muted: #60716c;
  --cc-teal: #195b58;
  --cc-teal-deep: #153f3e;
  --cc-mint: #edf3ec;
  --cc-rule: #d9dfd5;
  --cc-gold: #d8b44e;
  --cc-gold-pale: #f5edce;
  --cc-copper: #914c30;
  --cc-focus: #ad572c;
  --cc-serif: Georgia, 'Times New Roman', serif;
  --cc-sans: 'Segoe UI', Arial, sans-serif;
  --cc-mono: 'Cascadia Code', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 150px; }
body { margin: 0; color: var(--cc-body); background: var(--cc-paper); font: 16px/1.75 var(--cc-sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--cc-gold-pale); color: var(--cc-ink); }
a { color: var(--cc-teal); text-decoration-thickness: 1px; text-underline-offset: .22em; }
a:hover { color: var(--cc-copper); }
button, input, select, textarea { font: inherit; }
button, a, input, select, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible, textarea:focus-visible { outline: 3px solid var(--cc-focus); outline-offset: 4px; }
button:disabled { cursor: not-allowed; opacity: .6; }
[hidden] { display: none !important; }
.cc-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.cc-skip-link { position: fixed; z-index: 100; top: 8px; left: 16px; padding: 12px 20px; color: white; background: var(--cc-teal-deep); transform: translateY(-150%); }
.cc-skip-link:focus { transform: translateY(0); }
h1, h2, h3 { color: var(--cc-ink); }
h1 { margin: 0 0 20px; font: 400 clamp(35px, 3.3vw, 48px)/1.12 var(--cc-serif); letter-spacing: -.035em; text-wrap: balance; }
h2 { margin: 0 0 20px; font: 400 29px/1.25 var(--cc-serif); letter-spacing: -.025em; }
h3 { margin: 27px 0 12px; font-size: 18px; line-height: 1.4; }
p { margin: 0 0 19px; }
ul, ol { padding-left: 1.4em; }
li { padding-left: .2em; margin-bottom: .65em; }
.cc-main { min-width: 0; }
.cc-article-header { padding-top: 3px; }
.cc-main > section:not(.cc-introduction):not(.cc-workbench) { scroll-margin-top: 150px; }
.cc-main > section + section { margin-top: 44px; }

/* A compact, linear masthead replaces card-like navigation. */
.cc-masthead { position: sticky; top: 0; z-index: 30; background: #fcfaf4fa; border-top: 5px solid var(--cc-teal-deep); border-bottom: 1px solid var(--cc-rule); backdrop-filter: blur(12px); }
.cc-header-content { max-width: 1380px; margin: auto; padding: 20px 32px 17px; display: flex; align-items: center; gap: 40px; }
.cc-wordmark { flex-shrink: 0; display: inline-flex; align-items: center; gap: 11px; color: var(--cc-ink); text-decoration: none; font: 400 25px/1 var(--cc-serif); letter-spacing: -.045em; }
.cc-wordmark:hover { color: var(--cc-ink); text-decoration: none; }
.cc-wordmark b { font-weight: 700; }
.cc-wordmark svg { width: 34px; height: 34px; flex-shrink: 0; }
.cc-search { position: relative; flex: 1; max-width: 510px; margin-left: auto; }
.cc-search input { display: block; width: 100%; height: 42px; border: 0; border-bottom: 1px solid #9eafa5; border-radius: 0; padding: 7px 10px 7px 0; color: var(--cc-ink); background: transparent; font-size: 14px; }
.cc-search input::placeholder { color: var(--cc-muted); opacity: 1; }
.cc-search input:focus { border-bottom-color: var(--cc-teal); outline: 0; box-shadow: 0 2px 0 var(--cc-teal); }
.cc-search-menu { position: absolute; z-index: 40; top: calc(100% + 9px); left: 0; right: 0; max-height: min(420px, 60vh); overflow: auto; padding: 7px 0; background: var(--cc-sheet); border: 1px solid var(--cc-rule); box-shadow: 0 14px 30px #153f3e1a; }
.cc-search-menu a { display: block; padding: 10px 16px; text-decoration: none; font-size: 14px; line-height: 1.5; }
.cc-search-menu a:hover, .cc-search-menu a:focus { background: var(--cc-mint); }
.cc-search-menu p { padding: 12px 16px; margin: 0; font-size: 13px; }
.cc-header-links { display: flex; align-items: center; gap: 22px; font-size: 13px; white-space: nowrap; }
.cc-header-links a { text-decoration: none; }
.cc-header-links a:hover { text-decoration: underline; }
.cc-free-note { display: inline-flex; align-items: center; gap: 6px; color: var(--cc-teal); font-size: 11px; letter-spacing: .035em; }
.cc-free-note::before { content: ''; width: 6px; height: 6px; background: var(--cc-copper); }
.cc-topic-strip { display: flex; gap: 24px; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; max-width: 1380px; margin: auto; padding: 0 32px; }
.cc-topic-strip a { flex-shrink: 0; padding: 8px 0 11px; border-bottom: 2px solid transparent; color: var(--cc-muted); font-size: 11px; line-height: 1.5; white-space: nowrap; text-decoration: none; }
.cc-topic-strip a:hover, .cc-topic-strip a.cc-selected { color: var(--cc-ink); border-color: var(--cc-copper); }

/* Reading frame: two rails for tools, open space for the collection homepage. */
.cc-frame { display: grid; grid-template-columns: 200px minmax(0, 760px) 180px; align-items: start; gap: 32px; max-width: 1284px; margin: 0 auto; padding: 50px 28px 90px; }
.cc-home .cc-frame { display: block; max-width: 1256px; padding-top: 0; }
.cc-rail { position: sticky; top: 151px; max-height: calc(100vh - 176px); overflow: auto; padding: 20px 15px 14px; background: var(--cc-mint); border-top: 3px solid #8daba0; font-size: 12px; line-height: 1.6; }
.cc-rail-label { margin: 0 6px 15px; color: #547068; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.cc-rail > a { display: block; padding: 9px 7px; margin: 0 -1px; color: #45605a; text-decoration: none; border-bottom: 1px solid #dbe5db; }
.cc-rail > a:hover { color: var(--cc-teal-deep); background: #e0eae0; }
.cc-rail > a.cc-selected { color: var(--cc-teal-deep); background: #dce8dd; border-left: 3px solid var(--cc-copper); padding-left: 9px; margin-left: -4px; font-weight: 650; }
.cc-rail small { float: right; min-width: 15px; text-align: right; font: 11px/1.8 var(--cc-mono); color: #657d73; }
.cc-rail-note { margin: 22px 6px 0; padding: 18px 0 0; border-top: 1px solid #c9d8cb; color: #587167; font-size: 11px; }
.cc-rail-note strong { display: block; margin-bottom: 10px; font: 400 19px/1.3 var(--cc-serif); color: var(--cc-teal-deep); }
.cc-rail-note p { margin-bottom: 11px; }
.cc-rail-note a { font-size: 11px; }
.cc-reading-rail { counter-reset: chapter; padding: 15px 0 0 15px; background: none; border-top: 1px solid #9bafa2; }
.cc-reading-rail .cc-rail-label { margin-left: 0; }
.cc-reading-rail > a { position: relative; counter-increment: chapter; padding: 8px 0 8px 25px; border-bottom: 0; color: #64746c; font-size: 11px; line-height: 1.5; }
.cc-reading-rail > a::before { content: counter(chapter, decimal-leading-zero); position: absolute; left: 0; top: 10px; color: #82623f; font: 9px/1.5 var(--cc-mono); }
.cc-reading-rail > a:hover { color: var(--cc-teal-deep); background: none; text-decoration: underline; }
.cc-reading-rail .cc-rail-note { margin-left: 0; margin-right: 0; }
.cc-trail { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; color: var(--cc-muted); font-size: 11px; line-height: 1.5; }
.cc-trail a { color: #64776b; text-decoration: none; }
.cc-trail a:hover { text-decoration: underline; }
.cc-deck { color: #5c6c65; font-size: 17px; line-height: 1.75; max-width: 66ch; }
.cc-credits { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; padding-bottom: 22px; margin: 22px 0 30px; border-bottom: 1px solid var(--cc-rule); color: var(--cc-muted); font-size: 11px; }
.cc-divider { color: #8c9e91; }
.cc-credits a { text-decoration-color: #afbdb0; }
.cc-kicker { margin: 0 0 17px; color: var(--cc-copper); font: 600 11px/1.5 var(--cc-sans); letter-spacing: .15em; text-transform: uppercase; }

/* Home: editorial cover with periodic-table notation. */
.cc-introduction { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 60px; padding: 70px 0 60px; border-bottom: 1px solid #bfcdbf; }
.cc-intro-copy { min-width: 0; }
.cc-introduction h1 { max-width: 650px; margin-bottom: 26px; font-size: clamp(52px, 5.8vw, 78px); line-height: 1.03; letter-spacing: -.055em; }
.cc-introduction .cc-deck { max-width: 490px; margin-bottom: 29px; font-size: 17px; line-height: 1.75; }
.cc-collection-facts { display: flex; flex-wrap: wrap; gap: 14px 28px; margin-top: 33px; color: var(--cc-muted); font-size: 11px; }
.cc-collection-facts span { padding-left: 13px; border-left: 2px solid var(--cc-gold); }
.cc-collection-facts strong { margin-right: 4px; color: var(--cc-ink); font: 400 22px/1 var(--cc-serif); }
.cc-element-board { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 13px; padding: 35px 27px 25px; background-color: #f3f1e5; background-image: linear-gradient(#e5e6d74d 1px, transparent 1px), linear-gradient(90deg, #e5e6d74d 1px, transparent 1px); background-size: 24px 24px; border: 1px solid #dfe1d0; }
.cc-element-board::before { content: 'THE ELEMENTS OF A CLEAR ANSWER'; position: absolute; top: 13px; left: 27px; font: 8px/1.4 var(--cc-mono); letter-spacing: .12em; color: #606c54; }
.cc-element-tile { min-width: 0; aspect-ratio: 1.05; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 16px 20px; color: var(--cc-ink); background: #e1e9dc; border: 1px solid #afc2ac; }
.cc-element-tile small { display: block; margin-bottom: 9px; font: 11px/1 var(--cc-mono); }
.cc-element-tile strong { display: block; font: 400 clamp(43px, 5vw, 64px)/1 var(--cc-serif); letter-spacing: -.055em; }
.cc-element-tile span { display: block; margin-top: 12px; font-size: 11px; letter-spacing: .03em; }
.cc-element-tile:nth-child(2) { margin-top: 32px; background: var(--cc-gold-pale); border-color: #d9c784; }
.cc-element-tile:nth-child(3) { margin-top: -32px; background: #e9d9c8; border-color: #c7aa8b; }
.cc-board-caption { align-self: end; margin: 0 0 8px; padding: 0 4px; color: #5f6d58; font: italic 16px/1.55 var(--cc-serif); }
.cc-section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; margin: 0 0 23px; }
.cc-section-heading h2 { margin: 0; }
.cc-section-heading .cc-kicker { margin-bottom: 9px; }
.cc-section-heading > a { font-size: 12px; white-space: nowrap; }
.cc-home .cc-main > section:not(.cc-introduction) { margin-top: 48px; }
.cc-home #approach { padding: 34px 0 5px 28px; border-left: 3px solid var(--cc-gold); }
.cc-home #approach h2 { font-size: 34px; }
.cc-editor-note { display: grid; grid-template-columns: .85fr 1.15fr; column-gap: 48px; }
.cc-editor-note > .cc-kicker { grid-column: 1 / -1; }
.cc-editor-note > div:last-child { max-width: 620px; }
.cc-editor-note > div:last-child p { font-size: 14px; }
.cc-topic-directory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid #bfcdbf; }
.cc-topic-entry { display: flex; align-items: center; gap: 16px; min-width: 0; min-height: 98px; padding: 19px 4px; border-bottom: 1px solid var(--cc-rule); color: var(--cc-ink); text-decoration: none; transition: background .15s, padding .15s; }
.cc-topic-entry:hover { padding-left: 10px; padding-right: 10px; background: var(--cc-mint); color: var(--cc-ink); }
.cc-topic-number { flex-shrink: 0; align-self: flex-start; padding-top: 5px; color: var(--cc-copper); font: 10px/1.5 var(--cc-mono); }
.cc-topic-copy { flex: 1; min-width: 0; }
.cc-topic-copy strong { display: block; color: var(--cc-ink); font: 400 21px/1.25 var(--cc-serif); letter-spacing: -.02em; }
.cc-topic-copy small { display: block; margin-top: 6px; color: var(--cc-muted); font-size: 11px; line-height: 1.5; }
.cc-topic-count { flex-shrink: 0; min-width: 27px; color: #65786b; font: 11px/1.5 var(--cc-mono); text-align: right; white-space: nowrap; }
.cc-go { color: var(--cc-copper); font-size: 19px; flex-shrink: 0; }
.cc-topic-symbol { color: var(--cc-teal); font-family: var(--cc-serif); }
.cc-tool-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 24px; }
.cc-home .cc-tool-links { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cc-tool-link { display: block; padding: 20px 0 20px 19px; border-left: 2px solid #b4c9b6; color: var(--cc-body); background: #f2f4eb; text-decoration: none; transition: background .15s, border-color .15s; }
.cc-tool-link:hover { background: #e9eee2; border-color: var(--cc-copper); }
.cc-tool-kind { display: block; margin: 0 15px 11px 0; color: #626d56; font: 600 9px/1.5 var(--cc-sans); letter-spacing: .09em; text-transform: uppercase; }
.cc-tool-link strong { display: block; padding-right: 15px; color: var(--cc-teal-deep); font: 400 20px/1.35 var(--cc-serif); letter-spacing: -.02em; }
.cc-tool-link p { margin: 10px 18px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.7; }
.cc-tool-open { display: block; margin-top: 18px; color: var(--cc-copper); font: 600 10px/1.5 var(--cc-sans); letter-spacing: .015em; }

/* The workbench groups editable measurements above a high-contrast readout. */
.cc-workbench { overflow: hidden; margin: 26px 0 38px; background: var(--cc-sheet); border: 1px solid #b8c7ba; box-shadow: 5px 5px 0 #e7eadd; }
.cc-tool-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 24px; border-top: 4px solid var(--cc-teal); border-bottom: 1px solid var(--cc-rule); color: var(--cc-muted); background: #f4f6ef; font-size: 11px; }
.cc-tool-header strong { color: var(--cc-teal-deep); font-size: 14px; letter-spacing: .015em; }
.cc-tool-header span { text-align: right; }
.cc-unit-note { margin: 17px 24px 0; color: #6a796f; font-size: 11px; line-height: 1.7; }
.cc-variables { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; gap: 20px 22px; padding: 24px; }
.cc-variable { min-width: 0; margin: 0; }
.cc-variable-wide { grid-column: 1 / -1; }
.cc-variable > label, .cc-variable > span:first-child { display: block; margin-bottom: 7px; color: #425a50; font-size: 12px; line-height: 1.5; font-weight: 600; }
.cc-measure { display: flex; align-items: stretch; min-width: 0; min-height: 47px; border: 1px solid #b8c6b8; border-radius: 2px; background: #fcfcf8; }
.cc-measure:focus-within { outline: 2px solid var(--cc-focus); outline-offset: 2px; border-color: transparent; }
.cc-measure input, .cc-measure select, .cc-measure textarea { display: block; width: 100%; min-width: 0; padding: 10px 11px; color: var(--cc-ink); background: transparent; border: 0; border-radius: 0; outline: none; font-size: 15px; line-height: 1.5; }
.cc-measure input { font-variant-numeric: tabular-nums; }
.cc-measure select { cursor: pointer; padding-right: 5px; }
.cc-measure textarea { min-height: 95px; resize: vertical; }
.cc-measure .cc-unit-picker { flex-shrink: 0; width: auto; max-width: 48%; border-left: 1px solid #d0d9ca; color: var(--cc-teal); background: #edf2e9; padding: 8px 5px 8px 8px; font-size: 11px; }
.cc-unit-label { display: flex; align-items: center; flex-shrink: 0; max-width: 48%; padding: 8px 10px; border-left: 1px solid #d0d9ca; color: #586b61; background: #f0f3ec; font-size: 10px; line-height: 1.35; overflow-wrap: anywhere; }
.cc-input-error { margin: 0 24px 24px; padding: 13px 15px; border-left: 3px solid #ad3d25; color: #892f21; background: #fff1e9; font-size: 13px; }
.cc-readout { margin: 0; padding: 19px 24px 15px; color: #e6eee3; background: var(--cc-teal-deep); border-top: 3px solid var(--cc-gold); }
.cc-readout:empty { display: none; }
.cc-readout select:focus-visible { outline-color: var(--cc-gold); }
.cc-answer { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; min-width: 0; padding: 13px 0; border-bottom: 1px solid #ffffff24; font-size: 12px; line-height: 1.6; }
.cc-answer:last-child { border-bottom: 0; }
.cc-answer > span { flex: 1; min-width: 0; color: #cadcd2; }
.cc-answer-value { display: flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 7px; flex: 0 1 58%; min-width: 0; text-align: right; }
.cc-answer output { max-width: 100%; color: #ffffff; font-size: 19px; font-weight: 500; line-height: 1.4; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.cc-answer:first-child { padding-top: 6px; padding-bottom: 17px; }
.cc-answer:first-child output { color: #f2df9c; font-size: 32px; line-height: 1.2; letter-spacing: -.03em; }
.cc-answer small { font-size: 11px; font-weight: 400; letter-spacing: 0; color: #d7e5d8; }
.cc-answer-unit { max-width: 100%; border: 1px solid #6a8b7e; border-radius: 2px; padding: 5px 6px; background: #214d48; color: #f2f5eb; font-size: 11px; line-height: 1.5; cursor: pointer; }
.cc-answer-unit option { background: var(--cc-teal-deep); color: white; }
.cc-tool-actions { display: flex; flex-wrap: wrap; gap: 9px; padding: 17px 24px; background: #f7f8f1; border-top: 1px solid var(--cc-rule); }
button, .cc-link-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 8px 14px; border: 1px solid #acbdaa; border-radius: 2px; color: var(--cc-ink); background: #fffefa; font-size: 12px; font-weight: 600; line-height: 1.5; text-decoration: none; transition: background .15s, border-color .15s; }
button:hover, .cc-link-button:hover { color: var(--cc-teal-deep); background: #eaf0e4; border-color: #7e9a85; text-decoration: none; }
.cc-link-button.cc-emphasis, button.cc-emphasis { padding: 12px 21px; color: white; background: var(--cc-teal); border-color: var(--cc-teal); }
.cc-link-button.cc-emphasis:hover, button.cc-emphasis:hover { color: white; background: var(--cc-teal-deep); border-color: var(--cc-teal-deep); }
.cc-tool-status { margin: 0; padding: 0 24px 12px; color: #5e7567; background: #f7f8f1; font-size: 11px; }
.cc-tool-status:empty { padding-bottom: 0; }

/* Notes, equations and citations read like a carefully kept laboratory notebook. */
.cc-chapter { padding-top: 31px; margin: 43px 0 0; border-top: 1px solid var(--cc-rule); }
.cc-section-number { display: inline-block; min-width: 25px; margin-right: 6px; vertical-align: .3em; color: #895a35; font: 11px/1.5 var(--cc-mono); letter-spacing: 0; }
.cc-chapter p, .cc-chapter li { color: var(--cc-body); }
.cc-chapter ol { padding-left: 25px; }
.cc-chapter ol li::marker { color: var(--cc-copper); font: 12px var(--cc-mono); }
.cc-equation { margin: 22px 0; padding: 23px 24px; border: 1px solid #dbd3b3; border-top: 3px solid #c8ae62; background: #f8f3de; color: #3e4c3c; font: 14px/1.9 var(--cc-mono); white-space: pre-wrap; overflow-wrap: anywhere; }
.cc-example-note { position: relative; margin-top: 31px; padding: 26px 27px 28px; background: #f2eadb; border-left: 4px solid #b5794b; }
.cc-example-note h2 { margin: 0 0 15px; font-size: 26px; }
.cc-example-note p { font-size: 15px; }
.cc-example-note button { background: #fcf7ec; border-color: #c5b196; color: #754727; }
.cc-questions { margin-top: 44px; padding-top: 30px; border-top: 1px solid var(--cc-rule); }
.cc-questions details { padding: 17px 0; border-bottom: 1px solid var(--cc-rule); }
.cc-questions summary { cursor: pointer; padding-right: 12px; color: var(--cc-ink); font-size: 14px; font-weight: 600; line-height: 1.6; }
.cc-questions summary::marker { color: var(--cc-copper); }
.cc-questions details[open] summary { color: var(--cc-teal); }
.cc-questions details p { margin: 16px 0 0; padding-left: 20px; color: var(--cc-muted); font-size: 14px; }
.cc-bibliography { padding-left: 19px; margin: 0; font-size: 13px; overflow-wrap: anywhere; }
.cc-bibliography li { padding: 0 0 13px 3px; margin-bottom: 14px; border-bottom: 1px solid var(--cc-rule); }
.cc-bibliography li::marker { color: var(--cc-copper); }
.cc-bibliography p { margin: 7px 0 0; color: var(--cc-muted); font-size: 12px; line-height: 1.65; }
.cc-method-note { margin: 24px 0; padding: 18px 0 18px 18px; border-left: 2px solid #b8c7a9; color: var(--cc-muted); background: #f1f3e9; font-size: 12px; line-height: 1.8; }
.cc-jump-menu { display: none; }
.cc-tool-directory { list-style: none; padding: 0; margin: 0; border-top: 1px solid #bbcdbb; }
.cc-tool-directory li { margin: 0; padding: 22px 0; border-bottom: 1px solid var(--cc-rule); }
.cc-tool-directory li > a { color: var(--cc-teal); font: 400 23px/1.35 var(--cc-serif); letter-spacing: -.02em; text-decoration: none; }
.cc-tool-directory li > a:hover { text-decoration: underline; color: var(--cc-copper); }
.cc-tool-directory p { max-width: 70ch; margin: 7px 0 0; color: var(--cc-muted); font-size: 13px; line-height: 1.7; }
.cc-reference-page .cc-main > section:not(.cc-chapter) { margin-top: 34px; }
.cc-reference-page .cc-main > section > h2 { margin-top: 40px; }
.cc-footer { margin-top: 10px; background: var(--cc-teal-deep); color: #d0dccf; border-top: 5px solid var(--cc-gold); }
.cc-footer-content { display: flex; justify-content: space-between; align-items: flex-start; gap: 35px; max-width: 1256px; margin: auto; padding: 38px 28px 42px; font-size: 12px; line-height: 1.8; }
.cc-footer-content > div:first-child { max-width: 430px; }
.cc-footer strong { color: #f2efdf; font-family: var(--cc-serif); font-size: 20px; font-weight: 400; }
.cc-footer p { margin: 8px 0 0; }
.cc-footer a { color: #e2eadc; text-decoration: none; }
.cc-footer a:hover { color: #f0da8e; text-decoration: underline; }
.cc-footer-nav { display: flex; flex-wrap: wrap; gap: 10px 23px; justify-content: flex-end; max-width: 420px; padding-top: 4px; font-size: 11px; }

@media (min-width: 1600px) {
  .cc-frame { gap: 40px; max-width: 1340px; grid-template-columns: 210px minmax(0, 780px) 190px; }
  .cc-home .cc-frame { max-width: 1280px; }
}
@media (max-width: 1150px) {
  .cc-frame { grid-template-columns: 180px minmax(0, 760px); gap: 26px; max-width: 1050px; padding-top: 38px; }
  .cc-reading-rail { display: none; }
  .cc-header-content { gap: 25px; }
  .cc-header-links .cc-free-note { display: none; }
  .cc-introduction { gap: 35px; padding-top: 55px; }
  .cc-introduction h1 { font-size: clamp(49px, 6vw, 65px); }
  .cc-element-board { padding: 35px 20px 20px; gap: 10px; }
  .cc-element-board::before { left: 20px; font-size: 7px; }
  .cc-element-tile { padding: 14px 16px; }
  .cc-jump-menu { display: block; padding: 15px 18px; margin: 30px 0; border: 1px solid #c6d1bf; background: #f2f4e9; font-size: 12px; }
  .cc-jump-menu summary { cursor: pointer; color: var(--cc-ink); font-weight: 600; }
  .cc-jump-menu a { display: block; padding: 7px 0; font-size: 12px; }
  .cc-jump-menu a:first-of-type { margin-top: 10px; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 185px; }
  body { font-size: 15px; line-height: 1.75; }
  .cc-masthead { border-top-width: 4px; }
  .cc-header-content { padding: 14px 20px 9px; gap: 12px; flex-wrap: wrap; }
  .cc-wordmark { font-size: 24px; gap: 9px; }
  .cc-wordmark svg { width: 28px; height: 28px; }
  .cc-header-links { margin-left: auto; gap: 16px; font-size: 12px; }
  .cc-search { order: 3; flex-basis: 100%; max-width: none; margin-left: 0; }
  .cc-search input { height: 36px; font-size: 13px; }
  .cc-topic-strip { padding: 0 20px; gap: 22px; }
  .cc-topic-strip a { padding-top: 8px; padding-bottom: 9px; font-size: 10px; }
  .cc-frame { display: block; padding: 29px 20px 60px; }
  .cc-home .cc-frame { padding-top: 0; }
  .cc-rail { display: none; }
  h1 { font-size: 37px; letter-spacing: -.04em; }
  h2 { font-size: 27px; }
  .cc-deck { font-size: 16px; }
  .cc-trail { margin-bottom: 19px; font-size: 10px; gap: 6px; }
  .cc-credits { margin-top: 19px; font-size: 10px; padding-bottom: 19px; }
  .cc-introduction { grid-template-columns: minmax(0, 1fr); gap: 35px; padding: 38px 0 34px; }
  .cc-introduction h1 { font-size: clamp(46px, 9.5vw, 66px); max-width: 600px; margin-bottom: 20px; }
  .cc-introduction .cc-deck { max-width: 600px; font-size: 16px; }
  .cc-kicker { font-size: 10px; margin-bottom: 16px; letter-spacing: .11em; }
  .cc-collection-facts { margin-top: 26px; gap: 12px 22px; }
  .cc-element-board { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 34px 16px 15px; gap: 10px; }
  .cc-element-board::before { left: 16px; font-size: 8px; }
  .cc-element-tile { aspect-ratio: 1.15; padding: 12px 14px; }
  .cc-element-tile:nth-child(2), .cc-element-tile:nth-child(3) { margin-top: 0; }
  .cc-element-tile small { font-size: 9px; margin-bottom: 6px; }
  .cc-element-tile strong { font-size: clamp(35px, 7.5vw, 52px); }
  .cc-element-tile span { font-size: 10px; margin-top: 7px; }
  .cc-board-caption { grid-column: 1 / -1; margin: 3px 0 0; font-size: 14px; }
  .cc-topic-directory { column-gap: 24px; }
  .cc-topic-entry { min-height: 107px; gap: 10px; padding-top: 17px; padding-bottom: 17px; }
  .cc-topic-copy strong { font-size: 19px; }
  .cc-topic-copy small { font-size: 10px; }
  .cc-topic-number { font-size: 9px; }
  .cc-topic-count { min-width: 16px; font-size: 10px; }
  .cc-go { font-size: 15px; }
  .cc-home .cc-tool-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cc-tool-links { gap: 13px; }
  .cc-tool-link { padding-left: 14px; padding-top: 16px; padding-bottom: 17px; }
  .cc-tool-link strong { font-size: 19px; }
  .cc-tool-link p { font-size: 11px; }
  .cc-home #approach { padding-left: 20px; }
  .cc-home #approach h2 { font-size: 30px; }
  .cc-editor-note { display: block; }
  .cc-section-heading { gap: 12px; align-items: flex-start; }
  .cc-section-heading h2 { font-size: 27px; }
  .cc-section-heading > a { font-size: 11px; padding-top: 5px; }
  .cc-workbench { margin-top: 25px; box-shadow: 3px 3px 0 #e7eadd; }
  .cc-tool-header { padding: 16px 18px; gap: 15px; }
  .cc-tool-header strong { font-size: 13px; }
  .cc-tool-header span { max-width: 130px; font-size: 10px; }
  .cc-unit-note { margin: 14px 18px 0; }
  .cc-variables { padding: 20px 18px; gap: 18px; }
  .cc-variable > label, .cc-variable > span:first-child { font-size: 11px; }
  .cc-measure input, .cc-measure select, .cc-measure textarea { font-size: 16px; }
  .cc-measure .cc-unit-picker { font-size: 11px; }
  .cc-readout { padding: 17px 18px 13px; }
  .cc-answer { gap: 15px; font-size: 11px; }
  .cc-answer output { font-size: 18px; }
  .cc-answer:first-child output { font-size: 28px; }
  .cc-answer-value { flex-basis: 57%; }
  .cc-answer-unit { font-size: 10px; }
  .cc-tool-actions { padding: 15px 18px; gap: 8px; }
  .cc-tool-actions button { padding: 8px 11px; font-size: 11px; }
  .cc-tool-status { padding-left: 18px; padding-right: 18px; }
  .cc-input-error { margin-left: 18px; margin-right: 18px; }
  .cc-chapter { margin-top: 34px; padding-top: 26px; }
  .cc-equation { padding: 20px; font-size: 13px; }
  .cc-example-note { padding: 23px 21px; }
  .cc-example-note h2 { font-size: 25px; }
  .cc-questions summary { font-size: 13px; }
  .cc-questions details p { font-size: 13px; }
  .cc-tool-directory li > a { font-size: 22px; }
  .cc-footer-content { flex-direction: column; gap: 23px; padding: 31px 20px 35px; }
  .cc-footer-nav { justify-content: flex-start; gap: 12px 21px; }
}
@media (max-width: 520px) {
  .cc-variables { grid-template-columns: minmax(0, 1fr); }
  .cc-variable-wide { grid-column: auto; }
  .cc-topic-directory { grid-template-columns: minmax(0, 1fr); }
  .cc-topic-entry { min-height: 84px; gap: 14px; }
  .cc-topic-copy strong { font-size: 21px; }
  .cc-topic-copy small { font-size: 11px; }
  .cc-topic-count { min-width: 25px; }
  .cc-tool-links, .cc-home .cc-tool-links { grid-template-columns: minmax(0, 1fr); }
  .cc-tool-link { padding: 18px 20px; }
  .cc-tool-link p { margin-right: 0; font-size: 12px; }
  .cc-home .cc-main > section:not(.cc-introduction) { margin-top: 36px; }
  .cc-main > section + section { margin-top: 35px; }
  .cc-home #approach { margin-left: 0; }
}
@media (max-width: 360px) {
  .cc-header-content, .cc-topic-strip { padding-left: 15px; padding-right: 15px; }
  .cc-frame { padding-left: 15px; padding-right: 15px; }
  .cc-wordmark { font-size: 22px; }
  .cc-header-links { font-size: 11px; }
  .cc-introduction h1 { font-size: 43px; }
  .cc-element-board { gap: 8px; padding-left: 10px; padding-right: 10px; }
  .cc-element-tile { padding: 10px; }
  .cc-element-tile span { font-size: 9px; }
  .cc-collection-facts { gap: 15px; }
  .cc-collection-facts span { padding-left: 9px; }
  .cc-answer:first-child output { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
@media print {
  html { scroll-padding-top: 0; }
  body { background: white; color: black; font-size: 11px; }
  .cc-masthead, .cc-rail, .cc-tool-actions, .cc-tool-status, .cc-footer, .cc-jump-menu, .cc-skip-link { display: none; }
  .cc-frame { display: block; max-width: none; margin: 0; padding: 0; }
  h1 { font-size: 28px; }
  h2 { font-size: 21px; }
  .cc-workbench { box-shadow: none; break-inside: avoid; }
  .cc-readout { color: black; background: white; border: 1px solid #aaa; }
  .cc-answer > span, .cc-answer output, .cc-answer:first-child output, .cc-answer small { color: black; }
  .cc-answer { border-color: #ccc; }
  .cc-answer-unit { color: black; background: white; }
  .cc-questions details p { display: block; }
  .cc-element-board { display: none; }
  .cc-introduction { display: block; }
  a { color: black; }
}
