/* Homepage presentation only. Source links, authored typography and artwork remain intact. */
body[data-page="index"] { --a1-home-width:1180px; --a1-directory-inset:16px; }
body[data-page="index"] :is(#header,#logo,#footer), body[data-page="index"] > .meinv {
  box-sizing:border-box; width:100%; max-width:var(--a1-home-width);
}
body[data-page="index"] .a1-home-directory { box-sizing:border-box; width:100%; max-width:var(--a1-home-width); margin:16px auto 0; }
body[data-page="index"] .a1-home-directory__content { box-sizing:border-box; min-width:0; padding:4px var(--a1-directory-inset) 16px; border-radius:8px; background:var(--wx-panel); }
body[data-page="index"] .a1-home-directory__content > .meinv {
  box-sizing:border-box; width:100%; max-width:none; margin:0; padding:0; border:0; border-radius:0; box-shadow:none; overflow:visible;
}
body[data-page="index"] .a1-home-directory__content > .meinv + .meinv { margin-top:12px; }
html body[data-page="index"] .a1-home-directory__content .class.section-header {
  position:relative; box-sizing:border-box; grid-template-columns:120px minmax(0,1fr); min-height:48px;
  border:0; border-bottom:1px solid var(--wx-line) !important; border-radius:0; background:var(--wx-panel) !important;
}
html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child { position:relative; padding:10px 0 10px 16px; }
html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child::before {
  content:""; position:absolute; top:13px; bottom:13px; left:0; width:5px; border-radius:3px; background:var(--wx-link);
}
html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child,
html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child :is(a,a:visited,span,font) { color:var(--wx-text) !important; }
html body[data-page="index"] .a1-home-directory__content .class.section-header:has(> strong:first-child a[data-recent-until]) { grid-template-columns:140px minmax(0,1fr); }
html body[data-page="index"] .a1-home-directory__content .class.section-header.is-side-menu-target-active { background:var(--wx-soft) !important; }
html body[data-page="index"] .a1-home-directory__content .section-header > .section-header__content { justify-content:flex-end; text-align:right; }
html body[data-page="index"] .a1-home-directory__content .class.section-header .section-header__content > :is(a,span,strong),
html body[data-page="index"] .a1-home-directory__content .class.section-header .section-header__content > strong a { text-align:right; }
html body[data-page="index"] .a1-home-directory__content .class.section-header .section-header__content > strong { justify-content:flex-end; }
body[data-page="index"] .a1-home-directory__content .info {
  box-sizing:border-box; float:none; width:100%; padding:8px 0 0; border:0; border-radius:0; background:transparent !important; overflow:visible;
}
body[data-page="index"] .a1-home-directory__content .info > ul:not(.site-search-results) {
  display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); float:none; width:100%; margin:0; padding:0; gap:0;
}
body[data-page="index"] .a1-home-directory__content .info > ul:not(.site-search-results) > li {
  display:flex; align-items:center; box-sizing:border-box; float:none; width:auto; min-width:0; min-height:34px; padding:0; overflow:visible; white-space:normal; background:transparent;
}
body[data-page="index"] .a1-home-directory__content .info > ul:not(.site-search-results) > li > :is(a,span) {
  display:inline-flex; align-items:center; box-sizing:border-box; min-width:0; max-width:100%; min-height:34px; padding:5px 8px; overflow-wrap:anywhere; white-space:normal;
}
body[data-page="index"] .a1-home-directory__content .info > ul:not(.site-search-results) > li:has(> a:hover) { box-shadow:inset 0 0 0 1px var(--wx-line); }
body[data-page="index"] .a1-home-directory__content .info > ul:not(.site-search-results) > li.a1-front-admin-item {
  display:grid; grid-template-columns:23px minmax(0,1fr); align-items:start; column-gap:4px;
}
body[data-page="index"] .a1-home-directory__sidebar { display:contents; }
body[data-page="index"] .a1-home-directory__heading { display:none; }
body[data-page="index"] #menue a[data-a1-added-category] { padding:3px 1px; white-space:normal; overflow-wrap:anywhere; line-height:19px; }
@media (min-width:700px) and (max-width:1099px) {
  body[data-page="index"] .a1-home-directory__content .info > ul > li:is(:nth-child(12n + 7),:nth-child(12n + 8),:nth-child(12n + 9),:nth-child(12n + 10),:nth-child(12n + 11),:nth-child(12n + 12)) { background:var(--wx-soft); }
}
@media (min-width:1100px) {
  body[data-page="index"] { --floating-toolbar-right:max(14px,env(safe-area-inset-right),calc(50% - 650px)); }
  body[data-page="index"] .a1-home-directory { display:grid; grid-template-columns:minmax(0,1fr) 188px; gap:16px; align-items:start; }
  body[data-page="index"] .a1-home-directory__content .info > ul:not(.site-search-results) { grid-template-columns:repeat(8,minmax(0,1fr)); }
  body[data-page="index"] .a1-home-directory__content .info > ul > li:is(:nth-child(16n + 9),:nth-child(16n + 10),:nth-child(16n + 11),:nth-child(16n + 12),:nth-child(16n + 13),:nth-child(16n + 14),:nth-child(16n + 15),:nth-child(16n + 16)) { background:var(--wx-soft); }
  body[data-page="index"] .a1-home-directory__sidebar {
    display:block; position:sticky; top:12px; box-sizing:border-box; min-width:0; max-height:calc(100vh - 180px); max-height:calc(100dvh - 180px);
    padding:14px 10px; border-radius:8px; background:var(--wx-panel); overflow-y:auto; scrollbar-width:thin; scrollbar-color:var(--wx-control) transparent;
    overscroll-behavior-y:contain; touch-action:pan-y; scrollbar-gutter:stable;
  }
  body[data-page="index"] .a1-home-directory__sidebar::-webkit-scrollbar { width:6px; }
  body[data-page="index"] .a1-home-directory__sidebar::-webkit-scrollbar-button { display:none; width:0; height:0; }
  body[data-page="index"] .a1-home-directory__sidebar::-webkit-scrollbar-track { background:transparent; }
  body[data-page="index"] .a1-home-directory__sidebar::-webkit-scrollbar-thumb { border-radius:999px; background:var(--wx-control); }
  body[data-page="index"] .a1-home-directory__heading { display:block; margin:0 0 8px; padding:5px 10px 9px; color:var(--wx-text); font:700 15px/1.5 var(--wx-font-family); }
  body[data-page="index"] .a1-home-directory__heading svg { display:inline-block; width:18px; height:18px; margin-right:7px; color:var(--wx-link); vertical-align:-3px; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue { position:static; width:100%; max-width:none; max-height:none; margin:0; padding:0; overflow:visible; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue li { box-sizing:border-box; width:100%; min-width:0; border:0; border-radius:5px; background:transparent !important; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue a {
    box-sizing:border-box; display:block; min-height:35px; padding:7px 10px; border-radius:5px; color:var(--wx-text) !important;
    font:13px/21px var(--wx-font-family); text-align:left; white-space:normal; overflow-wrap:anywhere;
  }
  html body[data-page="index"] .a1-home-directory__sidebar #menue a[data-full-label] { font-size:0; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue a[data-full-label]::after { content:attr(data-full-label); font-size:13px; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue a:is(:hover,.is-side-menu-active) { color:var(--wx-link) !important; background:var(--wx-tint); text-decoration:none; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue li.is-side-menu-active { background:var(--wx-tint) !important; }
}
/* Keep notes beside their title; scroll the note area clear of the fixed tools. */
@media (max-width:1099px) {
  html body[data-page="index"] .a1-home-directory__sidebar #menue {
    width:44px; max-width:44px;
    overflow-y:auto; overscroll-behavior-y:contain; touch-action:pan-y; -webkit-overflow-scrolling:touch; scrollbar-width:none;
  }
  html body[data-page="index"] .a1-home-directory__sidebar #menue li { width:100%; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue::-webkit-scrollbar { display:none; }
  html body[data-page="index"] .a1-home-directory__sidebar #menue[data-a1-menu-floating] {
    top:var(--a1-menu-top,12px); bottom:auto; height:var(--a1-menu-height); max-height:none;
  }
  html body[data-page="index"] .a1-home-directory__sidebar #menue[data-a1-menu-hidden="true"] { visibility:hidden; pointer-events:none; }
  html body[data-page="index"] :is(#a1-language-toggle,.theme-toggle,.back-to-top)[data-a1-tool-floating] {
    top:var(--a1-tool-top); bottom:auto;
  }
  html body[data-page="index"] .back-to-top[data-a1-tool-floating] { transform:none; }
  html body[data-page="index"] .a1-home-directory__content .class.section-header,
  html body[data-page="index"] .a1-home-directory__content .class.section-header:has(> strong:first-child a[data-recent-until]) {
    grid-template-columns:max-content minmax(0,1fr); column-gap:8px; align-items:center;
  }
  html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child {
    flex-shrink:0; max-width:50vw; white-space:nowrap; overflow-x:auto; overflow-y:hidden; scrollbar-width:none;
  }
  html body[data-page="index"] .a1-home-directory__content .class.section-header > .section-header__content {
    grid-column:2; flex-wrap:nowrap; justify-content:flex-start; align-items:center;
    min-width:0; margin-inline-end:calc(43px + var(--floating-toolbar-right,14px)); padding-block:0;
    overflow-x:auto; overflow-y:hidden; overscroll-behavior-x:contain; scrollbar-width:none;
    -webkit-overflow-scrolling:touch;
  }
  html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child::-webkit-scrollbar,
  html body[data-page="index"] .a1-home-directory__content .class.section-header > .section-header__content::-webkit-scrollbar { display:none; }
  html body[data-page="index"] .a1-home-directory__content .class.section-header .section-header__content > :is(a,span,strong) {
    flex:0 0 auto; max-width:none; white-space:nowrap; overflow-wrap:normal;
  }
  html body[data-page="index"] .a1-home-directory__content .class.section-header .section-header__content > :first-child { margin-inline-start:auto !important; }
  html body[data-page="index"] .a1-home-directory__content .class.section-header .section-header__content .section-header__item,
  html body[data-page="index"] .a1-home-directory__content .class.section-header .section-header__content .section-header__item * {
    white-space:nowrap; overflow-wrap:normal;
  }
}
@media (max-width:699px) {
  body[data-page="index"] { --a1-directory-inset:6px; }
  html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child { padding-inline-start:6px; }
  html body[data-page="index"] .a1-home-directory__content .class.section-header > strong:first-child::before { width:3px; }
  body[data-page="index"] .a1-home-directory { margin-top:12px; }
  body[data-page="index"] .a1-home-directory__content { padding-top:0; }
  body[data-page="index"] .a1-home-directory__content .info > ul:not(.site-search-results) { grid-template-columns:repeat(3,minmax(0,1fr)); }
  body[data-page="index"] .a1-home-directory__content .info > ul > li:is(:nth-child(6n + 4),:nth-child(6n + 5),:nth-child(6n + 6)) { background:var(--wx-soft); }
  body[data-page="index"] .a1-home-directory__content .info > ul > li > :is(a,span) { padding-inline:3px; }
}
