/* EchoGuides: product guide browser (10/2026)
   Shared by /product-guides.asp and the admin help drawer. Every class starts with eg-. */

.eg {
	--eg-accent: #66b560;
	--eg-accent-dark: #3f8a3a;
	--eg-text: #1f2328;
	--eg-muted: #6b7280;
	--eg-line: #e3e6ea;
	--eg-rule: #cccccc;
	--eg-soft: #f4f6f4;
	--eg-mark: #fff1a8;
	color: var(--eg-text);
	text-align: left;
}
.eg [hidden] { display: none !important; }
.eg mark { background: var(--eg-mark); color: inherit; border-radius: 2px; padding: 0 1px; }
.eg-note { padding: 14px 12px; color: var(--eg-muted); }

/* search bar */
.eg-search { position: relative; margin: 0 0 8px; }
.eg-search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); display: flex; color: var(--eg-muted); pointer-events: none; }
.eg-input { width: 100%; height: 46px; box-sizing: border-box; padding: 0 44px 0 40px; border: 1px solid #cfd5db; border-radius: 10px; background: #ffffff; font: inherit; font-size: 16px; color: inherit; }
.eg-input:focus { outline: none; border-color: var(--eg-accent); box-shadow: 0 0 0 3px rgba(102, 181, 96, 0.18); }
.eg-clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--eg-muted); cursor: pointer; }
.eg-clear:hover { background: var(--eg-soft); color: var(--eg-text); }

.eg-tools { display: flex; align-items: center; gap: 16px; min-height: 30px; margin: 0 0 8px; padding: 0 4px; font-size: 13px; }
.eg-status { flex: 1; color: var(--eg-muted); }
.eg-textbtn { padding: 4px 0; border: 0; background: none; font: inherit; font-size: 13px; color: var(--eg-accent-dark); text-decoration: none; cursor: pointer; }
.eg-textbtn:hover { text-decoration: underline; }
.eg-searching .eg-tools .eg-textbtn { display: none; }

