/* Compact encyclopedia hub shared by the Conan top and global header. */
.site-header {
  border-bottom: 1px solid #153654;
  background: linear-gradient(120deg, #173b61, #2d6092);
}

.site-header__inner { min-height: 58px; padding-block: 8px; }
.site-brand { display: flex; flex-direction: column; gap: 2px; font-size: 1rem; }
.site-brand span { order: -1; font-size: .56rem; letter-spacing: .15em; }
.site-brand strong { display: block; font-size: 1rem; }
.site-header nav a { padding: 8px; border-bottom: 3px solid transparent; font-size: .8rem; }
.site-header nav a:hover { border-bottom-color: #f0b63f; background: #ffffff12; }
.site-header__search { margin-left: 8px; padding-inline: 15px !important; border: 1px solid #ffffff70 !important; border-radius: 999px; }

.home-shell { max-width: var(--max); margin: 0 auto 48px; padding: 0 20px; }
.home-shell > .breadcrumbs { max-width: none; padding-inline: 0; }

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
  padding: 24px 28px;
  border: 1px solid var(--line);
  background: #fff;
}

.home-hero h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.35; }
.home-hero .lead { max-width: 760px; margin: 8px 0 0; font-size: .9rem; line-height: 1.75; }
.home-stats { display: grid; min-height: 76px; align-content: center; padding-left: 22px; border-left: 1px solid var(--line); text-align: right; }
.home-stats strong { font-size: .95rem; }
.home-stats span { color: var(--muted); font-size: .68rem; letter-spacing: .04em; }

.home-search-panel {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: center;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-top: 4px solid #2f5578;
  background: #fff;
}

.home-search-heading h2 { margin: 0; border: 0; padding: 0; font-size: 1.08rem; }
.home-search-panel .site-search { margin: 0; padding: 0; border: 0; background: #fff; }
.home-search-panel .site-search > div { margin: 0; gap: 0; }
.home-search-panel .site-search input { padding: 10px 12px; border-color: #aebbc6; }
.home-search-panel .site-search button { min-width: 82px; background: #3e76a8; }
.home-search-panel .search-status { margin: 6px 0 0; font-size: .7rem; }
.home-search-panel .search-results { grid-column: 1 / -1; }

.home-trends { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; }
.home-trends strong { padding: 3px 8px; background: #dfa238; color: #fff; font-size: .68rem; }
.home-trends a { padding: 3px 8px; border-right: 1px solid var(--line); font-size: .7rem; text-decoration: none; }

.home-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 16px; border-bottom: 3px solid #dda43b; }
.home-tabs a { padding: 9px 8px; border-right: 1px solid #ffffff70; background: #4779a5; color: #fff; font-size: .75rem; font-weight: 800; text-align: center; text-decoration: none; }
.home-tabs a:first-child { background: #d99a31; }
.home-tabs a:last-child { background: #64758a; }

.home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 16px; align-items: start; }
.home-panel { border: 1px solid var(--line); background: #fff; }
#featured { padding: 14px; }
.home-side { padding: 14px; }
.home-section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; padding-bottom: 7px; border-bottom: 2px solid #e0e7ed; }
.home-section-title h2 { margin: 0; padding: 0; border: 0; font-size: 1.05rem; }
.home-section-title a { font-size: .7rem; }
.home-section-title--spaced { margin-top: 24px; }

.home-articles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-article { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 11px; min-height: 130px; padding: 12px 8px; border-bottom: 1px solid var(--line); }
.home-article:nth-child(odd) { border-right: 1px solid var(--line); }
.home-article__image { display: block; width: 92px; height: 92px; overflow: hidden; background: #e8eef3; }
.home-article__image img { width: 100%; height: 100%; object-fit: cover; }
.home-article__type { margin: 0 0 2px; color: var(--blue); font-size: .65rem; font-weight: 800; }
.home-article h3 { margin: 0; font-size: .9rem; line-height: 1.45; }
.home-article h3 a { text-decoration: none; }
.home-article div > p:last-child { display: -webkit-box; overflow: hidden; margin: 5px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.home-categories,
.home-latest { margin: 0; padding: 0; list-style: none; }
.home-categories li,
.home-latest li { border-bottom: 1px solid var(--line); }
.home-categories a { display: flex; justify-content: space-between; padding: 8px 3px; text-decoration: none; font-size: .77rem; }
.home-categories strong { color: var(--muted); font-size: .72rem; }
.home-latest a { display: block; padding: 8px 3px; text-decoration: none; font-size: .76rem; }
.home-latest small { display: block; color: var(--muted); font-size: .65rem; }

@media (max-width: 800px) {
  .site-header__inner { display: flex; }
  .site-header nav { margin-top: 0; overflow-x: auto; flex-wrap: nowrap; }
  .home-search-panel { grid-template-columns: 1fr; gap: 8px; }
  .home-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header__inner { align-items: flex-start; }
  .site-header nav { max-width: 55%; gap: 2px; }
  .site-header nav a:not(.site-header__search) { display: none; }
  .home-shell { padding-inline: 10px; }
  .home-hero { grid-template-columns: 1fr; gap: 12px; padding: 18px; }
  .home-stats { min-height: 0; padding: 10px 0 0; border-top: 1px solid var(--line); border-left: 0; text-align: left; }
  .home-search-panel { padding: 12px; }
  .home-tabs { overflow-x: auto; grid-template-columns: repeat(4, minmax(110px, 1fr)); }
  .home-articles { grid-template-columns: 1fr; }
  .home-article:nth-child(odd) { border-right: 0; }
  .home-article { grid-template-columns: 82px minmax(0, 1fr); }
  .home-article__image { width: 82px; height: 82px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}
