/* World Tree — Guía de manejo de Paulownia (Guatemala) — website styles. Mobile first. */
:root {
  --ink: #06101f; --night: #11264a; --deep: #1d3a66;
  --leaf: #90aa3e; --leaf-deep: #65782b; --leaf-bright: #a8c14a;
  --bone: #f4f1e8; --bone-soft: #fffdf8;
  --text: #2f3a33; --muted: #6b7a5a;
  --line: rgba(90, 104, 64, 0.18); --line-dark: rgba(255, 255, 255, 0.14);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --accent: 'Bricolage Grotesque', system-ui, sans-serif;
  --header-h: 56px;
  --sub-h: 0px;
  --pad: 20px;
  --wrap: 1120px;
}
:root:has(.toc) { --sub-h: 52px; }
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--sub-h) + 16px); }
body { margin: 0; background: var(--bone-soft); color: var(--text); font-family: var(--sans); font-size: 17px; line-height: 1.65; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
img { display: block; height: auto; }
a { color: var(--leaf-deep); text-underline-offset: 3px; }
a:hover { color: var(--night); }
:focus-visible { outline: 2px solid var(--leaf); outline-offset: 3px; }
::selection { background: var(--leaf); color: var(--ink); }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--leaf); color: var(--ink); padding: 10px 14px; font-weight: 600; }
.skip:focus { left: 8px; }
.kicker { font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf); }
.kicker.dark { color: var(--leaf-deep); }
.icon { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 20px; border-radius: 4px; border: 1px solid transparent;
  font-family: var(--accent); font-size: 12.5px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.btn-primary { background: var(--leaf); color: var(--ink); }
.btn-primary:hover { background: var(--leaf-bright); color: var(--ink); }
.btn-ghost { border-color: rgba(255, 255, 255, 0.4); color: #fff; background: transparent; }
.btn-ghost:hover { border-color: var(--leaf); color: var(--leaf); }
.btn-line { border-color: var(--night); color: var(--night); background: transparent; }
.btn-line:hover { background: var(--night); color: #fff; }

/* ───────── Header ───────── */
.site-header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--night); color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.site-header .bar { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--pad); }
.brand { display: flex; align-items: center; min-height: 44px; }
.brand img { height: 24px; width: auto; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.hbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; background: none; color: #fff; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 4px;
  font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; cursor: pointer; }
.hbtn:hover { border-color: var(--leaf); color: var(--leaf); }
.hbtn.icon-only { padding: 0; width: 40px; justify-content: center; }
.hbtn.pdf { display: none; border-color: var(--leaf); color: var(--leaf); }
/* Language switch */
.lang { display: inline-flex; height: 40px; border: 1px solid rgba(255, 255, 255, 0.32); border-radius: 4px; overflow: hidden; }
.lang a { display: inline-flex; align-items: center; padding: 0 9px; color: rgba(255, 255, 255, 0.85); text-decoration: none; font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; }
.lang a:hover { color: var(--leaf); }
.lang a.on { background: var(--leaf); color: var(--ink); }
@media (max-width: 699px) {
  .header-actions { gap: 6px; }
  .brand img { height: 22px; }
  .hbtn { padding: 0 11px; }
}
@media (max-width: 379px) { .site-header .hbtn.icon-only { display: none; } }
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none; }
.progress span { display: block; height: 100%; width: 0; background: var(--leaf); }

