/* EasyBlocks user site: layout and colors (design chosen on 2026-11-10, "F" in the design preview).
   Left menu at the left edge (categories, versions, search; can be hidden), the page in a white card
   up to 1240 px wide next to the menu. The text styles of github-markdown-light.css stay as the base. */
:root {
	--eb-bg: #f2f5f8;
	--eb-paper: #ffffff;
	--eb-ink: #202a35;
	--eb-sub: #5d6b79;
	--eb-line: #dbe2ea;
	--eb-acc: #2a6ebb;
	--eb-acc-soft: #eaf2fb;
	--eb-end: #5b6878;
	--eb-end-soft: #eef1f4;
	--eb-warm: #c4721c;
	--eb-field: #f7f9fb;
	--eb-font: -apple-system, BlinkMacSystemFont, "Hiragino Kaku Gothic ProN", "Hiragino Sans", Meiryo, "Noto Sans JP", "Yu Gothic", sans-serif;
	--eb-mono: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", Menlo, monospace;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--eb-bg); color: var(--eb-ink); font-family: var(--eb-font); }

/* ---- layout ---- */
.eb-wrap { display: grid; grid-template-columns: 310px minmax(0, 1fr); min-height: 100vh; align-items: start; }
.eb-wrap.eb-closed, .eb-wrap.eb-nomenu { grid-template-columns: minmax(0, 1fr); }
.eb-wrap.eb-closed .eb-side { display: none; }
.eb-main { width: 100%; max-width: 1240px; justify-self: start; min-width: 0; padding: 20px 28px; display: flex; flex-direction: column; gap: 14px; }
.eb-scrim { display: none; }

/* ---- left menu ---- */
.eb-side { position: sticky; top: 0; height: 100vh; overflow: auto; background: var(--eb-paper); border-right: 1px solid var(--eb-line); padding: 16px 16px 24px; font-size: 14px; line-height: 1.6; }
.eb-brandrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 0 14px; margin-bottom: 12px; border-bottom: 4px solid var(--eb-acc); }
.eb-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--eb-ink); }
.eb-brand img { height: 34px; }
/* The letters of the logo sit low in the image (capitals on rows 22-43 of 52, the dotted arc above
   them), so centring the boxes made "ユーザーサイト" look higher than "EasyBlocks". Moving the text
   down by 4px (6.5 of 52 rows at the 34px height) lines up the middles (2026-12-03). */
.eb-brand span { font-size: 15px; font-weight: 700; position: relative; top: 4px; }
.eb-menu-close { display: none; font: inherit; font-size: 22px; line-height: 1; width: 36px; height: 36px; border: 1px solid var(--eb-line); border-radius: 8px; background: var(--eb-paper); color: var(--eb-ink); cursor: pointer; }
.eb-q { width: 100%; font: inherit; font-size: 14px; padding: 8px 10px; border: 1px solid var(--eb-line); border-radius: 8px; background: var(--eb-field); color: var(--eb-ink); }
.eb-q:focus { outline: 2px solid var(--eb-acc); outline-offset: 1px; }
.eb-sg { font-size: 13px; font-weight: 700; color: #fff; margin: 16px 0 8px; padding: 5px 10px; border-radius: 6px; background: var(--eb-acc); }
.eb-sg.eb-end { background: var(--eb-end); }
.eb-side .eb-cat { margin-bottom: 10px; }
.eb-side .eb-cat-name { font-size: 13px; font-weight: 700; padding: 3px 8px; background: var(--eb-acc-soft); border-left: 4px solid var(--eb-acc); border-radius: 3px; }
.eb-sg.eb-end ~ .eb-cat .eb-cat-name { background: var(--eb-end-soft); border-left-color: var(--eb-end); }
.eb-side .eb-items { list-style: none; margin: 4px 0 0; padding: 0 0 0 8px; }
.eb-side .eb-items li { padding: 4px 2px 6px; }
.eb-side .eb-name { display: block; font-size: 13px; line-height: 1.45; }
.eb-side .eb-vers { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 3px; }
.eb-side .eb-vers a { display: inline-block; font-size: 12px; line-height: 1.4; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--eb-line); color: var(--eb-acc); text-decoration: none; background: var(--eb-paper); }
.eb-side .eb-vers a:hover { border-color: var(--eb-acc); }
.eb-side .eb-vers a.eb-on { background: var(--eb-acc); border-color: var(--eb-acc); color: #fff; }
.eb-side .eb-one a { font-size: 13px; color: var(--eb-acc); text-decoration: none; }
.eb-side .eb-one a.eb-on { font-weight: 700; }
.eb-none { color: var(--eb-sub); font-size: 13px; }

/* ---- menu button ---- */
.eb-menu-btn { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--eb-line); border-radius: 8px; background: var(--eb-paper); color: var(--eb-ink); cursor: pointer; }
.eb-menu-btn:hover, .eb-menu-close:hover { border-color: var(--eb-acc); color: var(--eb-acc); }
.eb-bars { display: inline-block; width: 18px; height: 2px; background: currentColor; position: relative; }
.eb-bars::before, .eb-bars::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.eb-bars::before { top: -6px; }
.eb-bars::after { top: 6px; }

