/* Loaded only on the home page; article and search-result styles stay intact. */
.wiki-home .page { max-width: 1040px; padding: 24px 28px 48px; }
.wiki-home .hero { max-width: none; margin-bottom: 0; padding: 0 0 32px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.wiki-home .site-header { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.wiki-home .brand-link { font-size: 24px; }
.wiki-home .home-index-link { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 12px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.wiki-home .home-language-nav { width: auto; }
.wiki-home .home-language-link { flex: none; padding: 0 12px; }
.wiki-home .hero-copy { max-width: 760px; margin: 56px auto 0; text-align: center; }
.wiki-home .hero-kicker { font-size: 11px; letter-spacing: .1em; }
.wiki-home .hero-title { margin: 12px 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.2; letter-spacing: -.035em; text-wrap: balance; }
.wiki-home .hero-subtitle { max-width: none; margin: 0; font-size: 16px; line-height: 1.6; }
.wiki-home .search-card { max-width: 720px; margin: 28px auto 0; padding: 6px; flex-direction: row; gap: 6px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); box-shadow: 0 4px 16px rgba(16, 24, 40, .06); }
.wiki-home .search-card:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.wiki-home .search-input-wrap { border: 0; border-radius: 8px; background: transparent; box-shadow: none; }
.wiki-home .search-input { min-width: 0; min-height: 52px; padding: 12px 14px; font-size: 16px; font-weight: 400; }
.wiki-home .search-helper { display: none; }
.wiki-home .search-btn { width: auto; min-height: 52px; flex: 0 0 auto; padding: 0 24px; border-radius: 9px; background: var(--accent); box-shadow: none; white-space: nowrap; }
.wiki-home .search-btn:hover { background: var(--accent-strong); transform: none; box-shadow: none; }
.wiki-home .autocomplete { top: calc(100% + 8px); left: 0; right: 0; border-radius: 12px; background: var(--surface); border-color: var(--border); }
.wiki-home .home-search-hint { margin: 12px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.wiki-home .how-it-works { margin: 0 auto 28px; padding: 18px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; }
.wiki-home .how-it-works .section-heading { display: none; }
.wiki-home .journey-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; }
.wiki-home .journey-step { display: grid; grid-template-columns: 26px 1fr; align-items: center; gap: 4px 10px; padding: 0; border: 0; border-radius: 0; background: transparent; }
.wiki-home .journey-step > span { width: 26px; height: 26px; margin: 0; background: var(--accent-soft); color: var(--accent-strong); font-size: 12px; }
.wiki-home .journey-step strong { font-size: 14px; line-height: 1.5; }
.wiki-home .journey-step p { grid-column: 2; margin: 0; font-size: 12px; line-height: 1.6; }
.wiki-home .keyword-box { margin: 0; padding: 24px; border-radius: 14px; box-shadow: none; }
.wiki-home .keyword-box .section-heading { align-items: baseline; gap: 8px; }
.wiki-home .keyword-box .section-kicker { display: none; }
.wiki-home .keyword-box h2 { margin: 0; font-size: 20px; letter-spacing: -.02em; }
.wiki-home #wikiList { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px; margin-top: 16px; }
.wiki-home .keyword-box #wikiList a { min-height: 48px; padding: 10px 0; border: 0; border-bottom: 1px solid var(--border); border-radius: 0; background: transparent; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.wiki-home .keyword-box #wikiList a:hover, .wiki-home .home-index-link:hover { color: var(--accent-strong); text-decoration: underline; text-underline-offset: 3px; }
.wiki-home .all-articles-link { margin-top: 16px; font-size: 14px; }
.wiki-home .footer { margin-top: 24px; }

@media (max-width: 600px) {
    .wiki-home .page { padding: 16px 20px 32px; }
    .wiki-home .site-header { gap: 4px; padding-bottom: 12px; }
    .wiki-home .brand-link { font-size: 20px; }
    .wiki-home .home-index-link { padding: 0 8px; font-size: 12px; }
    .wiki-home .home-language-link { padding: 0 8px; font-size: 12px; }
    .wiki-home .hero-copy { margin-top: 36px; }
    .wiki-home .hero-title { font-size: 30px; }
    .wiki-home .hero-subtitle { font-size: 14px; }
    .wiki-home .search-card { margin-top: 22px; }
    .wiki-home .search-input { padding: 12px 8px; }
    .wiki-home .search-btn { padding: 0 16px; }
    .wiki-home .home-search-hint { max-width: 290px; margin: 10px auto 0; font-size: 12px; }
    .wiki-home .journey-list { grid-template-columns: 1fr; gap: 12px; }
    .wiki-home .journey-step { grid-template-columns: 26px 1fr; }
    .wiki-home .journey-step p { display: none; }
    .wiki-home .keyword-box { padding: 20px 16px; }
    .wiki-home #wikiList { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
}

@media (max-width: 360px) {
    .wiki-home .home-index-link { order: 3; width: 100%; margin-left: 0; padding: 0; }
    .wiki-home .home-language-nav { margin-left: auto; }
}
