/* index.css — Styles for generated index pages */

/* ── Breadcrumb ── */

.index-breadcrumb {
  color: #666;
  margin-bottom: 1.5em;
}
.index-breadcrumb a {
  color: #4a4a8a;
}

/* ── Search ── */

.index-search {
  position: relative;
  margin-bottom: 1em;
}
#index-search-input {
  width: 100%;
  max-width: 400px;
  padding: 0.4em 0.7em;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
}
#index-search-input:focus {
  outline: none;
  border-color: #4a4a8a;
  box-shadow: 0 0 0 2px rgba(74, 74, 138, 0.15);
}
#index-search-results {
  display: none;
  margin: 1em 0;
  padding: 0;
  list-style: none;
}
#index-search-results.active {
  display: block;
	margin-bottom: 7em;
}
.search-result {
  padding: 0.4em 0;
  border-bottom: 1px solid #f0f0f0;
	padding-left: 1em;
}
.search-result:last-child {
  border-bottom: none;
}
.search-result a {
  text-decoration: none;
  color: inherit;
  display: block;
}
.search-result a:hover {
  background: #f0f0f8;
}
.search-result-name {
  font-weight: 600;
}
.search-result-cat {
  display: inline-block;
  padding: 0.1em 0.4em;
  margin-left: 0.5em;
  background: #e8e8f0;
  color: #555;
  border-radius: 3px;
  vertical-align: middle;
  text-transform: capitalize;
}
.search-result-translit {
  color: #888;
  font-style: italic;
}
.search-result-desc {
  color: #777;
  margin-top: 0.15em;
}
.search-result-count {
  color: #888;
  margin-bottom: 0.5em;
}
.search-group-header {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #4a4a8a;
  margin-top: 1em;
  margin-bottom: 0.3em;
  padding-bottom: 0.2em;
  border-bottom: 1px solid #ddd;
	padding-top: 2em;
}

/* ── Entry page ── */

article#entry h1 {
  text-indent: 0;
  padding-left: 0;
}

.entry-meta {
  margin: 1em 0;
  line-height: 1.6;
}
.entry-meta dt {
  font-weight: 600;
  color: #555;
  float: left;
  clear: left;
  margin-right: 0.5em;
}
.entry-meta dt::after {
  content: ":";
}
.entry-meta dd {
  margin-left: 0;
  margin-bottom: 0.3em;
}

#description {
  margin: 1.5em 0;
}

/* ── References section ── */

#references h2 {
  font-size: 1.1em;
  margin-top: 2em;
}
#references ul {
  padding-left: 1.2em;
}
#references li {
  margin-bottom: 0.8em;
}
.ref-context {
  color: #666;
}
.ref-quote {
  margin: 0.3em 0 0 0;
  padding: 0.3em 0.8em;
  border-left: 3px solid #ddd;
  color: #555;
  font-style: italic;
}
.source-ref {
  color: #4a4a8a;
}
.ref-source-heading {
  font-size: 1em;
  margin-top: 1.5em;
  margin-bottom: 0.3em;
  color: #444;
}

/* ── Events section ── */

#events h2 {
  font-size: 1.1em;
  margin-top: 2em;
}
#events li {
  margin-bottom: 0.3em;
}

#related h2 {
  font-size: 1.1em;
  margin-top: 2em;
}
#related ul {
  padding-left: 1.2em;
}
#related li {
  margin-bottom: 0.3em;
}

/* ── Root index note ── */

.index-note {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  border-left: 3px solid #ccc;
  color: #555;
}
.index-note p {
  margin: 0.4em 0;
}

/* ── Works section (person pages) ── */

#works h2 {
  font-size: 1.1em;
  margin-top: 2em;
}
#works li {
  margin-bottom: 0.3em;
}

/* ── Directory listing pages ── */

.index-listing ul {
  list-style: none;
  /*padding-left: 0;*/
}
.index-listing li {
  margin-bottom: 0.4em;
}
.index-listing .dir-entry {
  font-weight: 600;
}
.index-listing ul ul {
  padding-left: 1.5em;
  margin-top: 0.3em;
}
.index-listing ul ul li {
  font-weight: normal;
}

/* ── Satellite map ── */

.osm-map {
  position: relative;
  width: 100%;
  max-width: 500px;
  height: 280px;
  overflow: hidden;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin: 1em 0;
  background: #1a1a2e;
}
.osm-map-grid {
  position: absolute;
  display: grid;
  grid-template-columns: repeat(3, 256px);
}
.osm-map-grid img {
  width: 256px;
  height: 256px;
  display: block;
}
.osm-map-pin {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 12px;
  background: #e53935;
  border: 2px solid #fff;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  box-shadow: 0 1px 4px rgba(0,0,0,0.5);
  pointer-events: none;
}
.osm-map-attr {
  position: absolute;
  bottom: 0;
  right: 0;
  background: rgba(0,0,0,0.5);
  font-size: 0.6em;
  padding: 1px 5px;
  color: rgba(255,255,255,0.8);
}
.osm-map-attr a {
  color: rgba(255,255,255,0.8);
}
