/* fueles.com — identity: charcoal #1D1B19, amber #D98E04, brick #B23A2E, cream #FBF6EC.
   Type: DM Serif Display (headings), DM Sans (text), both hosted on this site. */

@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-var.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("../fonts/dm-sans-italic-var.woff2") format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Serif Display"; src: url("../fonts/dm-serif-display-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --ink: #1D1B19;
  --amber: #D98E04;
  --brick: #B23A2E;
  --cream: #FBF6EC;
  --paper: #FFFDF8;
  --cream-2: #F3EADA;
  --rule: #D9CDB5;
  --muted: #5B534A;
  --taupe: #7A6F5F;
  --focus: #1D1B19;
  --serif: "DM Serif Display", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --gutter: 1rem;
  --measure: 66ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1.5rem; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brick); text-underline-offset: 0.18em; text-decoration-thickness: 0.08em; }
a:hover { text-decoration-thickness: 0.15em; }
p { margin: 0 0 1em; }
sub { font-size: 0.72em; line-height: 0; vertical-align: baseline; position: relative; top: 0.28em; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.01em; margin: 0 0 0.5em; font-synthesis: none; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem); }
h2 { font-size: clamp(1.65rem, 1.3rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.15rem; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--amber); color: var(--ink); }
main:focus { outline: none; }
[hidden] { display: none !important; }

.wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.svg-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip-link { position: absolute; left: 0.5rem; top: -4rem; z-index: 100; background: var(--ink); color: var(--cream); padding: 0.7rem 1rem; border-radius: 3px; }
.skip-link:focus { top: 0.5rem; }