/* tree */
.eg-service + .eg-service { margin-top: 28px; }
.eg-service-name { padding: 10px 12px; font-weight: 700; border-bottom: 2px solid var(--eg-rule); }
.eg-folder > summary { display: flex; align-items: center; gap: 12px; padding: 12px; border-bottom: 1px dotted var(--eg-rule); cursor: pointer; list-style: none; user-select: none; }
.eg-folder > summary::-webkit-details-marker { display: none; }
.eg-folder > summary:hover { background: var(--eg-soft); }
.eg-folder > summary:focus-visible { outline: 2px solid var(--eg-accent); outline-offset: -2px; }
.eg-chev { flex: none; width: 7px; height: 7px; margin: 0 2px; border-right: 2px solid #555555; border-bottom: 2px solid #555555; transform: rotate(-45deg); transition: transform 0.15s; }
.eg-folder[open] > summary .eg-chev { transform: rotate(45deg); }
.eg-folder-name { flex: 1; }
.eg-count { padding: 1px 9px; border-radius: 999px; background: var(--eg-soft); font-size: 12px; color: var(--eg-muted); }
.eg-list { list-style: none; margin: 0; padding: 6px 12px 12px 35px; border-bottom: 1px dotted var(--eg-rule); }
.eg-item { padding: 5px 0; line-height: 1.4; }

/* The site stylesheet puts its own bullet on every li::before. Switch it off inside the
   module, then draw a small green marker in the gutter for guide links in the tree. */
.eg li::before { all: unset; }
.eg-list .eg-item { position: relative; padding-left: 16px; }
.eg-list .eg-item::before { content: ""; position: absolute; left: 0; top: calc(0.7em + 1px); width: 5px; height: 5px; border-top: 2px solid var(--eg-accent); border-right: 2px solid var(--eg-accent); transform: rotate(45deg); }
.eg-link { color: inherit; text-decoration: none; }
.eg-link:hover { color: var(--eg-accent-dark); text-decoration: underline; }
.eg-link.eg-last { font-weight: 600; }
.eg-link.eg-last::after { content: "Last viewed"; display: inline-block; margin-left: 8px; padding: 0 7px; border-radius: 999px; background: #e8f4e7; color: var(--eg-accent-dark); font-size: 11px; font-weight: 600; line-height: 18px; vertical-align: 1px; }
.eg-lock { display: inline-flex; margin-left: 6px; vertical-align: -1px; color: var(--eg-muted); }

/* article text matches */
.eg-results { margin-top: 28px; }
.eg-results-head { padding: 10px 12px; font-weight: 700; border-bottom: 2px solid var(--eg-rule); }
.eg-hits { list-style: none; margin: 0; padding: 0; }
.eg-hit { padding: 12px; border-bottom: 1px dotted var(--eg-rule); }
.eg-hit-meta { margin-top: 2px; font-size: 12px; color: var(--eg-muted); }
.eg-snippet { margin-top: 6px; font-size: 14px; line-height: 1.5; color: #4b5563; }

/* public page layout: guides + recently updated */
/* The site's .content_form box is narrower than the page; let it widen when it holds the guides */
.content_form:has(> .eg-layout) { width: 100%; max-width: 1320px; box-sizing: border-box; }
.eg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.eg-aside h5 { margin: 6px 0 14px; }
.eg-recent { list-style: none; margin: 0; padding: 0; }
.eg-recent .eg-item { padding: 0 0 14px; font-size: 0.9rem; }
.eg-date { margin-bottom: 2px; font-size: 12px; color: var(--eg-muted); }
@media (max-width: 900px) {
	.eg-layout { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}

/* article view (admin drawer) */
.eg-article-tools { display: flex; gap: 16px; }
.eg-article-bar { display: flex; justify-content: space-between; align-items: center; margin: 0 0 16px; padding: 0 0 10px; border-bottom: 1px solid var(--eg-line); }
.eg-article-meta { margin-bottom: 4px; font-size: 12px; color: var(--eg-muted); }
.eg-article-title { margin: 0 0 16px; font-size: 22px; line-height: 1.25; }
.eg-article-body { font-size: 15px; line-height: 1.6; }
.eg-article-body img { display: block; max-width: 100%; height: auto; margin: 20px auto; border-radius: 5px; box-shadow: 0 0 5px 0 #cccccc; }   /* matches the article page */
.eg-article-body iframe { max-width: 100%; }
.eg-article-body table { max-width: 100%; }
.eg-video { margin: 0 0 16px; }
.eg-video iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; }

/* admin drawer */
.eg-drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 9000; width: 440px; max-width: 100vw; display: flex; flex-direction: column; background: #ffffff; box-shadow: -10px 0 30px rgba(0, 0, 0, 0.14); transform: translateX(105%); visibility: hidden; transition: transform 0.22s ease, width 0.22s ease, visibility 0s 0.22s; }
.eg-drawer.eg-open { transform: none; visibility: visible; transition: transform 0.22s ease, width 0.22s ease; }
.eg-drawer.eg-wide { width: 760px; }
.eg-drawer-head { display: flex; align-items: center; gap: 4px; padding: 14px 17px 14px 23px; border-bottom: 1px solid var(--eg-line); }
.eg-drawer-title { flex: 1; font-size: 16px; }
.eg-iconbtn { width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 8px; background: transparent; color: var(--eg-muted); cursor: pointer; }
.eg-iconbtn:hover { background: var(--eg-soft); color: var(--eg-text); }
.eg-drawer-body { flex: 1; overflow-y: auto; padding: 21px 23px 45px; font-size: 14px; }
.eg-drawer .eg-folder > summary { padding: 10px 8px; }
.eg-drawer .eg-list { padding-left: 31px; }
.eg-drawer .eg-service-name { padding: 10px 8px; }
.eg-drawer .eg-article-bar { position: sticky; top: -21px; z-index: 1; margin-top: -21px; padding-top: 21px; background: #ffffff; }

/* Article text in the drawer: one size smaller. The admin stylesheet sizes p, li and td on its
   own, so those follow the article size here; headings get their own sizes. */
.eg-drawer .eg-article-body { font-size: 14px; line-height: 1.55; }
.eg-drawer .eg-article-body :is(p, li, td, th, div, span, a, b, strong, em, font) { font-size: inherit; }
.eg-drawer .eg-article-title { font-size: 20px; font-weight: 600; color: var(--eg-text); }

/* Article structure in the drawer. The admin stylesheet resets headings, paragraphs and lists,
   so they are set here to match the public article page (green headings, chevron bullets). */
.eg-drawer .eg-article-body :is(h1, h2, h3, h4, h5, h6) { margin: 26px 0 10px; font-weight: 600; line-height: 1.3; color: var(--es-green-dk, #3f8a3a); }
.eg-drawer .eg-article-body :is(h1, h2) { font-size: 19px; }
.eg-drawer .eg-article-body h3 { font-size: 17px; }
.eg-drawer .eg-article-body :is(h4, h5, h6) { font-size: 15px; color: var(--eg-text); }
.eg-drawer .eg-article-body > :first-child { margin-top: 0; }
.eg-drawer .eg-article-body p { margin: 0 0 14px; }
.eg-drawer .eg-article-body :is(ul, ol) { margin: 0 0 16px; padding-left: 24px; }
.eg-drawer .eg-article-body li { margin: 0 0 8px; }
.eg-drawer .eg-article-body li > :is(ul, ol) { margin: 8px 0 0; }
.eg-drawer .eg-article-body :is(b, strong) { font-weight: 600; }
.eg-drawer .eg-article-body ul > li { position: relative; list-style: none; }
.eg-drawer .eg-article-body ul > li::before { content: ""; position: absolute; left: -17px; top: calc(0.75em - 4px); width: 5px; height: 5px; border-top: 2px solid var(--eg-accent); border-right: 2px solid var(--eg-accent); transform: rotate(45deg); }

/* Click an article image to see it full size */
.eg-drawer .eg-article-body img { cursor: zoom-in; }
.eg-lightbox { position: fixed; inset: 0; z-index: 9600; display: none; align-items: center; justify-content: center; padding: 4vh 4vw; box-sizing: border-box; background: rgba(15, 23, 32, 0.82); cursor: zoom-out; }
.eg-lightbox.eg-open { display: flex; }
.eg-lightbox:focus { outline: none; }
.eg-lightbox img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #ffffff; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4); }
.eg-lightbox-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.16); color: #ffffff; cursor: pointer; }
.eg-lightbox-close:hover { background: rgba(255, 255, 255, 0.28); }

/* While the drawer is open, AdminScout's button and chat window move left of it.
   A chat window the user has dragged keeps its own position. */
body.eg-drawer-on #scout-fab, body.eg-drawer-on #scout-panel { right: 468px; }
body.eg-drawer-on.eg-drawer-wide #scout-fab, body.eg-drawer-on.eg-drawer-wide #scout-panel { right: 788px; }

/* On wide screens the page makes room for the drawer instead of sitting under it.
   Remove these two lines if it fights a page layout. */
@media (min-width: 1500px) {
	body.eg-drawer-on { padding-right: 440px; }
	body.eg-drawer-on.eg-drawer-wide { padding-right: 760px; }
}

/* Print: the drawer's Print button prints only the open article (html gets eg-printing while it prints) */
.eg-print-only { display: none; }

/* Confidential line at the bottom of every printed page. A named page, so it only applies
   when a guide is printed from the drawer, never to other admin pages.
   Chrome and Edge print it on every page; Safari and Firefox don't support page footers,
   so the article's own print footer carries the same line. */
@page eg-guide {
	margin: 0.5in 0.5in 0.65in;
	@bottom-center { content: "Confidential. This product guide contains confidential information."; font-family: Arial, Helvetica, sans-serif; font-size: 8pt; color: #666666; }
}
@media print {
	html.eg-printing .eg-drawer { page: eg-guide; }
	html.eg-printing, html.eg-printing body { height: auto !important; min-height: 0 !important; overflow: visible !important; margin: 0 !important; padding: 0 !important; background: #ffffff !important; }
	html.eg-printing body > *:not(.eg-drawer) { display: none !important; }
	html.eg-printing .eg-drawer { position: static; display: block; width: auto; max-width: none; transform: none; visibility: visible; box-shadow: none; transition: none; }
	html.eg-printing .eg-drawer-head, html.eg-printing .eg-article-bar, html.eg-printing .eg-browse { display: none !important; }
	html.eg-printing .eg-drawer-body { overflow: visible; padding: 0; }
	html.eg-printing .eg-print-only { display: block; }
	html.eg-printing .eg-article-body iframe, html.eg-printing .eg-video { display: none !important; }
	html.eg-printing .eg-article-body img { max-height: 8in; box-shadow: none; border: 1px solid #dddddd; break-inside: avoid; }
	html.eg-printing .eg-article-body :is(h1, h2, h3, h4, h5) { break-after: avoid; }
	html.eg-printing .eg-article-body a { color: inherit; text-decoration: underline; }
	html.eg-printing .eg-article-body a[data-print-url]::after { content: " (" attr(data-print-url) ")"; color: #555555; font-size: 90%; text-decoration: none; word-break: break-all; }
	html.eg-printing .eg-print-note { margin: 0 0 14px; font-style: italic; color: #555555; }
	html.eg-printing .eg-print-foot { margin-top: 24px; padding-top: 10px; border-top: 1px solid #dddddd; font-size: 12px; color: #555555; }
}