/* ---- the page (C design) ---- */
.markdown-body.eb-article { background: var(--eb-paper); border: 1px solid var(--eb-line); border-radius: 10px; padding: 8px 30px 22px; margin: 0; max-width: none; min-width: 0; font-family: var(--eb-font); font-size: 15px; line-height: 1.8; color: var(--eb-ink); }
.eb-pagehead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 12px 0 14px; margin-bottom: 6px; border-bottom: 4px solid var(--eb-acc); }
.eb-pagehead img { height: 40px; }
.markdown-body.eb-article h1.eb-title { font-size: 22px; margin: 0; padding: 0; background: none; border: none; line-height: 1.5; }
.markdown-body.eb-article h1:not(.eb-title) { font-size: 21px; margin: 28px 0 12px; padding: 8px 14px; background: var(--eb-acc-soft); border: none; border-left: 6px solid var(--eb-acc); border-radius: 4px; }
.markdown-body.eb-article h2 { font-size: 18px; margin: 22px 0 8px; color: var(--eb-acc); border-bottom: 1px solid var(--eb-line); padding-bottom: 4px; }
.markdown-body.eb-article h3 { font-size: 16px; margin: 16px 0 6px; }
.markdown-body.eb-article a { color: var(--eb-acc); }
.markdown-body.eb-article code, .markdown-body.eb-article pre { font-size: 95%; }
.eb-copy { margin: 28px 0 0; padding-top: 12px; border-top: 1px solid var(--eb-line); text-align: center; color: var(--eb-sub); font-size: 13px; }
.markdown-body.eb-article .eb-copy a { text-decoration: none; }