/* ---------- Header ---------- */
.site-header { background: var(--cream); border-bottom: 2px solid var(--ink); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1.5rem; padding-block: 0.85rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; color: var(--ink); }
.brand-name { font-family: var(--serif); font-size: 1.7rem; line-height: 1; letter-spacing: -0.01em; }
.bm-tile { fill: var(--ink); }
.bm-flame { fill: var(--amber); }
.bm-core { fill: var(--cream); }
.primary-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; list-style: none; margin: 0; padding: 0; }
.primary-nav a { display: inline-block; padding: 0.35rem 0; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 3px solid transparent; }
.primary-nav a:hover { border-bottom-color: var(--rule); }
.primary-nav a[aria-current="page"] { border-bottom-color: var(--amber); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #EDE5D4; margin-top: 4rem; padding-block: 3rem 2rem; border-top: 4px solid var(--amber); }
.page-home .site-footer { margin-top: 0; }
.site-footer a { color: #F6EED9; }
.site-footer a:hover { color: var(--amber); }
.site-footer :focus-visible { outline-color: var(--amber); }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.footer-brand { font-family: var(--serif); font-size: 1.7rem; margin: 0 0 0.5rem; color: var(--cream); }
.footer-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 0.6rem; color: var(--amber); }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.4rem; }
.footer-base { margin: 2.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid #4A443D; font-size: 0.9rem; color: #CFC6B2; }

/* ---------- Breadcrumbs, page heads ---------- */
.crumbs { padding-block: 1rem 0; font-size: 0.9rem; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 0.15rem 0.6rem; list-style: none; margin: 0; padding: 0; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 0.6rem; color: var(--rule); }
.crumbs a { color: var(--muted); }
.page-head { padding-block: 1.25rem 1.5rem; max-width: 52rem; }
.page-head h1 { margin-bottom: 0.4em; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; color: #35302B; max-width: 46rem; }
.page-updated { font-size: 0.9rem; color: var(--muted); margin: 0; }

/* ---------- Buttons and fields ---------- */
.btn { display: inline-block; font: 600 1rem/1.2 var(--sans); padding: 0.8rem 1.3rem; border: 2px solid var(--ink); border-radius: 3px; text-decoration: none; cursor: pointer; background: transparent; color: var(--ink); transition: background-color 0.12s, color 0.12s; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: var(--cream); }
.btn-primary:hover:not(:disabled) { background: var(--amber); color: var(--ink); }
.btn-quiet:hover:not(:disabled) { background: var(--cream-2); }
.btn-amber { background: var(--amber); border-color: var(--amber); color: var(--ink); }
.btn-amber:hover { background: #F0A41A; border-color: #F0A41A; }
.btn-small { padding: 0.55rem 0.95rem; font-size: 0.95rem; }
.field { margin-bottom: 1.1rem; }
.field label, fieldset legend { display: block; font-weight: 600; margin-bottom: 0.35rem; padding: 0; }
input[type="text"], input[type="email"], input[type="search"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--paper); border: 2px solid var(--ink); border-radius: 3px; padding: 0.65rem 0.75rem; }
textarea { resize: vertical; min-height: 9rem; }
input[type="radio"], input[type="checkbox"] { width: 1.15rem; height: 1.15rem; accent-color: var(--ink); margin: 0 0.5rem 0 0; vertical-align: -0.2rem; }
fieldset { border: 0; margin: 0 0 1.1rem; padding: 0; min-width: 0; }
.choice { display: block; margin-bottom: 0.4rem; cursor: pointer; }
.choice-inline { margin-top: 0.6rem; }
.hint { font-size: 0.92rem; color: var(--muted); }
.has-error input, .has-error textarea { border-color: var(--brick); }
.field-error { color: var(--brick); font-weight: 600; margin: 0.35rem 0 0; font-size: 0.95rem; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 0.92rem; color: var(--muted); }
.notice { border: 2px solid var(--ink); border-left-width: 8px; background: var(--paper); padding: 0.9rem 1.1rem; margin: 1.25rem 0; }
.notice p { margin: 0; }
.notice-ok { border-left-color: var(--amber); }
.notice-error { border-left-color: var(--brick); }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2rem, 6vw, 4.5rem); border-bottom: 2px solid var(--ink); }
.hero-grid { display: grid; gap: 2.5rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
.hero h1 { font-size: clamp(2.5rem, 1.5rem + 4.6vw, 4.5rem); line-height: 1.02; max-width: 12ch; }
.hero .lede { max-width: 34rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0 1rem; }
.hero-panel { background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); padding: 0; max-width: 36rem; width: 100%; }
.panel-body { padding: 1.25rem 1.25rem 1rem; }
.credit { font-size: 0.82rem; color: var(--muted); margin: 0.45rem 0 0; line-height: 1.4; }
.credit a { color: inherit; }
.panel-title { font-size: 1.5rem; margin-bottom: 0.75rem; }
.panel-note { font-size: 0.95rem; margin: 0.75rem 0 0; color: #35302B; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.5rem, 6vw, 4.25rem); }
.section-tint { background: var(--cream-2); border-block: 1px solid var(--rule); }
.section-ink { background: var(--ink); color: #EDE5D4; }
.section-ink a { color: #F6EED9; }
.section-ink h2 { color: var(--cream); }
.section-ink :focus-visible { outline-color: var(--amber); }
.section-ink .btn-amber { color: var(--ink); }
.split { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1fr); }
.split > *, .hero-grid > *, .compare-grid > *, .article-layout > *, .page-layout > *, .snapshot { min-width: 0; }
.split-aside > :last-child, .split-main > :last-child { margin-bottom: 0; }

.topic-list { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 2px solid var(--ink); }
.topic-row { display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; align-items: center; padding: 1.1rem 0.25rem; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.topic-row:hover { background: var(--paper); }
.topic-row .icon { color: var(--brick); grid-row: span 2; }
.topic-name { display: block; font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; }
.topic-sum { display: block; color: #35302B; }
.topic-count { grid-column: 2; font-size: 0.9rem; color: var(--muted); }
.topic-row:hover .topic-name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }

.essential-grid { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 1.75rem 2rem; grid-template-columns: 1fr; }
.essential { border-top: 4px solid var(--ink); padding-top: 0.85rem; }
.essential h3 { margin-bottom: 0.4rem; }
.essential h3 a { color: var(--ink); text-decoration: none; }
.essential h3 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.essential p { margin: 0; color: #35302B; }
.more { margin-top: 1.75rem; font-weight: 600; }

.source-list { margin: 0 0 1.25rem; }
.source-list div { padding: 0.8rem 0; border-top: 1px solid #4A443D; }
.source-list div:first-child { border-top: 0; padding-top: 0; }
.source-list dt { font-weight: 700; color: var(--cream); }
.source-list dd { margin: 0.15rem 0 0; color: #CFC6B2; }
.limits { color: #CFC6B2; margin: 0; }

/* ---------- Charts ---------- */
.legend { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; list-style: none; margin: 0 0 0.75rem; padding: 0; font-weight: 500; font-size: 0.95rem; }
.legend li { display: inline-flex; align-items: center; gap: 0.4rem; }
.swatch { flex: none; vertical-align: -0.3rem; }
.swatch-rect { stroke: var(--ink); stroke-width: 1.5; }
.chart-pair, .chart-grid { display: grid; gap: 1.25rem 2rem; grid-template-columns: 1fr; }
.chart-fig { margin: 0; min-width: 0; }
.chart-fig figcaption { font-weight: 600; margin-bottom: 0.35rem; font-size: 0.95rem; }
.chart-unit { font-weight: 400; color: var(--muted); }
.bar-chart { display: block; width: 100%; max-width: 30rem; height: auto; overflow: visible; }
.chart-label { font: 600 13px var(--sans); fill: var(--ink); }
.chart-value { font: 700 14px var(--sans); fill: var(--ink); }
.chart-empty { font: italic 400 13px var(--sans); fill: var(--muted); }
.chart-bar { stroke: var(--ink); stroke-width: 1.5; }
.chart-zero { stroke: var(--ink); stroke-width: 3; }
.pf-amber { fill: var(--amber); }
.pf-brick { fill: var(--brick); }
.pf-cream { fill: var(--cream); }
.pf-ink { fill: var(--ink); }
.pf-taupe { fill: var(--taupe); }
.pf-cream-line { stroke: var(--cream); stroke-width: 1.4; fill: none; }

/* One orchestrated moment: the hero bars grow once on load. */
@media (prefers-reduced-motion: no-preference) {
  .hero .chart-bar { transform-box: fill-box; transform-origin: left center; animation: bar-grow 0.8s cubic-bezier(.2,.7,.2,1) both; }
  .hero .chart-fig:nth-child(2) .chart-bar { animation-delay: 0.12s; }
}
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1.25rem 0; border: 2px solid var(--ink); background: var(--paper); -webkit-overflow-scrolling: touch; }
.table-wrap:focus-visible { outline-offset: 2px; }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
caption { text-align: left; padding: 0.7rem 0.85rem; font-size: 0.9rem; color: var(--muted); border-bottom: 1px solid var(--rule); caption-side: top; }
th, td { padding: 0.65rem 0.85rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
thead th { background: var(--ink); color: var(--cream); font-weight: 600; border-bottom: 0; white-space: nowrap; }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.a-right { text-align: right; }
.a-center { text-align: center; }
.th-unit { display: block; font-weight: 400; font-size: 0.85rem; opacity: 0.85; }
tbody .th-unit { color: var(--muted); opacity: 1; }
.cell-note { display: block; font-weight: 400; font-size: 0.82rem; color: var(--muted); line-height: 1.35; margin-top: 0.15rem; }
.cell-empty { color: var(--muted); font-style: italic; font-size: 0.92rem; }
.num { font-weight: 700; font-size: 1.05rem; }
.cite { font-size: 0.7rem; margin-left: 0.15rem; }
.compare-table tbody th[scope="row"] { min-width: 10rem; }
.compare-table td { min-width: 8.5rem; }

/* ---------- Prose ---------- */
.prose { font-size: 1.125rem; line-height: 1.7; max-width: var(--measure); }
.prose h2 { margin-top: 2.2em; padding-top: 0.6em; border-top: 2px solid var(--ink); scroll-margin-top: 1rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.7em; scroll-margin-top: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose li::marker { color: var(--brick); }
.prose blockquote { margin: 1.5em 0; padding: 0.2em 0 0.2em 1.1rem; border-left: 5px solid var(--amber); color: #2D2925; }
.prose blockquote p { margin: 0; }
.prose code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 0.92em; background: var(--cream-2); padding: 0.1em 0.3em; border-radius: 2px; }
.prose pre { overflow-x: auto; background: var(--paper); border: 2px solid var(--ink); padding: 0.9rem 1rem; }
.prose pre code { background: none; padding: 0; }
.prose .table-wrap { max-width: none; }
.prose table { font-size: 0.95rem; }
/* The closing sections of an article are visually quieter. */
.prose #sources + ul, .prose #sources + ol { font-size: 0.98rem; line-height: 1.55; }
.prose #sources + ul a, .prose #sources + ol a { overflow-wrap: anywhere; }
.prose #frequently-asked-questions ~ h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; letter-spacing: 0; margin-top: 1.4em; }

/* ---------- Article ---------- */
.article-head { padding-block: 1rem 0; min-width: 0; }
.article-head h1 { max-width: 20ch; font-size: clamp(2.1rem, 1.4rem + 3vw, 3.4rem); }
.article-topic { margin: 0 0 0.6rem; font-weight: 600; }
.article-topic a { color: var(--brick); }
.byline { color: var(--muted); font-size: 0.95rem; margin: 0; }
.article-hero, .topic-hero { margin: 1.25rem 0 0; min-width: 0; }
.article-hero img, .topic-hero img { display: block; width: 100%; height: auto; aspect-ratio: 1200 / 627; object-fit: cover; border: 2px solid var(--ink); background: var(--ink); }
.topic-hero { margin: 0 0 2rem; }
.article-layout, .page-layout { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; padding-bottom: 2rem; }
.page-layout { padding-top: 0.5rem; }
.article-aside .toc ol { list-style: none; margin: 0 0 1.25rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem 1rem; }
.article-aside .toc a { color: var(--ink); font-size: 0.95rem; }
.aside-h { font-family: var(--sans); font-size: 1rem; font-weight: 700; letter-spacing: 0; margin: 0 0 0.5rem; }
.aside-box { border: 2px solid var(--ink); background: var(--paper); padding: 1rem 1.1rem; }
.aside-box p { margin: 0 0 0.6rem; font-size: 0.95rem; }
.aside-fuels { margin: 0 0 0.9rem; padding-left: 1.1rem; font-size: 0.95rem; }
.article-main, .page-main { min-width: 0; }
.related { margin-top: 3rem; padding-top: 1.5rem; border-top: 4px solid var(--ink); }
.related-list { list-style: none; margin: 0; padding: 0; }
.related-list li { padding: 0.85rem 0; border-bottom: 1px solid var(--rule); }
.related-list a { font-weight: 600; display: block; }
.related-list span { display: block; color: #35302B; font-size: 0.95rem; }
.correction-note { margin-top: 2rem; font-size: 0.95rem; color: var(--muted); }
.prev-next { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 2rem; }
.pn { display: block; border: 2px solid var(--ink); padding: 0.85rem 1rem; text-decoration: none; color: var(--ink); background: var(--paper); }
.pn:hover { background: var(--cream-2); }
.pn-label { display: block; font-size: 0.85rem; color: var(--muted); }
.pn-title { display: block; font-family: var(--serif); font-size: 1.2rem; line-height: 1.2; }
.pn-next { text-align: right; }

/* ---------- Explorer and lists ---------- */
.explorer { margin-bottom: 2rem; max-width: 52rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.chip { font: 600 0.95rem/1.2 var(--sans); padding: 0.55rem 0.9rem; border: 2px solid var(--ink); border-radius: 3px; background: transparent; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--cream-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--cream); }
.explorer-status { color: var(--muted); font-size: 0.95rem; margin: 0; }
.ex-group { margin-bottom: 2.75rem; }
.ex-group > h2 { border-top: 4px solid var(--ink); padding-top: 0.6rem; font-size: 1.75rem; }
.ex-group > h2 a { color: var(--ink); text-decoration: none; }
.ex-group > h2 a:hover { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; }
.ex-items { list-style: none; margin: 0; padding: 0; display: grid; gap: 0 2.5rem; grid-template-columns: 1fr; }
.ex-item { padding: 1rem 0; border-bottom: 1px solid var(--rule); }
.ex-item h3 { margin: 0 0 0.3rem; font-size: 1.3rem; }
.ex-item h3 a { color: var(--ink); text-decoration-color: var(--rule); }
.ex-item h3 a:hover { text-decoration-color: var(--amber); }
.ex-item p { margin: 0 0 0.3rem; color: #35302B; font-size: 0.98rem; }
.ex-meta { font-size: 0.85rem; color: var(--muted); }
.topic-prose { margin-bottom: 3rem; }
.topic-articles { max-width: 60rem; padding-bottom: 1rem; }

/* ---------- Comparator ---------- */
.compare-app { padding-bottom: 2rem; }
.compare-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
.picker, .controls { border: 2px solid var(--ink); background: var(--paper); padding: 1.1rem 1.25rem; min-width: 0; }
.picker h2, .controls h2 { font-size: 1.55rem; }
.fuel-group { margin-bottom: 1rem; }
.fuel-group h3 { font-family: var(--sans); font-size: 0.95rem; font-weight: 700; letter-spacing: 0; margin-bottom: 0.45rem; color: var(--muted); }
.fuel-buttons { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(10.5rem, 1fr)); }
.fuel-btn { width: 100%; text-align: left; font: 600 0.98rem/1.25 var(--sans); padding: 0.6rem 0.75rem 0.6rem 1.9rem; border: 2px solid var(--rule); border-radius: 3px; background: var(--cream); color: var(--ink); cursor: pointer; position: relative; min-height: 3.1rem; }
.fuel-btn::before { content: ""; position: absolute; left: 0.65rem; top: 0.85rem; width: 0.7rem; height: 0.7rem; border: 2px solid var(--ink); border-radius: 2px; background: var(--paper); }
.fuel-btn:hover:not(:disabled) { border-color: var(--ink); }
.fuel-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.fuel-btn[aria-pressed="true"]::before { background: var(--amber); border-color: var(--amber); }
.fuel-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.fuel-btn-name { display: block; }
.fuel-btn-state { display: block; font-weight: 400; font-size: 0.82rem; opacity: 0.8; }
.picker-actions { margin: 0.5rem 0 0; }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 0.8rem; margin: 0 0 1.5rem; }
.toolbar-status { font-size: 0.95rem; color: var(--muted); }
.results { margin-bottom: 2.5rem; min-height: 4rem; }
.result-block > h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); scroll-margin-top: 1rem; }
.result-block > h2:focus { outline: none; }
.result-sub { color: var(--muted); }
.chart-grid { margin: 1rem 0 0.5rem; }
.basis-hint { font-size: 0.92rem; color: #35302B; max-width: 52rem; }
.lifecycle, .value-notes, .cites { margin-top: 2rem; max-width: 56rem; }
.lifecycle { border-left: 6px solid var(--brick); padding-left: 1.1rem; }
.lifecycle h3, .value-notes h3, .cites h3 { margin-bottom: 0.4rem; }
.value-notes ul, .cite-list { padding-left: 1.25rem; font-size: 0.95rem; }
.value-notes li, .cite-list li { margin-bottom: 0.45rem; }
.cite-list a { overflow-wrap: anywhere; }
.empty-state { border: 2px dashed var(--ink); padding: 1.25rem 1.5rem 1.5rem; background: var(--paper); }
.suggest-list { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.suggest { border-top: 4px solid var(--ink); padding-top: 0.7rem; }
.suggest h3 { font-size: 1.3rem; }
.suggest p { font-size: 0.97rem; color: #35302B; }
.limits-block, section.limits { border: 2px solid var(--ink); border-left-width: 8px; border-left-color: var(--brick); background: var(--paper); padding: 1.1rem 1.4rem; margin: 0 0 1.5rem; color: var(--ink); }
section.limits h2 { font-size: 1.55rem; }
section.limits ul { padding-left: 1.2rem; margin: 0 0 0.8rem; }
section.limits li { margin-bottom: 0.4rem; }
section.limits p:last-child { margin-bottom: 0; color: var(--ink); }
.local-save { max-width: 52rem; }
.local-save h2 { font-size: 1.5rem; }
.print-only { display: none; }

/* ---------- Contact, 404, data ---------- */
.contact-form { max-width: 40rem; margin-top: 2rem; padding: 1.25rem 1.4rem; border: 2px solid var(--ink); background: var(--paper); }
.contact-form h2 { font-size: 1.6rem; }
.not-found { padding-block: 3rem; }
.nf-links { padding-left: 1.2rem; font-size: 1.1rem; }
.data-section { margin-top: 3rem; }
.data-table { font-size: 0.9rem; }
.data-table .dt-fuel { min-width: 9rem; background: var(--cream-2); }
.data-table td, .data-table th { padding: 0.55rem 0.7rem; }
.cell-more { margin-top: 0.4rem; font-size: 0.85rem; text-align: left; }
.cell-more summary { cursor: pointer; color: var(--brick); font-weight: 600; }
.cell-more p { margin: 0.4rem 0 0; line-height: 1.4; overflow-wrap: anywhere; }
.data-table .dt-measure { min-width: 9.5rem; }
.data-table .dt-value { min-width: 14rem; }
.data-table .dt-source { min-width: 18rem; overflow-wrap: anywhere; }
.data-table .dt-date { min-width: 7.5rem; white-space: nowrap; }
.data-table .dt-fuel { min-width: 10rem; max-width: 12rem; }
.source-register { padding-left: 1.4rem; font-size: 0.95rem; }
.source-register li { margin-bottom: 0.5rem; overflow-wrap: anywhere; }

/* ---------- Photographs ---------- */
.topic-tiles { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); }
.tile { min-width: 0; }
.tile-link { position: relative; display: block; min-height: 16rem; border: 2px solid var(--ink); color: var(--cream); text-decoration: none; overflow: hidden; background: var(--ink); }
.tile-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29, 27, 25, 0.95) 0%, rgba(29, 27, 25, 0.78) 40%, rgba(29, 27, 25, 0.14) 74%, rgba(29, 27, 25, 0) 100%); }
.tile-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; display: block; padding: 1.1rem 1.25rem 1.2rem; }
.tile-body .icon { display: block; color: var(--amber); margin-bottom: 0.3rem; }
.tile-name { display: block; font-family: var(--serif); font-size: 1.65rem; line-height: 1.1; }
.tile-sum { display: block; margin-top: 0.3rem; font-size: 0.95rem; line-height: 1.45; color: #EDE5D4; }
.tile-count { display: block; margin-top: 0.55rem; font-size: 0.85rem; font-weight: 600; color: #F0C45A; }
.tile-link:hover .tile-name { text-decoration: underline; text-decoration-color: var(--amber); text-decoration-thickness: 3px; text-underline-offset: 0.2em; }
@media (prefers-reduced-motion: no-preference) {
  .tile-img, .essential-img, .ex-img { transition: transform 0.6s cubic-bezier(.2, .7, .2, 1); }
  .tile-link:hover .tile-img, .essential:hover .essential-img, .ex-item:hover .ex-img { transform: scale(1.045); }
}

.essential { border-top: 0; padding-top: 0; }
.essential-photo { display: block; margin: 0 0 0.85rem; border: 2px solid var(--ink); overflow: hidden; background: var(--ink); }
.essential-img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 8; object-fit: cover; }

.section-photo { background: linear-gradient(rgba(29, 27, 25, 0.9), rgba(29, 27, 25, 0.95)), url("../img/photos/article-how-crude-oil-is-refined.webp") center / cover no-repeat, var(--ink); }

.ex-item.has-thumb { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 0 1rem; align-items: start; }
.ex-thumb { display: block; border: 2px solid var(--ink); overflow: hidden; background: var(--ink); }
.ex-img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.ex-text { min-width: 0; }

.credits-table .cr-thumb { width: 6.5rem; }
.credits-table .cr-thumb img { display: block; width: 96px; height: auto; border: 1px solid var(--ink); }

/* ---------- Wider screens ---------- */
@media (min-width: 40rem) {
  :root { --gutter: 1.5rem; }
  .topic-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-link { min-height: 18rem; }
  .ex-item.has-thumb { grid-template-columns: 9.5rem minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .essential-grid { grid-template-columns: repeat(2, 1fr); }
  .chart-pair { grid-template-columns: repeat(2, 1fr); }
  .suggest-list { grid-template-columns: repeat(3, 1fr); }
  .topic-row { grid-template-columns: auto 1fr auto; }
  .topic-row .icon { grid-row: auto; }
  .topic-count { grid-column: auto; }
  .prev-next { grid-template-columns: 1fr 1fr; }
  .prev-next .pn-next { grid-column: 2; }
  .prev-next .pn-prev:only-child { grid-column: 1; }
}
@media (min-width: 56rem) {
  .topic-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.25rem; }
  .tile { grid-column: span 2; }
  .tile:nth-child(n+4) { grid-column: span 3; }
  .tile-link { min-height: 21rem; }
  .topic-hero img { aspect-ratio: 21 / 8; max-height: 28rem; }
  .hero-grid { grid-template-columns: 1.1fr 1fr; gap: 3.5rem; }
  .hero-panel .chart-pair { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr 1.5fr; gap: 3.5rem; }
  .essential-grid { grid-template-columns: repeat(3, 1fr); }
  .compare-grid { grid-template-columns: 1.5fr 1fr; align-items: start; }
  .chart-grid { grid-template-columns: repeat(3, 1fr); }
  .ex-items { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 62rem) {
  .article-layout { grid-template-columns: 15rem minmax(0, 44rem); grid-template-rows: auto auto 1fr; justify-content: center; column-gap: 3rem; row-gap: 0.5rem; }
  .article-layout .article-head { grid-column: 2; grid-row: 1; }
  .article-layout .article-hero { grid-column: 1 / -1; grid-row: 2; margin-bottom: 1.25rem; }
  .article-layout .article-hero img { aspect-ratio: 21 / 8; max-height: 30rem; }
  .article-layout .article-aside { grid-column: 1; grid-row: 3; }
  .article-layout .article-main { grid-column: 2; grid-row: 3; }
  .page-layout { grid-template-columns: 15rem minmax(0, 46rem); justify-content: center; }
  .article-aside { position: sticky; top: 1.25rem; align-self: start; }
  .article-aside .toc ol { display: block; }
  .article-aside .toc li { margin-bottom: 0.45rem; line-height: 1.35; }
}
.page-layout:not(:has(.article-aside)) { grid-template-columns: minmax(0, 46rem); justify-content: center; }

/* ---------- Motion and print ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print {
  @page { margin: 14mm; }
  body { background: #fff; color: #000; font-size: 10.5pt; }
  .site-header, .site-footer, .skip-link, .crumbs, .picker, .controls, .toolbar, .local-save, .empty-state .btn, .primary-nav, .article-hero, .topic-hero, .ex-thumb, .essential-photo, .tile-img { display: none !important; }
  .compare-grid { display: none !important; }
  .print-only { display: block !important; margin-top: 1.5rem; font-size: 9pt; }
  .table-wrap { overflow: visible; border-color: #000; }
  thead th { background: #fff !important; color: #000; border-bottom: 2px solid #000; }
  .chart-fig, .table-wrap, .lifecycle, section.limits { break-inside: avoid; }
  a { color: #000; text-decoration: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; word-break: break-all; }
  .chart-grid { grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
  h1 { font-size: 22pt; }
  .page-head { padding-block: 0 0.5rem; }
  * { box-shadow: none !important; }
}
