.eckb{--eckb-accent:#2563eb;color:inherit;max-width:1200px;margin:1rem auto;padding:1rem}.eckb-header{text-align:center;padding:2rem 1rem 3rem}.eckb-header h1{font-size:clamp(1.8rem,4vw,3rem);margin:0 0 1.5rem}.eckb-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(270px,1fr));gap:1.25rem}.eckb-card{padding:1.5rem;border:1px solid #ddd;border-radius:12px;box-shadow:0 3px 15px #00000008;background:var(--wp--preset--color--base,#fff)}.eckb-card h2{font-size:1.2rem;margin:0 0 1rem}.eckb-articles{padding-left:1.15rem;line-height:1.85}.eckb a{color:var(--eckb-accent)}.eckb-search{position:relative;max-width:660px;margin:auto}.eckb-search input{width:100%;padding:1rem;border:1px solid #aaa;border-radius:10px;background:inherit;color:inherit}.eckb-results{position:absolute;z-index:10;left:0;right:0;background:#fff;color:#222;box-shadow:0 8px 20px #0002;border-radius:8px;text-align:left;max-height:360px;overflow:auto}.eckb-results a{display:block;padding:.7rem 1rem;border-bottom:1px solid #eee;color:#143d6b}.eckb-results a:hover,.eckb-results a:focus{background:#f4f7ff}
/* Result previews and optional wiki-scoped category filter. */
.eckb-search select{display:block;width:100%;margin:.5rem 0 0;padding:.65rem;border:1px solid #aaa;border-radius:8px;background:inherit;color:inherit}
.eckb-results .eckb-hit-title{display:block;font-weight:600}
.eckb-results .eckb-hit-snippet{display:block;font-size:.9rem;line-height:1.5;color:#475569;margin:.25rem 0 0}
.eckb-results mark{background:#ffdf78;color:#1c2530;border-radius:2px;padding:0 .05em}
.eckb-results a:focus-visible{outline:2px solid var(--eckb-accent);outline-offset:-2px}

/* Virtual wiki landing: themes may add a generic "Archiv" banner in get_header().
   The wiki renders its own accessible H1. Hide only the redundant theme banner,
   and only on the virtual wiki landing. Never hide the global site header. */
body.eckb-wiki-landing #page-header,
body.eckb-wiki-landing #page-title,
body.eckb-wiki-landing .archive-header,
body.eckb-wiki-landing .archive-title,
body.eckb-wiki-landing .ast-archive-description,
body.eckb-wiki-landing .page-title-area,
body.eckb-wiki-landing .page-title-wrap,
body.eckb-wiki-landing .page-title-bar,
body.eckb-wiki-landing .page-title-section,
body.eckb-wiki-landing .page-header:not(.site-header):not(.main-header) {
 display: none !important;
}


/* ElderCraft wiki landing refinements */
body.eckb-wiki-landing .eckb{max-width:1280px;padding:1.5rem 2rem 2rem}
body.eckb-wiki-landing .eckb-header{padding:0 0 2rem}
body.eckb-wiki-landing .eckb-header h1{display:none}
body.eckb-wiki-landing .eckb-grid{align-items:stretch}
body.eckb-wiki-landing .eckb-card{
  background:#202020;
  border:1px solid #343434;
  box-shadow:none;
  color:#e8edf5;
  display:flex;
  flex-direction:column;
  min-height:320px;
}
body.eckb-wiki-landing .eckb-card h2{color:#b8d3ff;min-height:2.8em;line-height:1.2}
body.eckb-wiki-landing .eckb-articles{margin:0;display:flex;flex-direction:column;gap:.55rem;flex:1}
body.eckb-wiki-landing .eckb-articles li{margin:0}
body.eckb-wiki-landing .eckb-articles a{color:#d9e8ff;text-decoration:none}
body.eckb-wiki-landing .eckb-articles a:hover,body.eckb-wiki-landing .eckb-articles a:focus{text-decoration:underline}
body.eckb-wiki-landing .eckb-more{list-style:none;color:#aeb6c2;font-style:italic;margin-top:auto}
body.eckb-wiki-landing .eckb-search input,
body.eckb-wiki-landing .eckb-search select{
  background:#111;
  color:#fff;
  border-color:#505050;
}
body.eckb-wiki-landing .eckb-search input::placeholder{color:#c2c8d0;opacity:1}
body.eckb-wiki-landing .eckb-search select option{color:#fff;background:#111}