/* ---- product list of the top page ---- */
.eb-sec { margin-top: 18px; }
.markdown-body.eb-article .eb-sec-h { font-size: 17px; margin: 0 0 10px; padding: 6px 14px; border: none; border-radius: 6px; color: #fff; background: var(--eb-acc); }
.markdown-body.eb-article .eb-sec.eb-end .eb-sec-h { background: var(--eb-end); }
.eb-mainlist .eb-cat { margin: 0 0 14px; }
.markdown-body.eb-article .eb-mainlist h3.eb-cat-name { font-size: 15px; margin: 0 0 4px; padding: 3px 10px; background: var(--eb-acc-soft); border-left: 4px solid var(--eb-acc); border-radius: 3px; }
.markdown-body.eb-article .eb-sec.eb-end h3.eb-cat-name { background: var(--eb-end-soft); border-left-color: var(--eb-end); }
.markdown-body.eb-article .eb-mainlist ul.eb-items { list-style: none; margin: 0; padding: 0 0 0 14px; }
.markdown-body.eb-article .eb-mainlist ul.eb-items li { margin: 0; padding: 6px 0; border-bottom: 1px solid var(--eb-line); }
.markdown-body.eb-article .eb-mainlist ul.eb-items li:last-child { border-bottom: none; }
.eb-mainlist .eb-name { display: block; font-weight: 700; }
.eb-mainlist .eb-one a { font-weight: 700; text-decoration: none; }
.eb-mainlist .eb-vers { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.markdown-body.eb-article .eb-mainlist .eb-vers a { font-size: 13px; padding: 1px 10px; border-radius: 999px; border: 1px solid var(--eb-line); text-decoration: none; background: var(--eb-paper); }
.markdown-body.eb-article .eb-mainlist .eb-vers a:hover { border-color: var(--eb-acc); background: var(--eb-acc-soft); }

/* ---- download list (functions.php get_update_files_html) ---- */
.markdown-body.eb-article ul.eb-dl-list { list-style: none; padding: 0; margin: 8px 0 16px; }
.markdown-body.eb-article li.eb-dl { border: 1px solid var(--eb-line); border-left: 5px solid var(--eb-warm); border-radius: 6px; padding: 10px 16px; margin: 0 0 10px; background: #fffaf4; }
.eb-dl-name { font-weight: 700; display: inline-block; margin-bottom: 2px; }
.eb-dl-row { display: block; font-size: 14px; }
.eb-dl-row .eb-k { display: inline-block; width: 84px; color: var(--eb-sub); }
.markdown-body.eb-article .eb-dl-row code { font-family: var(--eb-mono); font-size: 13px; word-break: break-all; background: none; padding: 0; }

/* ---- product page: name for educational institutions under the title (eb_edu_note) ---- */
.eb-also { flex-basis: 100%; margin: -8px 0 0; font-size: 14px; color: var(--eb-sub); }
/* product page of an ended product (eb_eol_note) */
.eb-also.eb-eol { color: var(--eb-end); font-weight: 700; }

/* ---- notes and cautions of the pages (pandoc alerts; 2026-11-13) ----
   No English label ("Note", "Warning" ...) and only two looks: information (NOTE, TIP) in blue,
   caution (IMPORTANT, CAUTION, WARNING) in orange. The known issues are plain lists in the pages. */
.markdown-body.eb-article div.note,
.markdown-body.eb-article div.tip,
.markdown-body.eb-article div.important,
.markdown-body.eb-article div.caution,
.markdown-body.eb-article div.warning {
	margin: 12px 0 16px; padding: 10px 16px; color: var(--eb-ink);
	border: 1px solid var(--eb-line); border-left: 5px solid var(--eb-acc); border-radius: 6px; background: var(--eb-acc-soft);
}
.markdown-body.eb-article div.important,
.markdown-body.eb-article div.caution,
.markdown-body.eb-article div.warning { border-left-color: #d9822b; background: #fff6ec; }
.markdown-body.eb-article div.note .title,
.markdown-body.eb-article div.tip .title,
.markdown-body.eb-article div.important .title,
.markdown-body.eb-article div.caution .title,
.markdown-body.eb-article div.warning .title { display: none; }
.markdown-body.eb-article div.note > :last-child,
.markdown-body.eb-article div.tip > :last-child,
.markdown-body.eb-article div.important > :last-child,
.markdown-body.eb-article div.caution > :last-child,
.markdown-body.eb-article div.warning > :last-child { margin-bottom: 0; }

/* ---- the model line above each download box: a small label instead of a bullet ----
   Not for a download list followed by another download list (several _get_updates.php in a row,
   e.g. ebsyslog_usersite): the boxes of the first list were drawn as small ovals (2026-12-03).
   A label that wraps to two lines keeps rounded corners instead of becoming an oval. */
.markdown-body.eb-article ul:not(.eb-dl-list):has(+ ul.eb-dl-list) { list-style: none; padding: 0; margin: 12px 0 6px; }
.markdown-body.eb-article ul:not(.eb-dl-list):has(+ ul.eb-dl-list) > li {
	display: inline-block; font-size: 13px; font-weight: 700; line-height: 1.5;
	padding: 1px 12px; border-radius: 12px; background: var(--eb-acc-soft); color: var(--eb-acc);
}

/* ---- narrow screens: the menu becomes a drawer ---- */
@media (max-width: 900px) {
	.eb-wrap, .eb-wrap.eb-closed { grid-template-columns: minmax(0, 1fr); }
	.eb-side, .eb-wrap.eb-closed .eb-side { display: block; position: fixed; left: 0; top: 0; width: min(320px, 88vw); height: 100vh; z-index: 30; box-shadow: 0 0 24px rgba(20, 40, 70, .25); transform: translateX(-105%); transition: transform .2s ease; }
	.eb-wrap.eb-open .eb-side { transform: none; }
	.eb-wrap.eb-open .eb-scrim { display: block; position: fixed; inset: 0; background: rgba(20, 30, 40, .35); z-index: 25; }
	.eb-menu-close { display: inline-block; }
	.eb-main { padding: 12px; }
	.markdown-body.eb-article { padding: 6px 16px 18px; }
}
@media (prefers-reduced-motion: reduce) { .eb-side { transition: none; } }
