/*
 * Instructions (BetterDocs) and the volunteer page in the 2026 design (owner-approved prototypes, 22 Oct 19:30).
 * Loaded only on single docs and the volunteer page (inc/docs-presentation.php). Presentation only.
 * BetterDocs prints inline style blocks, so selectors carry the html:not(#em26-docs) prefix for ID-level weight.
 */

/* ---------- frame: site container, sidebar left, content right ---------- */
html:not(#em26-docs) body.em26-docs .betterdocs-wrapper { padding: 2rem 0 4rem !important; background: transparent !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-content-wrapper {
  display: flex !important;
  gap: 3.5rem !important;
  align-items: flex-start !important;
  width: min(calc(100% - 4rem), var(--em26-container, 80rem)) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding: 0 !important;
}

/* sidebar */
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar { position: sticky; top: 6rem; flex: 0 0 17rem !important; width: 17rem !important; max-width: 17rem !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar :is(.betterdocs-sidebar-content, .betterdocs-category-grid-wrapper, .betterdocs-category-grid-inner-wrapper) { padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar * { font-family: var(--em26-font-sans, Manrope, "Manrope Fallback", "Manrope Fallback Roboto", sans-serif) !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-single-category-wrapper {
  margin: 0 0 0.5rem !important;
  border: 1px solid rgba(22, 53, 61, 0.12) !important;
  border-radius: 0.75rem !important;
  background: var(--em26-surface, #fffefa) !important;
  box-shadow: none !important;
}
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar :is(.betterdocs-single-category-wrapper, .betterdocs-category-header)::before,
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar :is(.betterdocs-single-category-wrapper, .betterdocs-category-header)::after { display: none !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar [class*="active"] { border-right-width: 1px !important; box-shadow: none !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-single-category-wrapper.active { border-color: var(--em26-cobalt, #1d5dbb) !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-category-header { min-height: 44px; padding: 0.85rem 1rem !important; background: transparent !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-category-title { color: var(--em26-ink, #16353d) !important; font-size: 0.9375rem !important; font-weight: 650 !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar :is(.betterdocs-category-icon, .betterdocs-category-header img, .betterdocs-articles-list li svg) { display: none !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar :is(.betterdocs-body, .betterdocs-articles-list) { margin: 0 !important; padding: 0.25rem 1rem 0.75rem !important; background: transparent !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-articles-list li { margin: 0 !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-articles-list li a { display: flex; align-items: center; min-height: 40px; padding: 0.25rem 0; color: #16353d !important; font-size: 0.9rem !important; line-height: 1.35; }
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-articles-list li :is(a.active, a[aria-current]),
html:not(#em26-docs) body.em26-docs .betterdocs-sidebar .betterdocs-articles-list li.active a { color: var(--em26-cobalt, #1d5dbb) !important; font-weight: 700 !important; }
html:not(#em26-docs) body.em26-docs :is(.sticky-toc-container, .close-toc) { display: none !important; }

/* ---------- content column ---------- */
html:not(#em26-docs) body.em26-docs .betterdocs-content-area { flex: 1 1 auto !important; min-width: 0; max-width: 60rem !important; padding: 0 !important; background: transparent !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-breadcrumb,
html:not(#em26-docs) body.em26-docs .betterdocs-breadcrumb * { color: #5d7075 !important; font-size: 0.8125rem !important; }
html:not(#em26-docs) body.em26-docs :is(.betterdocs-entry-header, .betterdocs-entry-content) { margin: 0 !important; padding: 0 !important; border: 0 !important; }
html:not(#em26-docs) body.em26-docs :is(.betterdocs-entry-header, .docs-single-title)::after { display: none !important; }
html:not(#em26-docs) body.em26-docs.em26-docs--filament :is(.docs-single-title h1, .betterdocs-entry-title)::before {
  content: "3D-друк · інструкції";
  display: block;
  margin: 0 0 0.6rem;
  color: var(--em26-cobalt, #1d5dbb);
  letter-spacing: 0.02em !important;
  font: 700 0.8125rem/1.3 var(--em26-font-sans, Manrope, "Manrope Fallback", "Manrope Fallback Roboto", sans-serif);
  letter-spacing: 0.02em;
}
html:not(#em26-docs) body.em26-docs :is(.docs-single-title h1, .betterdocs-entry-title) {
  margin: 1.25rem 0 1.25rem !important;
  border: 0 !important;
  color: var(--em26-ink, #16353d) !important;
  font: 800 clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem) / 1.12 var(--em26-font-sans, Manrope, "Manrope Fallback", "Manrope Fallback Roboto", sans-serif) !important;
  letter-spacing: -0.015em !important;
  text-transform: none !important;
}
html:not(#em26-docs) body.em26-docs .betterdocs-content { color: #16353d !important; font: 400 1.0625rem/1.65 var(--em26-font-sans, Manrope, "Manrope Fallback", "Manrope Fallback Roboto", sans-serif) !important; }
html:not(#em26-docs) body.em26-docs .em26-doc-meta { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0 0 1.25rem !important; color: #5d7075; font: 600 0.8125rem/1.4 var(--em26-font-sans, Manrope, "Manrope Fallback", "Manrope Fallback Roboto", sans-serif); }
html:not(#em26-docs) body.em26-docs .em26-doc-meta span + span::before { content: "·"; margin-right: 1rem; color: rgba(22, 53, 61, 0.42); }
html:not(#em26-docs) body.em26-docs .betterdocs-content a { color: var(--em26-cobalt, #1d5dbb); font-weight: 650; text-underline-offset: 3px; }

/* intro and the dark callout: the plate spans the whole content column (owner: as wide as both slides) */
html:not(#em26-docs) body.em26-docs .em26-doc-intro { margin: 0 0 2rem; }
html:not(#em26-docs) body.em26-docs .em26-doc-intro > * { max-width: none !important; margin: 0 0 0.75rem !important; }
html:not(#em26-docs) body.em26-docs .em26-doc-intro .has-small-font-size { font-size: inherit !important; }
html:not(#em26-docs) body.em26-docs .em26-doc-callout {
  display: block;
  margin: 1rem 0 1.25rem !important;
  padding: 1.1rem 1.5rem !important;
  border-radius: 0.75rem;
  background: var(--em26-ink, #16353d);
  color: var(--em26-paper, #fffefa) !important;
  line-height: 1.6;
}
html:not(#em26-docs) body.em26-docs .em26-doc-callout :is(strong, b) { color: inherit; }
html:not(#em26-docs) body.em26-docs .em26-doc-callout a { color: var(--em26-saffron, #f2b632) !important; }
html:not(#em26-docs) body.em26-docs .em26-doc-callout a[href^="tel:"],
html:not(#em26-docs) body.em26-docs .em26-doc-callout a[href*="t.me/"] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.5rem 0.75rem 0 0;
  padding: 0 1rem;
  border-radius: 0.625rem;
  background: var(--em26-saffron, #f2b632);
  color: var(--em26-ink, #16353d) !important;
  font-weight: 800;
  text-decoration: none;
}
html:not(#em26-docs) body.em26-docs .em26-doc-callout a[href^="tel:"]:focus-visible,
html:not(#em26-docs) body.em26-docs .em26-doc-callout a[href*="t.me/"]:focus-visible { outline: 3px solid var(--em26-paper, #fffefa); outline-offset: 2px; }

/* separator sections → cards */
html:not(#em26-docs) body.em26-docs .em26-doc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; margin: 0 0 2.5rem; }
html:not(#em26-docs) body.em26-docs .em26-doc-card {
  padding: 1.25rem 1.25rem 1rem;
  border: 1px solid rgba(22, 53, 61, 0.12);
  border-top: 3px solid var(--em26-cobalt, #1d5dbb);
  border-radius: 0.75rem;
  background: var(--em26-surface, #fffefa);
  font-size: 0.9375rem;
  line-height: 1.55;
}
html:not(#em26-docs) body.em26-docs .em26-doc-card > p:first-child { margin: 0 0 0.75rem !important; color: var(--em26-ink, #16353d); font-size: 1rem; font-weight: 800; line-height: 1.35; }
html:not(#em26-docs) body.em26-docs .em26-doc-card p { margin: 0.6rem 0 0.25rem !important; }
html:not(#em26-docs) body.em26-docs .em26-doc-card :is(ul, ol) { margin: 0 0 0.25rem !important; padding-left: 1.1rem !important; }
html:not(#em26-docs) body.em26-docs .em26-doc-card li { margin: 0.1rem 0 !important; }
html:not(#em26-docs) body.em26-docs .em26-doc-body { margin: 0 0 2rem; }

/* slides */
html:not(#em26-docs) body.em26-docs .betterdocs-content figure.wp-block-gallery { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem !important; margin: 0 !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-content figure.wp-block-gallery > figure { width: 100% !important; max-width: none !important; margin: 0 !important; flex: none !important; }
html:not(#em26-docs) body.em26-docs .betterdocs-content figure.wp-block-gallery img { display: block; width: 100% !important; height: auto !important; border-radius: 0.75rem; box-shadow: 0 1px 2px rgba(22, 53, 61, 0.06), 0 10px 26px rgba(22, 53, 61, 0.08); }
html:not(#em26-docs) body.em26-docs .betterdocs-entry-footer { margin-top: 2.5rem !important; padding-top: 1.25rem !important; border-top: 1px solid rgba(22, 53, 61, 0.12) !important; }

/* colour reference: live palette (same data as the filament section; colour is never altered) */
html:not(#em26-docs) body.em26-docs .em26-doc-palettes { display: grid; gap: 2rem; margin: 0 0 2.5rem; }
html:not(#em26-docs) body.em26-docs .em26-doc-palette h2 {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: 0 0 1rem !important;
  padding-left: 0.75rem;
  border-left: 4px solid var(--em26-cobalt, #1d5dbb);
  color: var(--em26-ink, #16353d) !important;
  font: 800 1.375rem/1.2 var(--em26-font-sans, Manrope, "Manrope Fallback", "Manrope Fallback Roboto", sans-serif) !important;
}
html:not(#em26-docs) body.em26-docs .em26-doc-palette--petg h2 { border-left-color: var(--em26-turquoise, #129a9a); }
html:not(#em26-docs) body.em26-docs .em26-doc-palette h2 span { color: #5d7075; font: 500 0.8125rem/1 var(--em26-font-mono, "IBM Plex Mono", monospace); }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 0.75rem; }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__tile {
  display: grid;
  gap: 0.15rem;
  padding: 0 0 0.7rem;
  overflow: hidden;
  border: 1px solid rgba(22, 53, 61, 0.12);
  border-radius: 0.75rem;
  background: var(--em26-surface, #fffefa);
  color: var(--em26-ink, #16353d) !important;
  text-decoration: none !important;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
html:not(#em26-docs) body.em26-docs .em26-doc-palette__tile:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(22, 53, 61, 0.12); }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__tile:focus-visible { outline: 3px solid var(--em26-cobalt, #1d5dbb); outline-offset: 2px; }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__sw { display: block; height: 4.5rem; margin-bottom: 0.45rem; box-shadow: inset 0 -1px 0 rgba(22, 53, 61, 0.12); }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__sw.is-clear { background: repeating-conic-gradient(#e8edf0 0 25%, #fff 0 50%) 0 0 / 12px 12px; }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__sw.is-silk { background-image: linear-gradient(115deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.38) 68%, rgba(255, 255, 255, 0)); }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__sw.is-marble { background-image: linear-gradient(100deg, transparent 38%, rgba(255, 255, 255, 0.4) 39%, transparent 41%), linear-gradient(72deg, transparent 58%, rgba(0, 0, 0, 0.14) 59%, transparent 60.5%); }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__tile b { padding: 0 0.7rem; font-size: 0.8125rem; font-weight: 700; line-height: 1.3; }
html:not(#em26-docs) body.em26-docs .em26-doc-palette__tile small { padding: 0 0.7rem; color: #5d7075; font: 500 0.6875rem/1.3 var(--em26-font-mono, "IBM Plex Mono", monospace); }
html:not(#em26-docs) body.em26-docs .em26-doc-slides-label { margin: 0 0 1rem !important; color: #5d7075; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
html:not(#em26-docs) body.em26-docs .em26-doc-palettes + .em26-doc-slides-label + figure.wp-block-gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ---------- tablets and phones: one column, sidebar after the article ---------- */
@media (max-width: 63.99rem) {
  html:not(#em26-docs) body.em26-docs .betterdocs-content-wrapper { flex-direction: column !important; gap: 1.5rem !important; width: min(calc(100% - 2rem), var(--em26-container, 80rem)) !important; }
  html:not(#em26-docs) body.em26-docs .betterdocs-sidebar { position: static; order: 2; flex: none !important; width: 100% !important; max-width: none !important; }
  html:not(#em26-docs) body.em26-docs .betterdocs-content-area { max-width: none !important; }
  html:not(#em26-docs) body.em26-docs .betterdocs-content { font-size: 1rem !important; }
  html:not(#em26-docs) body.em26-docs .betterdocs-content figure.wp-block-gallery,
  html:not(#em26-docs) body.em26-docs .em26-doc-palettes + .em26-doc-slides-label + figure.wp-block-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  html:not(#em26-docs) body.em26-docs .em26-doc-palette__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 40rem) {
  html:not(#em26-docs) body.em26-docs .betterdocs-content figure.wp-block-gallery { grid-template-columns: 1fr; }
  html:not(#em26-docs) body.em26-docs .em26-doc-callout { padding: 1rem 1.1rem !important; }
}

/* ---------- volunteer page: H1 on the section scale, eyebrow ---------- */
html:not(#em26-docs) body.em26-page--volunteer .em26-entry--page { max-width: none; }
html:not(#em26-docs) body.em26-page--volunteer .em26-entry__eyebrow { margin: 0 0 0.6rem; color: var(--em26-cobalt, #1d5dbb); font: 700 0.8125rem/1.3 var(--em26-font-sans, Manrope, "Manrope Fallback", "Manrope Fallback Roboto", sans-serif); letter-spacing: 0.02em; }
html:not(#em26-docs) body.em26-page--volunteer .em26-entry__title { max-width: none; margin: 0 0 1.5rem !important; font-size: clamp(1.75rem, 1.3rem + 1.2vw, 2.25rem) !important; line-height: 1.12 !important; letter-spacing: -0.015em; }
html:not(#em26-docs) body.em26-page--volunteer .em26-entry__title::after { display: none !important; }
