/* Encyclopedia only: shared navigation keeps its existing layout. */
.wiki-page { --wiki-ink: #183c38; --wiki-muted: #5e7069; --wiki-green: #27664d; --wiki-line: #dce5dd; --wiki-cream: #f8f8f2; background: #fff; }
.wiki-page main { color: var(--wiki-ink); font-family: 'Inter', 'Segoe UI', 'Microsoft YaHei', sans-serif; }
.wiki-page main *, .wiki-page main *::before, .wiki-page main *::after { box-sizing: border-box; }
.wiki-page main [hidden] { display: none !important; }
.wiki-page main button, .wiki-page main input, .wiki-page main select { font: inherit; }
.wiki-page main button { cursor: pointer; }
.wiki-page main a:focus-visible, .wiki-page main button:focus-visible, .wiki-page main input:focus-visible, .wiki-page main select:focus-visible, .wiki-page main summary:focus-visible { outline: 3px solid #43805d; outline-offset: 4px; }
.wiki-page .wiki-container { width: min(100% - 64px, 1240px); margin-inline: auto; }
.wiki-page .wiki-section { padding-block: 76px; }
.wiki-page main section[id] { scroll-margin-top: 112px; }
.wiki-page .wiki-kicker { margin: 0 0 14px; color: var(--wiki-green); font-size: 12px; line-height: 1.5; font-weight: 600; letter-spacing: .16em; }
.wiki-page .wiki-heading { margin: 0 0 12px; font-size: clamp(26px, 2.6vw, 34px); line-height: 1.4; color: var(--wiki-ink); letter-spacing: -.02em; }
.wiki-page .wiki-lead, .wiki-page .wiki-muted { font-size: 16px; line-height: 1.85; color: var(--wiki-muted); margin: 0; }
.wiki-page .wiki-masthead { position: relative; background: #102c2b; color: #fff; padding: 148px 0 64px; overflow: hidden; }
.wiki-page .wiki-masthead::before { content: ''; position: absolute; width: 560px; height: 560px; border: 1px solid #37534a; border-radius: 50%; left: -340px; top: 30px; pointer-events: none; }
.wiki-page .wiki-masthead-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.08fr 1fr; gap: 64px; align-items: center; }
.wiki-page .wiki-masthead-grid > * { min-width: 0; }
.wiki-page .wiki-masthead .wiki-kicker { color: #b8d6ae; }
.wiki-page .wiki-masthead h1 { color: #fff; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.3; letter-spacing: -.025em; margin: 0 0 22px; text-wrap: balance; }
.wiki-page .wiki-masthead-intro { color: #d4dfd7; font-size: 18px; line-height: 1.9; margin: 0; max-width: 540px; }
.wiki-page .wiki-masthead-figure { margin: 0; position: relative; }
.wiki-page .wiki-masthead-photo { display: block; width: 100%; height: auto; aspect-ratio: 1.2; object-fit: cover; object-position: 57% center; border-radius: 110px 12px 12px 12px; }
.wiki-page .wiki-search-label { display: block; font-size: 14px; color: #c6d8cb; margin: 30px 0 10px; }
.wiki-page .wiki-search-form { display: flex; align-items: center; gap: 10px; background: #fff; padding: 7px; border: 1px solid #e1e9de; border-radius: 8px; box-shadow: 0 12px 30px #001d151a; }
.wiki-page .wiki-search-form svg { width: 22px; height: 22px; flex-shrink: 0; margin-left: 10px; color: #587061; }
.wiki-page .wiki-search-form input { min-width: 0; flex: 1; background: transparent; color: #183c38; border: 0; padding: 12px 0; font-size: 16px; }
.wiki-page .wiki-search-form input::placeholder { color: #718077; opacity: 1; }
.wiki-page .wiki-search-form button { flex-shrink: 0; border: 0; background: #c8dfb4; color: #173f2d; padding: 13px 22px; border-radius: 5px; font-size: 16px; font-weight: 600; min-height: 46px; }
.wiki-page .wiki-search-form button:hover { background: #d7ebc7; }
.wiki-page .wiki-suggestions { display: flex; gap: 8px 14px; align-items: center; flex-wrap: wrap; margin-top: 14px; min-height: 30px; font-size: 12px; color: #b8cbbb; }
.wiki-page .wiki-suggestions button { border: 0; border-bottom: 1px solid #6c8b76; background: transparent; color: #e3eddf; padding: 5px 0; line-height: 1.5; }
.wiki-page .wiki-suggestions button:hover { color: #c8dfb4; }
.wiki-page .wiki-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 32px; }
.wiki-page .wiki-section-heading .wiki-lead { max-width: 500px; }
.wiki-page .wiki-topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.wiki-page .wiki-topic-card { position: relative; display: block; min-width: 0; background: #fbfcf8; border: 1px solid #dce5dd; border-radius: 8px; padding: 26px 26px 40px; text-align: left; color: var(--wiki-ink); transition: border-color .18s, background .18s; }
.wiki-page .wiki-topic-card:hover, .wiki-page .wiki-topic-card[aria-pressed="true"] { background: #eff5e9; border-color: #659379; }
.wiki-page .wiki-topic-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 20px; }
.wiki-page .wiki-icon { display: inline-flex; align-items: center; justify-content: center; color: #37704c; flex: 0 0 auto; }
.wiki-page .wiki-icon svg { width: 30px; height: 30px; }
.wiki-page .wiki-topic-status { font-size: 12px; color: #73816f; line-height: 1.5; }
.wiki-page .wiki-topic-status.is-available { padding: 4px 9px; border-radius: 99px; background: #e8f0dd; color: #3e6337; }
.wiki-page .wiki-topic-title { display: block; color: var(--wiki-ink); font-size: 21px; font-weight: 700; line-height: 1.4; margin: 0 0 10px; }
.wiki-page .wiki-topic-summary { display: block; margin: 0; color: var(--wiki-muted); font-size: 14px; line-height: 1.8; max-width: 28em; }
.wiki-page .wiki-topic-arrow { position: absolute; bottom: 14px; right: 24px; color: #56765c; font-size: 19px; }
.wiki-page .wiki-directory { border-block: 1px solid #e3e9df; background: var(--wiki-cream); }
.wiki-page .wiki-directory-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 28px 0; padding-bottom: 22px; border-bottom: 1px solid var(--wiki-line); }
.wiki-page .wiki-filter { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--wiki-muted); }
.wiki-page .wiki-filter select { max-width: 260px; min-height: 44px; border: 1px solid #cdd9cc; border-radius: 5px; background: #fff; color: var(--wiki-ink); padding: 8px 32px 8px 12px; font-size: 14px; }
.wiki-page .wiki-status { margin-left: auto; color: var(--wiki-muted); font-size: 14px; }
.wiki-page .wiki-reset { background: transparent; color: var(--wiki-green); border: 0; text-decoration: underline; padding: 8px 0; font-size: 14px; }
.wiki-page .wiki-entry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.wiki-page .wiki-entry-card { min-width: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid #dce5dd; border-radius: 8px; padding: 28px 30px; transition: border-color .18s, box-shadow .18s; }
.wiki-page .wiki-entry-card:hover { border-color: #7ca38c; box-shadow: 0 6px 18px #183c3809; }
.wiki-page .wiki-entry-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; font-size: 12px; }
.wiki-page .wiki-entry-topic { color: #4c7257; }
.wiki-page .wiki-entry-number { color: #a6b2a1; font-variant-numeric: tabular-nums; }
.wiki-page .wiki-entry-card h3 { color: var(--wiki-ink); font-size: 24px; line-height: 1.5; margin: 0 0 8px; overflow-wrap: anywhere; }
.wiki-page .wiki-entry-english { font-size: 14px; color: var(--wiki-muted); margin: 0; line-height: 1.65; }
.wiki-page .wiki-entry-read { display: block; margin-top: auto; padding-top: 28px; color: var(--wiki-green); font-size: 14px; font-weight: 600; }
.wiki-page .wiki-empty { grid-column: 1/-1; text-align: center; background: #fff; padding: 48px 24px; border: 1px dashed #c8d7c7; border-radius: 8px; }
.wiki-page .wiki-empty h3 { margin: 18px 0 10px; color: var(--wiki-ink); font-size: 22px; line-height: 1.5; }
.wiki-page .wiki-empty p { color: var(--wiki-muted); font-size: 16px; line-height: 1.8; margin: 0; }
.wiki-page .wiki-secondary-button { padding: 12px 20px; border: 1px solid #779a7a; background: transparent; color: var(--wiki-green); border-radius: 5px; font-size: 15px; margin-top: 24px; min-height: 44px; }
.wiki-page #wiki-more { display: block; margin: 32px auto 0; }
.wiki-page .wiki-guide { display: grid; grid-template-columns: .8fr 1.4fr; gap: 64px; align-items: start; }
.wiki-page .wiki-guide-list { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 0; margin: 0; }
.wiki-page .wiki-guide-list li { border-top: 1px solid #a9bfa8; padding-top: 20px; }
.wiki-page .wiki-guide-list span { color: #6e8d6b; font-size: 12px; letter-spacing: .1em; }
.wiki-page .wiki-guide-list h3 { color: var(--wiki-ink); margin: 14px 0 12px; font-size: 18px; line-height: 1.5; }
.wiki-page .wiki-guide-list p { color: var(--wiki-muted); font-size: 14px; line-height: 1.8; margin: 0; }
.wiki-page .wiki-boundary { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--wiki-line); font-size: 13px; line-height: 1.8; color: #6b796e; }
.wiki-page #footer-placeholder .container { max-width: 1304px; padding-inline: 32px; }
.wiki-page .wiki-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Entry pages use a reading column, automatic contents and a restrained sidebar. */
.wiki-page .wiki-article-masthead { background: #102c2b; padding: 132px 0 48px; color: #fff; }
.wiki-page .wiki-breadcrumbs { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; color: #bfd0c5; font-size: 13px; line-height: 1.8; margin-bottom: 28px; }
.wiki-page .wiki-breadcrumbs a { color: #d0e5d1; }
.wiki-page .wiki-article-masthead h1 { color: #fff; font-size: clamp(30px, 3.2vw, 42px); line-height: 1.4; max-width: 950px; margin: 0 0 16px; overflow-wrap: anywhere; }
.wiki-page .wiki-entry-meta { color: #b8cdbf; font-size: 13px; margin: 0; }
.wiki-page .wiki-reading-layout { display: grid; grid-template-columns: minmax(0, 800px) minmax(220px, 280px); grid-template-areas: 'article sidebar'; justify-content: space-between; gap: 64px; padding-block: 52px 80px; }
.wiki-page .wiki-article { grid-area: article; min-width: 0; }
.wiki-page .wiki-reading-aside { grid-area: sidebar; min-width: 0; }
.wiki-page .wiki-aside-inner { position: sticky; top: 112px; background: #f5f7ef; border-radius: 8px; border: 1px solid #e0e7da; padding: 24px; }
.wiki-page .wiki-aside-inner summary, .wiki-page .wiki-aside-inner h2 { font-size: 16px; color: var(--wiki-ink); font-weight: 600; line-height: 1.5; margin: 0; }
.wiki-page .wiki-aside-inner summary { cursor: pointer; }
.wiki-page .wiki-aside-inner ul { list-style: none; margin: 18px 0 0; padding: 0; }
.wiki-page .wiki-aside-inner li + li { margin-top: 12px; }
.wiki-page .wiki-aside-inner a { font-size: 14px; color: #4d6754; line-height: 1.7; overflow-wrap: anywhere; }
.wiki-page .wiki-aside-inner a:hover { text-decoration: underline; }
.wiki-page .wiki-related { margin-top: 24px; padding-top: 24px; border-top: 1px solid #d6e1d1; }
.wiki-page .wiki-rich-text { font-size: 17px; line-height: 1.95; color: #384c44; overflow-wrap: anywhere; }
.wiki-page .wiki-rich-text > p:first-child { font-size: 18px; color: #294b3a; }
.wiki-page .wiki-rich-text p { margin: 0 0 24px; white-space: pre-line; }
.wiki-page .wiki-rich-text h2, .wiki-page .wiki-rich-text h3 { color: var(--wiki-ink); margin: 40px 0 18px; font-size: 25px; line-height: 1.5; scroll-margin-top: 120px; }
.wiki-page .wiki-rich-text h3 { font-size: 21px; }
.wiki-page .wiki-rich-text ul, .wiki-page .wiki-rich-text ol { padding-left: 1.4em; margin: 0 0 24px; }
.wiki-page .wiki-rich-text li + li { margin-top: 8px; }
.wiki-page .wiki-rich-text a { color: #246b4c; text-decoration: underline; }
.wiki-page .wiki-rich-text img { display: block; max-width: 100%; height: auto; margin: 28px auto; border-radius: 6px; }
.wiki-page .wiki-rich-text blockquote { margin: 24px 0; padding: 20px 24px; background: #f3f7ee; border-left: 3px solid #7fa16f; }
.wiki-page .wiki-rich-text table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 15px; }
.wiki-page .wiki-rich-text th, .wiki-page .wiki-rich-text td { padding: 12px 14px; border: 1px solid #d5dfd1; text-align: left; }
.wiki-page .wiki-rich-text th { background: #eef3e7; }
.wiki-page .wiki-table-scroll { overflow-x: auto; max-width: 100%; margin: 26px 0; }
.wiki-page .wiki-translation-note { padding: 14px 18px; border-left: 3px solid #b2bd7d; background: #f7f8ec; color: #65713e; font-size: 14px; line-height: 1.8; margin-bottom: 24px; }
.wiki-page .wiki-article-footer { border-top: 1px solid var(--wiki-line); padding-top: 26px; margin-top: 42px; }
.wiki-page .wiki-article-footer a { color: var(--wiki-green); font-size: 15px; }
.wiki-page .wiki-article-footer p { margin-top: 20px; font-size: 13px; line-height: 1.8; color: var(--wiki-muted); }

@media (max-width: 1199px) {
    .wiki-page .wiki-masthead, .wiki-page .wiki-article-masthead { padding-top: 154px; }
    .wiki-page .wiki-masthead-grid { gap: 32px; }
    .wiki-page .wiki-masthead-photo { border-top-left-radius: 70px; aspect-ratio: .9; }
    .wiki-page .wiki-guide { grid-template-columns: 1fr; gap: 30px; }
    .wiki-page .wiki-reading-layout { gap: 32px; grid-template-columns: minmax(0, 1fr) 220px; }
    .wiki-page .wiki-topic-card { padding: 22px 20px 38px; }
}
@media (max-width: 900px) {
    .wiki-page .wiki-topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .wiki-page .wiki-reading-layout { grid-template-columns: 1fr; grid-template-areas: 'sidebar' 'article'; }
    .wiki-page .wiki-aside-inner { position: static; }
    .wiki-page .wiki-related { display: none; }
    .wiki-page .wiki-reading-layout.wiki-reading-no-toc { grid-template-areas: 'article'; }
    .wiki-page .wiki-reading-no-toc .wiki-reading-aside { display: none; }
}
@media (max-width: 767px) {
    .wiki-page .wiki-container { width: calc(100% - 40px); }
    .wiki-page .wiki-section { padding-block: 46px; }
    .wiki-page main section[id] { scroll-margin-top: 76px; }
    .wiki-page .wiki-masthead { padding: 96px 0 32px; }
    .wiki-page .wiki-masthead-grid { grid-template-columns: 1fr; gap: 26px; }
    .wiki-page .wiki-masthead h1 { font-size: 34px; margin-bottom: 16px; }
    .wiki-page .wiki-masthead-intro { font-size: 16px; }
    .wiki-page .wiki-masthead-photo { aspect-ratio: 1.85; max-height: 280px; border-top-left-radius: 56px; object-position: center 56%; }
    .wiki-page .wiki-search-label { margin-top: 24px; }
    .wiki-page .wiki-search-form { gap: 8px; padding: 5px; }
    .wiki-page .wiki-search-form svg { width: 18px; height: 18px; margin-left: 7px; }
    .wiki-page .wiki-search-form button { padding-inline: 14px; font-size: 14px; }
    .wiki-page .wiki-search-form input { font-size: 16px; }
    .wiki-page .wiki-section-heading { display: block; margin-bottom: 24px; }
    .wiki-page .wiki-topic-grid { gap: 12px; }
    .wiki-page .wiki-topic-card { padding: 18px 16px 36px; }
    .wiki-page .wiki-topic-top { align-items: flex-start; gap: 8px; margin-bottom: 16px; }
    .wiki-page .wiki-icon svg { width: 26px; height: 26px; }
    .wiki-page .wiki-topic-status { font-size: 10px; }
    .wiki-page .wiki-topic-title { font-size: 18px; }
    .wiki-page .wiki-topic-summary { font-size: 13px; }
    .wiki-page .wiki-entry-grid { grid-template-columns: 1fr; gap: 14px; }
    .wiki-page .wiki-entry-card { padding: 22px; }
    .wiki-page .wiki-entry-card h3 { font-size: 23px; }
    .wiki-page .wiki-directory-toolbar { gap: 12px; margin-block: 22px; }
    .wiki-page .wiki-filter { width: 100%; }
    .wiki-page .wiki-filter select { flex: 1; max-width: none; min-width: 0; }
    .wiki-page .wiki-status { margin-left: 0; }
    .wiki-page .wiki-reset { margin-left: auto; }
    .wiki-page .wiki-guide-list { grid-template-columns: 1fr; gap: 22px; }
    .wiki-page .wiki-guide-list li { display: grid; grid-template-columns: 30px 1fr; gap: 0 12px; padding-top: 18px; }
    .wiki-page .wiki-guide-list span { padding-top: 4px; }
    .wiki-page .wiki-guide-list h3 { margin: 0 0 8px; }
    .wiki-page .wiki-guide-list p { grid-column: 2; }
    .wiki-page .wiki-boundary { margin-top: 28px; }
    .wiki-page .wiki-article-masthead { padding: 94px 0 30px; }
    .wiki-page .wiki-breadcrumbs { margin-bottom: 20px; font-size: 12px; }
    .wiki-page .wiki-reading-layout { padding-block: 28px 48px; gap: 28px; }
    .wiki-page .wiki-aside-inner { padding: 20px; }
    .wiki-page .wiki-rich-text { font-size: 16px; line-height: 1.95; }
    .wiki-page .wiki-rich-text > p:first-child { font-size: 17px; }
    .wiki-page .wiki-rich-text h2 { font-size: 23px; scroll-margin-top: 84px; }
    .wiki-page .wiki-rich-text h3 { font-size: 20px; scroll-margin-top: 84px; }
}
@media (max-width: 359px) {
    .wiki-page .wiki-masthead h1 { font-size: 30px; }
    .wiki-page .wiki-topic-grid { grid-template-columns: 1fr; }
    .wiki-page .wiki-topic-card { padding: 20px 22px 32px; }
}
@media (prefers-reduced-motion: reduce) { .wiki-page main * { scroll-behavior: auto; transition: none; } }