/* ───────── Menu + search ───────── */
.menu { position: fixed; inset: 0; z-index: 60; background: var(--night); color: #fff; overflow-y: auto; overscroll-behavior: contain; }
.menu-inner { max-width: 640px; margin: 0 auto; padding: 0 var(--pad) 48px; }
.menu-top { position: sticky; top: 0; background: var(--night); height: var(--header-h); display: flex; align-items: center; justify-content: space-between; z-index: 1; }
.search { position: relative; margin: 12px 0 8px; }
.search .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: rgba(255, 255, 255, 0.6); }
.search input { width: 100%; height: 52px; padding: 0 16px 0 44px; background: var(--deep); color: #fff; border: 1px solid rgba(255, 255, 255, 0.2); border-radius: 4px; font: inherit; font-size: 17px; }
.search input::placeholder { color: rgba(255, 255, 255, 0.55); }
.search input:focus { outline: 2px solid var(--leaf); outline-offset: 0; }
.results { list-style: none; margin: 0 0 8px; padding: 0; }
.results a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: #fff; text-decoration: none; }
.results .r-ch { font-family: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); }
.results .r-h { font-size: 17px; font-weight: 600; margin-top: 2px; }
.results .r-t { font-size: 14.5px; line-height: 1.5; color: rgba(255, 255, 255, 0.7); margin-top: 4px; }
.results mark { background: none; color: var(--leaf-bright); font-weight: 600; }
.results .empty { padding: 14px 0; color: rgba(255, 255, 255, 0.7); }
.menu h2 { margin: 24px 0 4px; font-family: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf); }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a { display: flex; gap: 16px; align-items: baseline; min-height: 54px; padding: 14px 0; border-bottom: 1px solid var(--line-dark); color: #fff; text-decoration: none; font-size: 18px; line-height: 1.3; }
.menu-list a:hover { color: var(--leaf-bright); }
.menu-list a[aria-current="page"] { color: var(--leaf-bright); }
.menu-list .n { font-family: var(--accent); font-size: 12px; font-weight: 600; color: var(--leaf); width: 26px; flex: none; }
.menu .btn { width: 100%; margin-top: 24px; }
.menu .btn + .btn { margin-top: 12px; }
body.menu-open { overflow: hidden; }

/* ───────── Home ───────── */
.hero { background: var(--night); color: #fff; }
.hero-photo { position: relative; }
/* The cover photo is tall; it is framed low enough to keep the farmer at the foot of the trees in view. */
.hero-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 55%; }
.hero-text { padding: 32px var(--pad) 40px; }
.hero h1 { margin: 14px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 8.6vw, 54px); line-height: 1.06; letter-spacing: -0.01em; text-wrap: balance; }
.hero-lede { margin: 18px 0 0; font-size: 17px; line-height: 1.6; color: rgba(255, 255, 255, 0.86); max-width: 52ch; }
.hero-cta { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.hero-cap { position: absolute; left: 0; bottom: 0; padding: 7px 12px 7px var(--pad); background: rgba(6, 16, 31, 0.74); font-family: var(--accent); font-size: 12px; line-height: 1.3; color: rgba(255, 255, 255, 0.92); }
.section { padding: 48px 0; }
.section.bone { background: var(--bone); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section h2 { margin: 10px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 6.4vw, 38px); line-height: 1.1; color: var(--night); }
.intro p { margin: 18px 0 0; max-width: 68ch; text-wrap: pretty; }
.cards { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
.card { display: flex; flex-direction: column; height: 100%; padding: 22px 22px 20px; background: var(--bone-soft); border: 1px solid var(--line); color: inherit; text-decoration: none; transition: border-color .18s ease, background .18s ease; }
.card:hover, .card:focus-visible { border-color: var(--leaf-deep); color: inherit; }
.card .num { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--leaf-deep); }
.card .title { margin: 12px 0 0; font-family: var(--serif); font-size: 23px; line-height: 1.15; color: var(--night); }
.card .topics { margin: 10px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.card .go { margin-top: auto; padding-top: 18px; display: inline-flex; align-items: center; gap: 8px; font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--leaf-deep); }
.card:hover .go { color: var(--night); }

/* ───────── Chapter page ───────── */
.ch-hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 22px 0 32px; }
.back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: rgba(255, 255, 255, 0.75); text-decoration: none; font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.back:hover { color: var(--leaf); }
.contact .back { margin-bottom: 18px; }
.ch-hero .kicker { margin-top: 14px; }
.ch-hero h1 { position: relative; z-index: 1; margin: 12px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(34px, 8.4vw, 52px); line-height: 1.06; text-wrap: balance; max-width: 16em; }
.ch-hero .sub { position: relative; z-index: 1; margin: 12px 0 0; font-size: 17px; color: rgba(255, 255, 255, 0.8); }
.ch-hero .ghost { position: absolute; right: 8px; bottom: -26px; font-family: var(--serif); font-size: 150px; line-height: 1; color: rgba(255, 255, 255, 0.06); pointer-events: none; user-select: none; }
.ch-layout { display: block; padding-top: 0; padding-bottom: 8px; }
.ch-layout.no-toc { padding-top: 28px; }
/* On phones the section list is a sticky bar under the header that always shows where you are */
.toc { position: sticky; top: var(--header-h); z-index: 30; margin: 0 calc(var(--pad) * -1) 28px; background: var(--bone); border-bottom: 1px solid var(--line); }
.toc summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 52px; padding: 0 var(--pad); cursor: pointer; list-style: none; color: var(--leaf-deep); }
.toc-l { min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.toc-k { font-family: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf-deep); }
.toc-cur { font-size: 15.5px; font-weight: 600; line-height: 1.25; color: var(--night); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toc-cur:empty { display: none; }
.toc summary::-webkit-details-marker { display: none; }
.toc summary .icon { transition: transform .18s ease; }
.toc[open] summary .icon { transform: rotate(180deg); }
.toc ol { position: absolute; left: 0; right: 0; top: 100%; list-style: none; margin: 0; padding: 0 var(--pad) 8px; background: var(--bone); border-bottom: 1px solid var(--line); max-height: 62vh; overflow-y: auto; box-shadow: 0 12px 24px rgba(6, 16, 31, 0.16); }
.toc li a { display: block; padding: 11px 0; border-top: 1px solid var(--line); color: var(--night); text-decoration: none; font-size: 15.5px; line-height: 1.35; }
.toc li a:hover { color: var(--leaf-deep); }
.toc li a.is-current { color: var(--leaf-deep); font-weight: 600; }

/* Prose */
.prose { min-width: 0; max-width: 720px; }
.prose > :first-child { margin-top: 0; }
.prose p { margin: 0 0 16px; text-wrap: pretty; }
.prose h3 { margin: 40px 0 12px; font-family: var(--serif); font-weight: 400; font-size: 26px; line-height: 1.18; color: var(--night); text-wrap: balance; }
.prose h4 { margin: 28px 0 8px; font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--leaf-deep); }
.prose h3 + h4 { margin-top: 8px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin: 0 0 8px; padding-left: 2px; }
.prose li::marker { color: var(--leaf-deep); }
.prose strong { font-weight: 700; color: var(--night); }
.callout { margin: 6px 0 22px; padding: 18px 20px; font-size: 16px; line-height: 1.6; }
.callout p { margin: 0 0 10px; }
.callout > :last-child, .callout p:last-child { margin-bottom: 0; }
.callout ul { margin: 0; }
.callout.note { background: var(--bone); border: 1px solid var(--line); }
.callout.warn { border: 1px solid var(--night); border-left-width: 5px; background: #fff; }
.callout.warn .lead { font-weight: 600; color: var(--night); }
.label { font-family: var(--accent); font-size: 11.5px; font-weight: 600; letter-spacing: 0.15em; text-transform: uppercase; color: var(--leaf-deep); margin-bottom: 8px; }
.callout.warn .label { color: var(--night); }
figure { margin: 0; }
figcaption { margin-top: 8px; font-family: var(--accent); font-size: 13px; line-height: 1.45; color: var(--muted); }
figure.full { margin: 24px 0 26px; }
figure.full img { width: 100%; }
figure.full img.portrait { width: min(100%, 440px); margin: 0 auto; }
img.r43 { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
img.r11 { width: 100%; aspect-ratio: 1; object-fit: cover; }
.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; }
.zoom::after { content: ""; position: absolute; right: 8px; bottom: 8px; width: 34px; height: 34px; border-radius: 4px; background: rgba(6, 16, 31, 0.72) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M9 4H4v5M15 4h5v5M9 20H4v-5M15 20h5v-5'/%3E%3C/svg%3E") center / 18px no-repeat; opacity: 0.9; }
.diagram { background: var(--bone); border: 1px solid var(--line); padding: 16px; }
.diagram svg { display: block; width: 100%; height: auto; }
.split .diagram svg { max-width: 300px; margin: 0 auto; }
.split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 0 0 18px; }
.split.flow { display: flex; flex-direction: column; }
.split.flow > .side { order: 2; }
.split > p, .split-text > p:last-child { margin-bottom: 0; }
.split .callout { margin: 0; }
.side.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 6px 0 22px; }
.grid2 .callout { margin: 0; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 6px 0 22px; }
.npk { display: grid; grid-template-columns: 44px 1fr; column-gap: 12px; align-items: start; padding: 16px 18px; border: 1px solid var(--line); border-top: 3px solid var(--leaf); background: #fff; }
.npk-sym { grid-row: span 2; font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--leaf-deep); }
.npk-name { font-weight: 600; color: var(--night); font-size: 16px; }
.npk-desc { font-size: 15px; line-height: 1.5; }
.steps { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin-top: 12px; }
.step { display: flex; gap: 10px; align-items: baseline; }
.step .n { font-family: var(--accent); font-size: 14px; font-weight: 700; color: var(--leaf-deep); }
.step .t { font-size: 15px; line-height: 1.4; }
.diagram.cut { display: grid; grid-template-columns: 1fr; gap: 16px; justify-items: center; padding: 20px; }
.cut-svg { width: 180px !important; }
.cut-steps { display: flex; flex-direction: column; gap: 12px; }
.cut-step { display: flex; gap: 12px; }
.cut-step .k { font-family: var(--accent); font-size: 15px; font-weight: 700; color: var(--leaf-deep); flex: 0 0 16px; }
.cut-step p { margin: 0; font-size: 15.5px; line-height: 1.55; }
.figref { font-weight: 600; }

