/* Shared by the six encyclopedia views; independent of global inner-page banners. */
.wiki-shared-masthead {
    position: relative;
    background: #112d39;
    color: #fff;
    min-height: 480px;
    padding: calc(var(--inner-nav-height, 84px) + 26px) 0 40px;
}
.wiki-experience .wiki-shared-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
    gap: 40px;
    align-items: center;
}
.wiki-shared-grid > * { min-width: 0; }
.wiki-shared-copy { text-align: left; }
.wiki-shared-masthead .wiki-shared-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    color: #d7bc8b;
    font-size: 11px;
    line-height: 1.6;
    letter-spacing: .15em;
    font-weight: 600;
}
.wiki-shared-kicker::before { content: ''; width: 24px; height: 1px; background: currentColor; flex-shrink: 0; }
.wiki-shared-masthead h1 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(34px, 3.4vw, 46px);
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -.035em;
    text-wrap: balance;
}
.wiki-shared-masthead .wiki-shared-intro { margin: 0; color: #cadbda; font-size: 16px; line-height: 1.75; }
.wiki-shared-intro strong { color: #f6f5ee; font-weight: 400; }
.wiki-shared-label { display: block; color: #d4e0df; margin: 16px 0 7px; font-size: 13px; line-height: 1.6; }
.wiki-shared-search { display: flex; align-items: center; gap: 10px; margin: 0; padding: 5px; background: #fff; border: 1px solid #fff; border-radius: 8px; box-shadow: 0 10px 24px #061f2517; }
.wiki-shared-search > svg { width: 22px; height: 22px; margin-left: 10px; color: #617c6e; flex-shrink: 0; }
.wiki-shared-masthead .wiki-shared-search input { width: 100%; min-width: 0; flex: 1; padding: 8px 0; border: 0; background: transparent; color: #173340; font-size: 16px; line-height: 1.5; border-radius: 2px; }
.wiki-shared-search input::placeholder { color: #74817f; opacity: 1; }
.wiki-shared-masthead .wiki-shared-search button { min-height: 42px; padding: 9px 24px; flex: 0 0 auto; border: 1px solid #bca16a; border-radius: 6px; background: linear-gradient(135deg,#f4e2ba,#d7bc8b); color: #183c38; font-size: 13px; line-height: 1.5; font-weight: 600; box-shadow: inset 0 1px #fff8,0 3px 8px #112d3910; }
.wiki-shared-search button:hover { background: #f3dfb4; }
.wiki-shared-suggestions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: 9px; min-height: 26px; }
.wiki-shared-masthead .wiki-shared-suggestions :is(a,button) { display: inline-flex; align-items: center; gap: 6px; padding: 2px 0; border: 0; border-bottom: 1px solid #91a38a66; background: transparent; border-radius: 0; color: #d5dfca; font-size: 12px; line-height: 1.6; text-decoration: none; }
.wiki-shared-suggestions a:hover { color: #fff; border-bottom-color: #d7bc8b; }
.wiki-shared-masthead :is(a,button,input):focus-visible { outline: 3px solid #d7bc8b; outline-offset: 4px; }
.wiki-shared-figure { position: relative; isolation: isolate; height: 320px; margin: 0; }
.wiki-shared-figure::before { content: ''; position: absolute; inset: -12px 12px 12px -12px; border: 1px solid #d7bc8b66; border-radius: 100px 12px 12px 12px; z-index: -1; }
.wiki-shared-figure > img { display: block; width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: center; border-radius: 92px 8px 8px 8px; }
.wiki-shared-figure figcaption { position: absolute; left: 26px; right: 26px; bottom: -15px; display: flex; align-items: center; gap: 16px; padding: 16px 22px; border: 1px solid #e4dfcb; border-radius: 4px; background: #f9f8ef; box-shadow: 0 6px 24px #09231c12; }
.wiki-shared-figure figcaption > svg { width: 30px; height: 30px; color: #648452; flex: 0 0 auto; }
.wiki-shared-figure figcaption > div { min-width: 0; }
.wiki-shared-figure strong { display: block; color: #284d39; font-size: 15px; line-height: 1.6; font-weight: 500; }
.wiki-shared-figure figcaption span { display: block; margin-top: 3px; color: #707d66; font-size: 9px; line-height: 1.6; letter-spacing: .12em; }
.wiki-shared-figure figcaption i { flex: 1; height: 1px; min-width: 12px; background: #d9ddcd; }
html:lang(en) .wiki-shared-masthead h1 { font-size: 36px; margin-bottom: 14px; }
html:lang(en) .wiki-shared-intro { font-size: 14px; }

/* Keep linked categories and search results below the responsive navigation. */
html body.wiki-experience :is([id^="field-"], [id^="category-"], #wx-directory, #wiki-category-results, #wiki-topics-section) {
    scroll-margin-top: calc(var(--inner-nav-height, 84px) + 24px);
}
.wiki-experience :is(#wx-results-title, #wiki-category-results-title):focus { outline: none; }
.wiki-experience .wx-main .wx-leaf-details > summary:focus-visible { outline-offset: -3px; }

/* The active field stays with its directory, below the common six-view navigation. */
.wiki-category-context { padding: 32px 0 0; background: #f8f7f2; }
.wiki-context-breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 20px; color: #66796d; font-size: 12px; }
.wiki-context-breadcrumbs a { color: #315d49; }
.wiki-category-context-grid { display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.wiki-category-context-copy { max-width: 750px; }
.wiki-category-context-copy h2 { margin: 0 0 10px; font-size: 28px; line-height: 1.5; }
.wiki-experience.wiki-categories .wiki-category-context #wiki-category-intro { margin: 0; color: #61746b; font-size: 14px; line-height: 1.8; }
.wiki-category-context-index { display: flex; align-items: center; gap: 12px; color: #456b56; font-size: 13px; }
.wiki-category-context-index .wiki-category-emblem { display: none; }
.wiki-experience.wiki-categories .wiki-category-context #wiki-category-number { color: #6a806b; font-size: 36px; font-weight: 300; padding: 0; }
.wiki-experience.wiki-categories .wiki-category-context #wiki-category-field-label { color: #456b56; font-size: 13px; }
.wiki-category-context-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin-top: 24px; padding: 16px 0; border-block: 1px solid #dfe5d9; }
.wiki-category-context .wiki-category-motto { color: #65766b; font-size: 13px; }
.wiki-category-context .wiki-category-stats { display: flex; gap: 28px; margin: 0; }
.wiki-category-context .wiki-category-stats > div { display: flex; align-items: center; gap: 10px; }
.wiki-category-context .wiki-category-stats dt { color: #65766b; font-size: 12px; }
.wiki-category-context .wiki-category-stats dd { margin: 0; color: #315d49; font-size: 24px; }
@media (min-width: 768px) and (max-width: 1199.98px) {
    .wiki-shared-masthead { padding-top: calc(var(--inner-nav-height, 128px) + 28px); }
    .wiki-experience .wiki-shared-grid { gap: 28px; }
    .wiki-shared-masthead h1 { font-size: 36px; }
    .wiki-shared-figure { height: 300px; }
    .wiki-shared-figure figcaption { left: 14px; right: 14px; padding: 12px 14px; gap: 10px; }
    .wiki-shared-figure strong { font-size: 13px; }
    .wiki-shared-figure figcaption i { display: none; }
    .wiki-shared-search > svg { margin-left: 4px; width: 19px; }
    .wiki-shared-masthead .wiki-shared-search button { padding-inline: 16px; }
    html:lang(en) .wiki-shared-masthead h1 { font-size: 30px; }
}
@media (max-width: 767.98px) {
    .wiki-shared-masthead { min-height: 0; padding: calc(var(--inner-nav-height, 64px) + 24px) 0 40px; }
    .wiki-experience .wiki-shared-grid { grid-template-columns: minmax(0,1fr); gap: 28px; }
    .wiki-shared-masthead .wiki-shared-kicker { font-size: 9px; letter-spacing: .12em; margin-bottom: 14px; }
    .wiki-shared-masthead h1 { font-size: 34px; margin-bottom: 16px; }
    .wiki-shared-masthead .wiki-shared-intro { font-size: 15px; line-height: 1.8; }
    .wiki-shared-label { margin-top: 18px; }
    .wiki-shared-search { gap: 8px; }
    .wiki-shared-search > svg { margin-left: 5px; width: 19px; }
    .wiki-shared-masthead .wiki-shared-search button { min-height: 44px; padding-inline: 16px; }
    .wiki-shared-suggestions { gap: 8px 20px; }
    .wiki-shared-figure { height: clamp(180px,44vw,260px); margin-left: 8px; }
    .wiki-shared-figure::before { inset: -8px 8px 8px -8px; border-top-left-radius: 68px; }
    .wiki-shared-figure > img { border-top-left-radius: 60px; }
    .wiki-shared-figure figcaption { left: 16px; right: 16px; padding: 12px 14px; gap: 10px; }
    .wiki-shared-figure figcaption > svg { width: 25px; height: 25px; }
    .wiki-shared-figure strong { font-size: 13px; }
    .wiki-shared-figure figcaption span { font-size: 8px; letter-spacing: .09em; }
    .wiki-shared-figure figcaption i { display: none; }
    html:lang(en) .wiki-shared-masthead h1 { font-size: 30px; }
    html:lang(en) .wiki-shared-intro { font-size: 14px; }
    .wiki-category-context-grid, .wiki-category-context-bottom { flex-wrap: wrap; gap: 16px; }
    .wiki-category-context-copy h2 { font-size: 24px; }
    .wiki-category-context-index { display: none; }
    .wiki-category-context .wiki-category-stats { gap: 24px; }
}
