/* ElephantGuide 2026: hubs, archives, author, search, 404, comments. Open layouts, hairlines, big type. 1rem = 10px. */

/* ---------- hub header ---------- */
.eg-hub{padding-bottom:2rem}
.eg-hub-head{max-width:84rem;margin:0 auto;padding:6.4rem 2rem 2.4rem;text-align:center}
.eg-hub-kicker{font-size:1.25rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--acacia);margin:0 0 1.4rem}
.eg-hub-title{font-size:clamp(4rem,7vw,7.2rem);line-height:1.02;font-weight:650;letter-spacing:-.025em;margin:0}
.eg-hub-dek{font-size:2.1rem;line-height:1.5;color:var(--ink-soft);max-width:64rem;margin:2rem auto 0}
.eg-hub-dek p{margin:0}
.eg-hub-in{max-width:var(--max);margin:0 auto;padding:0 2rem}
.eg-hub-narrow{max-width:84rem}
.eg-hub-mid{max-width:96rem}

/* ---------- chips ---------- */
.eg-chips{max-width:var(--max);margin:1.6rem auto 0;padding:0 2rem}
.eg-chips ul{list-style:none;margin:0;padding:0 0 .4rem;display:flex;flex-wrap:wrap;justify-content:center;gap:.8rem}
.eg-chip{display:inline-flex;align-items:center;min-height:4.4rem;padding:0 1.8rem;border:1px solid var(--line);border-radius:999px;color:var(--ink);font-size:1.5rem;font-weight:600;text-decoration:none;white-space:nowrap;background:transparent;transition:border-color .15s,background .15s}
.eg-chip:hover{border-color:var(--acacia);color:var(--acacia-deep)}
.eg-chip.is-current,.eg-chip.is-current:hover{background:var(--acacia-deep);border-color:var(--acacia-deep);color:#fff}

/* ---------- featured item ---------- */
.eg-hub-list{padding-top:4.8rem}
.eg-hub-feature{display:grid;grid-template-columns:1.25fr 1fr;gap:4.4rem;align-items:center;padding-bottom:5rem;margin-bottom:5rem;border-bottom:1px solid var(--line)}
.eg-hub-feature-img{display:block;line-height:0}
.eg-hub-feature-img img,.eg-hub-feature-img .eg-tile-ph{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:8px;background:var(--sand-deep)}
.eg-hub-feature h2{font-size:clamp(3rem,3.6vw,4.4rem);line-height:1.1;font-weight:650;margin:1.2rem 0 1.6rem}
.eg-hub-feature h2 a{color:var(--ink);text-decoration:none}
.eg-hub-feature h2 a:hover{color:var(--acacia-deep)}
.eg-hub-feature p{font-size:1.85rem;line-height:1.6;color:var(--ink-soft);margin:0 0 2.2rem}
.eg-more{display:inline-flex;align-items:center;gap:.6rem;min-height:4.4rem;font-size:1.6rem;font-weight:700;color:var(--clay);text-decoration:none;border-bottom:2px solid var(--savanna);align-self:flex-start}
.eg-more:hover{color:var(--clay-deep)}
.eg-tile-tag{display:inline-block;font-size:1.2rem;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--acacia)}