/* Laboratories */
.labs { display: grid; gap: 12px; margin: 6px 0 24px; }
.lab { padding: 18px 20px; border: 1px solid var(--line); background: #fff; }
.lab-name { font-weight: 600; font-size: 17px; line-height: 1.35; color: var(--night); }
.lab-info { margin-top: 6px; font-size: 15.5px; line-height: 1.55; }
.lab-info a { overflow-wrap: anywhere; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border: 1px solid var(--night); border-radius: 4px; color: var(--night); text-decoration: none;
  font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.chip:hover { background: var(--night); color: #fff; }

/* Pager */
.pager { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 40px 0 0; padding-top: 28px; border-top: 1px solid var(--line); }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; border: 1px solid var(--line); background: #fff; color: inherit; text-decoration: none; min-height: 88px; }
.pager a:hover { border-color: var(--leaf-deep); }
.pager .dir { display: inline-flex; align-items: center; gap: 8px; font-family: var(--accent); font-size: 11.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf-deep); }
.pager .ttl { font-family: var(--serif); font-size: 21px; line-height: 1.2; color: var(--night); }
.pager .next { background: var(--night); border-color: var(--night); }
.pager .next .dir { color: var(--leaf); }
.pager .next .ttl { color: #fff; }
.pager .next:hover { background: var(--deep); border-color: var(--deep); }

/* Contact block */
.contact { background: var(--ink); color: #fff; padding: 48px 0; margin-top: 56px; }
.contact.page { margin-top: 0; padding: 40px 0 64px; min-height: 60vh; }
.contact h1, .contact h2 { margin: 12px 0 0; font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 6.6vw, 40px); line-height: 1.1; color: #fff; text-wrap: balance; }
.person { margin-top: 28px; padding: 24px 0; border-top: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); }
.person .name { font-family: var(--serif); font-size: 28px; line-height: 1.2; }
.person .role { margin-top: 8px; font-family: var(--accent); font-size: 12px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--leaf); }
.person .ways { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.person .way { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 16px; border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 4px; color: #fff; text-decoration: none; }
.person .way:hover { border-color: var(--leaf); color: #fff; }
.person .way .icon { color: var(--leaf); width: 20px; height: 20px; }
.person .way small { display: block; font-family: var(--accent); font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.6); }
.person .way span { display: block; font-size: 17px; overflow-wrap: anywhere; }
.contact .note { margin: 22px 0 0; max-width: 56ch; font-size: 16px; line-height: 1.6; color: rgba(255, 255, 255, 0.7); }

/* Footer */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, 0.6); border-top: 1px solid var(--line-dark); padding: 26px 0 34px; font-size: 13.5px; }
.site-footer .row { display: flex; flex-direction: column; gap: 18px; }
.site-footer img { height: 22px; width: auto; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.site-footer a { color: rgba(255, 255, 255, 0.8); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--leaf); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 80; background: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 56px 12px 20px; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); width: auto; height: auto; object-fit: contain; background: #fff; }
.lightbox p { margin: 14px 0 0; max-width: 70ch; text-align: center; font-family: var(--accent); font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, 0.8); }
.lightbox .close { position: absolute; top: 8px; right: 8px; }
.totop { position: fixed; right: 14px; bottom: 14px; z-index: 40; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center; background: var(--night); color: #fff; border: 1px solid rgba(255, 255, 255, 0.3); border-radius: 4px; cursor: pointer; }
.totop:hover { background: var(--deep); }
.notfound { padding: 72px 0; }

/* ───────── Wider screens ───────── */
@media (min-width: 560px) {
  .hero-cta { flex-direction: row; flex-wrap: wrap; }
  .grid3 { grid-template-columns: repeat(3, 1fr); }
  .npk { display: block; }
  .npk-sym { margin-bottom: 8px; }
  .diagram.cut { grid-template-columns: 180px 1fr; gap: 28px; justify-items: start; align-items: center; padding: 24px; }
  .person .ways { flex-direction: row; flex-wrap: wrap; }
  .person .way { flex: 1 1 260px; }
  .pager { grid-template-columns: 1fr 1fr; }
  .pager .next { text-align: right; align-items: flex-end; }
  .pager .only { grid-column: 2; }
}
@media (min-width: 700px) {
  :root { --pad: 32px; --header-h: 64px; }
  body { font-size: 18px; }
  .brand img { height: 28px; }
  .hero-photo img { aspect-ratio: 4 / 3; object-position: 50% 73%; }
  .hbtn.pdf { display: inline-flex; }
  .cards { grid-template-columns: 1fr 1fr; gap: 16px; }
  .split { grid-template-columns: minmax(0, 1fr) 240px; gap: 26px; align-items: start; }
  .split.flow { display: flow-root; }
  .split.flow > .side { float: right; width: 270px; margin: 6px 0 10px 28px; }
  .split.flow > .side.pair { width: 320px; }
  .grid2 { grid-template-columns: 1fr 1.5fr; }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .section { padding: 72px 0; }
  .site-footer .row { flex-direction: row; align-items: center; justify-content: space-between; }
  .ch-hero { padding: 28px 0 44px; }
  .ch-hero .ghost { font-size: 280px; right: 32px; bottom: -52px; color: rgba(255, 255, 255, 0.07); }
}
@media (min-width: 960px) {
  .hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); }
  .hero { min-height: min(84vh, 760px); }
  .hero-photo { order: 2; min-height: 540px; }
  .hero-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; object-position: 50% 70%; }
  .hero-cap { padding-left: 14px; }
  .hero-text { padding: 72px 56px 64px max(var(--pad), calc((100vw - var(--wrap)) / 2 + var(--pad))); display: flex; flex-direction: column; justify-content: center; }
  :root:has(.toc) { --sub-h: 0px; }
  .ch-layout { display: grid; grid-template-columns: 260px minmax(0, 720px); gap: 56px; padding-top: 48px; }
  .ch-layout.no-toc { grid-template-columns: minmax(0, 720px); padding-top: 48px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); z-index: 1; align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; margin: 0; background: none; border: 0; border-left: 1px solid var(--line); }
  .toc summary { pointer-events: none; height: auto; padding: 0 0 10px 18px; }
  .toc summary .icon, .toc-cur { display: none; }
  .toc ol { position: static; padding: 0; background: none; border: 0; box-shadow: none; max-height: none; overflow: visible; }
  .toc li a { border-top: 0; padding: 8px 0 8px 18px; margin-left: -1px; border-left: 2px solid transparent; font-size: 15px; }
  .toc li a.is-current { border-left-color: var(--leaf); }
}
@media (min-width: 1180px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .site-header, .menu, .pager, .toc, .totop, .site-footer, .hero-cta, .chips, .zoom::after { display: none !important; }
  body { background: #fff; font-size: 11pt; }
  .ch-hero, .hero, .contact { background: #fff !important; color: #000 !important; }
  .ch-hero h1, .hero h1, .contact h2 { color: #000 !important; }
}
