:root {
  --forest: #18533f;
  --forest-deep: #103a2d;
  --moss: #c9dca7;
  --sage: #e9f0e5;
  --paper: #f7f8f4;
  --paper-alt: #edf2ec;
  --ink: #1d2f2a;
  --muted: #61746c;
  --coral: #cf6f57;
  --line: #d2ddd3;
  --white: #ffffff;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Manrope", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}
body { font-size: var(--portal-base-font-size, 16px); line-height: var(--portal-body-line-height, 1.6); font-weight: var(--portal-body-weight, 400); }
.main-nav { font-size: var(--portal-nav-font-size, 13px); font-weight: var(--portal-nav-weight, 700); }
.hero h1 { font-size: var(--portal-hero-title-size, clamp(42px, 5vw, 68px)); font-weight: var(--portal-heading-weight, 800); }
.section h2 { font-size: var(--portal-section-title-size, clamp(32px, 4vw, 52px)); font-weight: var(--portal-heading-weight, 800); }
.direction-card h3 { font-size: var(--portal-card-title-size, 18px); }
.button, .outline-button { font-size: var(--portal-button-size, 13px); }
.eyebrow, .result-year, .result-type { font-size: var(--portal-meta-size, 11px); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
button { font: inherit; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }
.topline { background: var(--forest-deep); color: #d8e5da; font: 11px var(--mono); letter-spacing: .04em; }
.topline-inner { display: flex; justify-content: space-between; padding: 8px 0; }
.topline a { color: var(--moss); }
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(247, 248, 244, .96); border-bottom: 1px solid var(--line); }
.nav-shell { min-height: 74px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; background: var(--forest); color: var(--moss); font-weight: 800; font-size: 14px; letter-spacing: .03em; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 15px; font-weight: 800; }
.brand small { margin-top: 1px; color: var(--muted); font: 10px var(--mono); }
.main-nav { display: flex; align-items: center; gap: 22px; color: var(--ink); font-size: 13px; font-weight: 700; }
.main-nav a { padding: 8px 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.main-nav a:hover { color: var(--forest); border-color: var(--moss); }
.nav-external { color: var(--coral) !important; }
.internal-link { display: inline-flex; align-items: center; gap: 7px; padding-left: 22px; border-left: 1px solid var(--line); color: var(--forest); font-size: 13px; font-weight: 800; white-space: nowrap; }
.status-dot, .internal-status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7caa54; }
.menu-toggle { display: none; border: 1px solid var(--line); background: var(--white); color: var(--forest); padding: 9px 12px; font-size: 12px; font-weight: 800; }
.hero { padding: 72px 0 78px; background: var(--paper); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 72px; align-items: center; }
.eyebrow { margin: 0 0 16px; color: var(--coral); font: 11px var(--mono); letter-spacing: .1em; }
.hero h1 { max-width: 600px; margin: 0 0 22px; color: var(--forest-deep); font-size: clamp(42px, 5vw, 68px); line-height: 1.14; font-weight: 800; }
.hero h1 em { color: var(--forest); font-style: normal; }
.hero-lead { max-width: 500px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.9; }
.hero-actions { display: flex; align-items: center; gap: 24px; margin: 32px 0 46px; }
.button { display: inline-flex; align-items: center; gap: 12px; padding: 13px 18px; font-size: 13px; font-weight: 800; }
.button-primary { background: var(--forest); color: var(--white); }
.button-primary:hover { background: var(--forest-deep); }
.text-link, .arrow-link { color: var(--forest); font-size: 13px; font-weight: 800; }
.text-link span, .arrow-link span { margin-left: 5px; color: var(--coral); }
.hero-stats { display: flex; gap: 36px; margin: 0; }
.hero-stats div { border-left: 2px solid var(--moss); padding-left: 12px; }
.hero-stats dt { color: var(--forest-deep); font-size: 24px; font-weight: 800; line-height: 1; }
.hero-stats dd { margin: 7px 0 0; color: var(--muted); font-size: 11px; }
.hero-media { position: relative; margin: 0; }
.hero-media:before { content: ""; position: absolute; inset: 16px -16px -16px 16px; background: var(--moss); }
.hero-media img { position: relative; z-index: 1; display: block; width: 100%; height: 370px; border: 8px solid var(--white); object-fit: cover; box-shadow: 0 18px 38px rgba(16, 58, 45, .14); }
.hero-media figcaption { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 12px; margin-top: -1px; padding: 12px 14px; background: var(--forest-deep); color: #e1ede1; font: 10px var(--mono); letter-spacing: .04em; }
.section { padding: 92px 0; }
.section-intro { background: var(--forest-deep); color: #edf5ec; }
.intro-grid, .contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; }
.section h2 { margin: 0; color: inherit; font-size: clamp(32px, 4vw, 52px); line-height: 1.17; font-weight: 800; }
.section h2 span { color: var(--coral); }
.section-intro .eyebrow { color: var(--moss); }
.intro-text, .contact-details { padding-top: 20px; }
.intro-text p { max-width: 500px; margin: 0 0 20px; font-size: 17px; line-height: 1.85; }
.intro-text .muted { color: #b8cabb; font-size: 14px; }
.section-intro .arrow-link { color: var(--moss); }
#about .managed-grid { margin-top: 28px; }
#about .managed-item { display: flex; padding: 16px; border: 1px solid var(--line); background: var(--white); box-shadow: none; }
#about .managed-item h3 { margin: 0 0 7px; color: var(--forest); font-size: 17px; }
#about .managed-item h3 a { display: inline; padding: 0; background: transparent; color: var(--forest); }
#about .managed-item p { margin-top: 10px; color: var(--muted); }
.section-directions, .section-team, .section-contact { background: var(--paper-alt); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: 34px; }
.section-note { max-width: 310px; margin: 0 0 4px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.direction-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.direction-card { display: flex; min-height: 286px; flex-direction: column; padding: 23px 20px; border: 1px solid var(--line); background: var(--paper); }
.direction-card.featured { border-color: var(--forest); background: var(--forest); color: var(--white); }
.card-index { color: var(--coral); font: 11px var(--mono); }
.featured .card-index { color: var(--moss); }
.direction-card h3 { margin: 55px 0 11px; font-size: 18px; line-height: 1.35; }
.direction-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.75; }
.direction-card.featured p { color: #d2e0d4; }
.direction-card a { margin-top: auto; color: var(--forest); font-size: 12px; font-weight: 800; }
.direction-card.featured a { color: var(--moss); }
.direction-card a span { margin-left: 5px; color: var(--coral); }
.section-results { background: var(--paper); }
.filter-group { display: flex; gap: 7px; }
.filter { border: 1px solid var(--line); background: transparent; color: var(--muted); padding: 8px 12px; cursor: pointer; font: 11px var(--mono); }
.filter:hover, .filter.is-active { border-color: var(--forest); background: var(--forest); color: var(--white); }
.result-list { border-top: 1px solid var(--line); }
.result-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) 18px; gap: 22px; align-items: start; padding: 23px 0; border-bottom: 1px solid var(--line); }
.result-row:hover { padding-left: 8px; background: rgba(233, 240, 229, .5); }
.result-row.is-hidden { display: none; }
.result-year { color: var(--coral); font: 12px var(--mono); }
.result-type { margin: 0 0 6px; color: var(--muted); font: 10px var(--mono); }
.result-row h3 { margin: 0; color: var(--forest-deep); font-size: 19px; line-height: 1.4; }
.result-row h3 a:hover { color: var(--forest); }
.result-row p:last-child { margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.result-arrow { color: var(--coral); font-size: 16px; }
.outline-button { display: inline-flex; align-items: center; gap: 12px; margin-top: 28px; border: 1px solid var(--forest); background: transparent; color: var(--forest); padding: 11px 15px; cursor: pointer; font-size: 12px; font-weight: 800; }
.outline-button:hover { background: var(--forest); color: var(--white); }
.section-methods { background: var(--moss); }
.methods-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 96px; }
.methods-heading p:not(.eyebrow) { max-width: 340px; margin: 22px 0 26px; color: #4f6659; font-size: 14px; line-height: 1.8; }
.method-list { border-top: 1px solid rgba(24, 83, 63, .28); }
.method-item { display: grid; width: 100%; grid-template-columns: 34px minmax(0, 1fr) 18px; align-items: center; padding: 21px 0; border: 0; border-bottom: 1px solid rgba(24, 83, 63, .28); background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.method-item > span:first-child { color: var(--coral); font: 11px var(--mono); }
.method-item strong { font-size: 16px; }
.method-item .plus { color: var(--forest); font-size: 18px; text-align: right; }
.method-item p { display: none; grid-column: 2 / 3; margin: 10px 0 0; color: #4f6659; font-size: 13px; line-height: 1.7; }
.method-item.is-open p { display: block; }
.people-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.person-card { min-height: 216px; padding: 18px; border: 1px solid var(--line); background: var(--paper); }
.person-lead { border-color: var(--forest); background: var(--forest); color: var(--white); }
.avatar { display: grid; place-items: center; width: 58px; height: 58px; margin-bottom: 34px; overflow: hidden; background: var(--sage); color: var(--forest); font: 11px var(--mono); }
.avatar img { display: block; width: 100%; height: 100%; object-fit: contain; object-position: center top; background: var(--sage); }
.avatar img.is-placeholder { object-fit: contain; padding: 8px; filter: grayscale(1) opacity(.68); }
.avatar img[src$="member-photo-placeholder.png"] { object-fit: contain; padding: 8px; filter: grayscale(1) opacity(.68); }
.person-lead .avatar { background: var(--moss); }
.person-role { margin: 0 0 6px; color: var(--coral); font: 10px var(--mono); }
.person-card, .person-card > div { min-width: 0; }
.person-card h3, .person-card h3 a { max-width: 100%; margin: 0 0 4px; font-size: 17px; overflow-wrap: anywhere; }
.person-card p { overflow-wrap: anywhere; }
.person-card p:last-child { margin: 0; color: var(--muted); font-size: 12px; }
.person-lead p:last-child { color: #d2e0d4; }
.section-internal { background: var(--coral); color: var(--white); padding: 64px 0; }
.internal-panel { display: flex; justify-content: space-between; align-items: end; gap: 42px; }
.internal-panel .eyebrow { color: var(--moss); }
.internal-panel h2 { max-width: 690px; }
.internal-panel h2 span { color: var(--moss); }
.internal-panel p:not(.eyebrow) { max-width: 620px; margin: 16px 0 0; color: #ffe9e2; font-size: 14px; }
.internal-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 17px; white-space: nowrap; }
.internal-status { color: #ffe9e2; font: 11px var(--mono); }
.internal-status i { margin-right: 5px; background: var(--moss); }
.internal-actions .outline-button { margin: 0; border-color: var(--white); color: var(--white); }
.internal-actions .outline-button:hover { background: var(--white); color: var(--coral); }
.section-contact { padding: 82px 0; }
.contact-details p { max-width: 440px; margin: 0; font-size: 16px; }
.contact-details a { display: inline-block; max-width: 100%; margin: 17px 0; color: var(--forest); font: 700 18px var(--mono); white-space: normal; overflow-wrap: anywhere; word-break: break-word; }
.contact-details .muted { color: var(--muted); font-size: 12px; }
.site-footer { background: var(--ink); color: #d8e5da; padding: 30px 0; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; }
.footer-brand { margin: 0; }
.footer-brand .brand-mark { background: var(--coral); color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: #b9cbbd; font-size: 11px; }
.footer-links a:hover { color: var(--moss); }
.copyright { grid-column: 1 / -1; margin: 0; color: #8da295; font: 10px var(--mono); }
.toast { position: fixed; z-index: 50; bottom: 22px; left: 50%; transform: translate(-50%, 18px); padding: 11px 15px; background: var(--ink); color: var(--white); font-size: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
@media (max-width: 1000px) { .main-nav { gap: 14px; font-size: 12px; } .nav-shell { gap: 16px; } .hero-grid { gap: 42px; } .direction-grid, .people-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 620px); }
  .topline-inner span:last-child { display: none; }
  .nav-shell { min-height: 66px; }
  .brand small, .internal-link { display: none; }
  .menu-toggle { display: block; margin-left: auto; }
  .main-nav { position: absolute; top: 66px; left: 0; right: 0; display: none; flex-direction: column; align-items: flex-start; gap: 2px; padding: 12px 16px 16px; border-bottom: 1px solid var(--line); background: var(--paper); }
  .main-nav.is-open { display: flex; }
  .main-nav a { width: 100%; padding: 10px 0; }
  .hero { padding: 48px 0 64px; }
  .hero-grid, .intro-grid, .methods-grid, .contact-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero h1 { font-size: 46px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { flex-wrap: wrap; gap: 16px; margin: 26px 0 36px; }
  .hero-media img { height: 292px; }
  .hero-media:before { inset: 11px -10px -10px 10px; }
  .section { padding: 70px 0; }
  .section-head { display: block; margin-bottom: 28px; }
  .section-note { margin-top: 14px; }
  .direction-grid, .people-grid { grid-template-columns: 1fr; }
  .direction-card { min-height: 230px; }
  .direction-card h3 { margin-top: 38px; }
  .filter-group { margin-top: 18px; overflow-x: auto; padding-bottom: 3px; }
  .result-row { grid-template-columns: 52px minmax(0, 1fr) 14px; gap: 12px; }
  .result-row h3 { font-size: 17px; }
  .method-item strong { font-size: 15px; }
  .internal-panel { display: block; }
  .internal-actions { align-items: flex-start; margin-top: 24px; }
  .footer-grid { grid-template-columns: 1fr; }
  .copyright { grid-column: auto; }
}