/* ---------- tile grid ---------- */
.eg-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:4.4rem 3.2rem}
.eg-tile{position:relative;margin:0}
.eg-tile-img{display:block;line-height:0;margin-bottom:1.6rem}
.eg-tile-img img,.eg-tile-ph{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px;background:var(--sand-deep);display:block}
.eg-tile-ph{min-height:10rem}
.eg-tile .eg-tile-tag{margin-bottom:.6rem}
.eg-tile h3{font-size:2.4rem;line-height:1.2;font-weight:620;margin:0 0 .8rem}
.eg-tile h3 a{color:var(--ink);text-decoration:none}
.eg-tile h3 a::after{content:"";position:absolute;inset:0}
.eg-tile h3 a:hover{color:var(--acacia-deep)}
.eg-tile p{font-size:1.6rem;line-height:1.55;color:var(--ink-soft);margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.eg-tile:hover .eg-tile-img img{opacity:.92}

/* ---------- pagination pills (scoped) ---------- */
.eg-hub .navigation.pagination{margin:6rem 0 2rem}
.eg-hub .page-numbers{min-width:4.4rem;min-height:4.4rem;display:inline-flex;align-items:center;justify-content:center;padding:0 1.6rem;background:transparent;border:1px solid var(--line);border-radius:999px;font-size:1.5rem}
.eg-hub .page-numbers.current{background:var(--acacia-deep);border-color:var(--acacia-deep);color:#fff}
.eg-hub a.page-numbers:hover{border-color:var(--acacia);color:var(--acacia-deep)}
.eg-hub .page-numbers.dots{border-color:transparent}

/* ---------- author ---------- */
.eg-author-head{max-width:var(--max);margin:0 auto;padding:6.4rem 2rem 4.4rem;display:grid;grid-template-columns:auto 1fr;gap:4.4rem;align-items:start;border-bottom:1px solid var(--line)}
.eg-author-av img{width:12rem;height:12rem;border-radius:50%;object-fit:cover;border:.3rem solid var(--sand-deep)}
.eg-author-id .eg-hub-title{font-size:clamp(3.6rem,5vw,5.2rem)}
.eg-author-count{font-size:1.5rem;font-weight:600;color:var(--stone);margin:1rem 0 0}
.eg-author-bio{margin-top:1.8rem;max-width:64rem}
.eg-author-bio p{font-size:1.7rem;line-height:1.65;color:var(--ink-soft);margin:0 0 1.2rem}
.eg-author .eg-hub-in{padding-top:5rem}

/* ---------- search ---------- */
.eg-sfield{position:relative;max-width:68rem;margin:1.2rem auto 0}
.eg-sfield input[type=search]{width:100%;font:inherit;font-size:1.8rem;padding:1.8rem 6.4rem 1.8rem 2.6rem;min-height:6.4rem;background:var(--paper);border:1px solid var(--line);border-radius:999px;color:var(--ink);-webkit-appearance:none;appearance:none}
.eg-sfield input[type=search]:focus{outline:0;border-color:var(--acacia);box-shadow:0 0 0 3px var(--savanna-tint)}
.eg-sbtn{position:absolute;right:.6rem;top:50%;transform:translateY(-50%);width:5.2rem;height:5.2rem;border:0;border-radius:50%;background:var(--acacia-deep);color:#fff;display:flex;align-items:center;justify-content:center;cursor:pointer}
.eg-sbtn:hover{background:var(--acacia)}
.eg-search-head .eg-sfield input[type=search]{font-size:2.2rem}
.eg-search-count{font-size:1.6rem;color:var(--stone);margin:2rem 0 0}
.eg-search-head{padding-bottom:3.2rem}
.eg-results{list-style:none;margin:0;padding:0;border-top:1px solid var(--line)}
.eg-result{display:grid;grid-template-columns:16rem 1fr;gap:2.6rem;padding:2.6rem 0;border-bottom:1px solid var(--line);position:relative;align-items:start}
.eg-result-img{display:block;line-height:0}
.eg-result-img img,.eg-result-img .eg-tile-ph{width:100%;aspect-ratio:3/2;object-fit:cover;border-radius:6px;background:var(--sand-deep)}
.eg-result h2{font-size:2.5rem;line-height:1.2;font-weight:620;margin:.5rem 0 .7rem}
.eg-result h2 a{color:var(--ink);text-decoration:none}
.eg-result h2 a::after{content:"";position:absolute;inset:0}
.eg-result h2 a:hover{color:var(--acacia-deep)}
.eg-result p{font-size:1.6rem;line-height:1.55;color:var(--ink-soft);margin:0}
.eg-noresult-msg{font-size:2rem;line-height:1.5;color:var(--ink-soft);text-align:center;max-width:56rem;margin:1rem auto 4rem}

/* ---------- open topic grid (404, empty search) ---------- */
.eg-topic-open{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(3,1fr);border-top:1px solid var(--line)}
.eg-topic-o{border-bottom:1px solid var(--line);margin:0}
.eg-topic-o a{display:flex;align-items:center;gap:1.4rem;min-height:8rem;padding:1.6rem .4rem;color:var(--ink);text-decoration:none;font-family:var(--head);font-size:2rem;font-weight:600;letter-spacing:-.01em}
.eg-topic-o a:hover{color:var(--acacia-deep)}
.eg-topic-ico{flex:none;width:3.6rem;height:3.6rem;background:var(--acacia);-webkit-mask:var(--ico,none) center/contain no-repeat;mask:var(--ico,none) center/contain no-repeat}
.eg-404-all{text-align:center;margin:3.6rem 0 0}
.eg-404 .eg-sfield{margin-top:3rem}

/* ---------- comments ---------- */
.eg-comments{max-width:var(--measure);margin:6rem auto 0;padding:0 2rem}
.eg-comments-title,.comment-reply-title{font-size:2.8rem;margin:0 0 1.2rem}
.eg-comment-list{list-style:none;margin:0 0 4rem;padding:0;border-top:1px solid var(--line)}
.eg-comment-list>li{border-bottom:1px solid var(--line)}
.eg-comment-list li{margin:0}
.eg-cm{display:grid;grid-template-columns:4rem 1fr;gap:1.4rem;padding:2.2rem 0;align-items:start}
.eg-cm-av img{width:4rem;height:4rem;border-radius:50%;object-fit:cover;background:var(--sand-deep)}
.eg-cm-main{min-width:0}
.eg-cm-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem 1rem;margin-bottom:.4rem}
.eg-cm-name{font-weight:700;font-size:1.6rem;color:var(--ink)}
.eg-cm-name a{color:inherit;text-decoration:none}
.eg-cm-date{font-size:1.3rem;color:var(--stone);text-decoration:none}
.eg-cm-date:hover{color:var(--clay)}
.eg-cm-text{font-size:1.6rem;line-height:1.65;overflow-wrap:anywhere}
.eg-cm-text p{margin:0 0 1rem;font-size:inherit}
.eg-cm-wait{font-size:1.4rem;font-style:italic;color:var(--stone);margin:0 0 .6rem}
.eg-cm-reply{margin-top:.2rem}
.eg-cm-reply a{display:inline-flex;align-items:center;min-height:3.6rem;font-size:1.35rem;font-weight:600;color:var(--stone);text-decoration:none}
.eg-cm-reply a:hover{color:var(--clay)}
.eg-comment-list .children{list-style:none;margin:0 0 0 2rem;padding:0 0 0 2.2rem;border-left:1px solid var(--line)}
.eg-comment-list .children .eg-cm{padding:1.6rem 0 1.8rem;border-top:1px solid var(--line)}
.eg-comment-list .children>li:first-child>.eg-cm{border-top:0}
.eg-comments .navigation.pagination{margin:-1.6rem 0 3rem}
.comment-form{display:grid;gap:2rem;margin-top:1.6rem}
.comment-form p{margin:0}
.comment-form label{display:block;font-size:1.4rem;font-weight:700;margin-bottom:.6rem;color:var(--ink)}
.comment-form input[type=text],.comment-form input[type=email],.comment-form input[type=url],.comment-form textarea{width:100%;background:transparent;border:1px solid var(--line);border-radius:10px;padding:1.2rem 1.4rem;font-size:1.6rem;min-height:4.8rem;color:var(--ink)}
.comment-form textarea{min-height:16rem}
.comment-form input:focus,.comment-form textarea:focus{outline:0;border-color:var(--acacia);box-shadow:0 0 0 3px var(--savanna-tint);background:var(--paper)}
.comment-notes,.logged-in-as{font-size:1.4rem;color:var(--stone)}
.comment-form-cookies-consent{display:flex!important;gap:1rem;align-items:flex-start;font-size:1.4rem}
.comment-form-cookies-consent input{margin-top:.5rem;flex:none}
.comment-form-cookies-consent label{display:inline;font-weight:400;margin:0}
.comment-form .form-submit{margin-top:.4rem}
#cancel-comment-reply-link{font-size:1.4rem;font-weight:500;margin-left:1rem}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .eg-tiles{grid-template-columns:repeat(2,1fr)}
  .eg-hub-feature{grid-template-columns:1fr;gap:2.6rem}
  .eg-topic-open{grid-template-columns:repeat(2,1fr)}
}
@media (max-width:700px){
  .eg-hub-head{padding:3.6rem 2rem 1.6rem;text-align:left}
  .eg-hub-dek{font-size:1.85rem;margin-left:0}
  .eg-search-head,.eg-404 .eg-hub-head{text-align:left}
  .eg-sfield{margin-left:0}
  .eg-chips{padding:0;margin-top:.8rem}
  .eg-chips ul{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;padding:.4rem 2rem 1rem;gap:.8rem;-webkit-overflow-scrolling:touch;scrollbar-width:none}
  .eg-chips ul::-webkit-scrollbar{display:none}
  .eg-hub-list{padding-top:3rem}
  .eg-hub-feature{padding-bottom:3.2rem;margin-bottom:3.2rem}
  .eg-hub-feature p{font-size:1.7rem}
  .eg-tiles{grid-template-columns:1fr;gap:3.6rem}
  .eg-tile h3{font-size:2.3rem}
  .eg-author-head{grid-template-columns:1fr;gap:2rem;padding-top:3.6rem;text-align:left;justify-items:start}
  .eg-author-av img{width:10rem;height:10rem}
  .eg-result{grid-template-columns:10.4rem 1fr;gap:1.6rem;padding:2rem 0}
  .eg-result h2{font-size:2rem}
  .eg-result p{font-size:1.5rem;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
  .eg-topic-open{grid-template-columns:1fr}
  .eg-noresult-msg{text-align:left;font-size:1.9rem;margin-left:0}
  .eg-404-all{text-align:left}
  .eg-topic-o a{font-size:2.1rem}
  .eg-comment-list .children{margin-left:.8rem;padding-left:1.4rem}
  .eg-cm{grid-template-columns:4rem 1fr}
}

/* v0.2 hub band: dusk scene header (category + archive), same identity as the homepage hero */
.eg-hub-band{background:var(--dusk) url(../img/hero-savanna.svg) center bottom/cover no-repeat;padding:0 0 4.4rem;margin-bottom:1rem}
.eg-hub-band .eg-hub-head{padding-top:7.4rem;padding-bottom:2.6rem}
.eg-hub-band .eg-hub-kicker{color:var(--savanna)}
.eg-hub-band .eg-hub-title{color:#fff}
.eg-hub-band .eg-hub-dek,.eg-hub-band .eg-hub-dek p{color:#d8dfd2}
.eg-hub-band .eg-chips{margin-top:7rem}
.eg-hub-band .eg-chip{border-color:rgba(255,255,255,.35);color:#fff;background:rgba(27,44,33,.35)}
.eg-hub-band .eg-chip:hover{border-color:var(--savanna);color:var(--savanna);background:rgba(27,44,33,.6)}
.eg-hub-band .eg-chip.is-current,.eg-hub-band .eg-chip.is-current:hover{background:var(--savanna);border-color:var(--savanna);color:var(--ink)}
@media (max-width:700px){.eg-hub-band .eg-hub-head{padding-top:4.4rem}.eg-hub-band .eg-chips{margin-top:4rem}}
.eg-hub-band-404{padding-bottom:7rem}
.eg-hub-band-404 .eg-hub-head{padding-bottom:1rem}
.eg-hub-band-404 .eg-hub-dek{color:#d8dfd2}
.eg-404-read{margin-top:5rem}
.eg-404-read h2{font-size:3rem;margin-bottom:2.4rem}
