/* Mingbai science pages use the native green evidence palette and typography.
   Native pages and the original stylesheet remain unchanged. */
body[data-kind="science"]{--bg:#faf9f5;--ink:#172e29;--muted:#52655e;--accent:#176452;--light:#eaf0e8;--border:#d4ded4;--paper:#fffef9}
.science-top h1,.science-top .lead{max-width:1030px;overflow-wrap:anywhere}
.science-review-note{max-width:920px;font-size:14px;color:var(--muted);margin:20px 0 0;line-height:1.9}
.science-layout{grid-template-columns:230px minmax(0,1fr);gap:45px}
.science-toc{max-height:calc(100vh - 50px);overflow-y:auto;padding-right:12px}
.science-reader{font-size:18px;line-height:1.95;max-width:800px;min-width:0}
.science-reader p,.science-reader h2,.science-reader h3,.science-reader li{overflow-wrap:anywhere}
.science-reader>section{margin-block:48px}
.science-reader .science-section h2,.science-reader .science-faq h2{line-height:1.55}
.science-reader [tabindex="-1"]{scroll-margin-top:30px}
.science-reader .science-citations{font-size:13px;line-height:1.7;margin-top:12px;margin-bottom:0}
.science-reader .science-citation{white-space:nowrap;display:inline-block;margin-right:4px;text-decoration:underline}
.science-reader .science-facts dd{font-size:16px}
.science-reader .science-facts .science-citations{font-size:12px}
.science-table{background:var(--paper);margin-block:28px}
.science-table table{font-size:15px}
.science-table th,.science-table td{line-height:1.85}
.science-figure{margin:44px 0;padding:24px;background:var(--paper);border:1px solid var(--border);border-radius:7px;min-width:0}
.science-figure h3{font-size:24px;margin:0 0 20px}
.science-figure img{width:100%;height:auto;border:1px solid var(--border);border-radius:5px}
.science-figure figcaption{font-size:15px;line-height:1.85;color:var(--muted);margin-top:18px}
.science-figure figcaption p{margin-bottom:14px}
.science-figure-table{margin-block:20px}
.science-figure-table table{table-layout:fixed;width:100%;min-width:0}
.science-table:not(.science-figure-table) table{min-width:36rem}
.science-figure-table[data-columns="3"] table{min-width:27rem}
.science-figure-table[data-columns="4"] table{min-width:36rem}
.science-figure-table[data-columns="5"] table{min-width:45rem}
.science-figure-table[data-columns="6"] table{min-width:54rem}
.science-figure-table th,.science-figure-table td{min-width:0;padding:12px 10px;overflow-wrap:anywhere}
.science-downloads{display:flex;flex-wrap:wrap;gap:12px 24px;font-size:14px;margin-bottom:0!important}
.science-downloads a{max-width:100%}
.science-faq>section{border-top:1px solid var(--border);padding-top:22px;margin-top:25px}
.science-faq h3{font-size:21px;line-height:1.7}
.science-reader .source-list{font-size:15px;line-height:1.9}
.science-reader .source-list li{padding-left:2px;margin-bottom:16px}
.science-reader .science-related{font-size:16px}
@media(max-width:1000px){.science-layout{grid-template-columns:190px minmax(0,1fr);gap:28px}.science-figure{padding:20px}}
@media(max-width:700px){.science-layout{display:block}.science-top h1{font-size:31px;line-height:1.6}.science-top .lead{font-size:17px}.science-review-note{font-size:13px}.science-toc{max-height:none;overflow-y:visible;padding:18px}.science-reader{font-size:17px;line-height:1.95;max-width:none}.science-reader>section{margin-block:38px}.science-reader .science-section h2{font-size:25px}.science-reader .science-facts dd{font-size:15px}.science-figure{padding:16px;margin-block:36px}.science-figure h3{font-size:23px}.science-figure figcaption{font-size:14px}.science-figure-table table{font-size:14px}.science-figure-table th,.science-figure-table td{padding:11px 8px}.science-downloads{font-size:14px;gap:14px}.science-faq h3{font-size:20px}.science-reader .source-list{font-size:14px}}
@media (max-width:700px){
  body[data-kind="science"] .header-inner nav{
    flex-wrap:wrap;
    column-gap:16px;
    row-gap:8px;
    justify-content:flex-start;
  }
}

/* New science pages only: the native header and stylesheet stay byte-identical. */
body[data-kind="science"] .header-inner{flex-wrap:wrap;row-gap:16px;padding-block:18px}
body[data-kind="science"] .header-inner nav{flex-wrap:wrap;min-width:0;gap:8px 20px}
body[data-kind="science"] .header-inner nav a{max-width:100%;white-space:normal}
body[data-kind="science"] .brand{min-width:0;max-width:100%;white-space:normal;line-height:1.35}
body[data-kind="science"] .brand-mark{flex:none;width:1.52em;height:1.68em;line-height:1}
body[data-kind="science"] .language{max-width:100%;white-space:normal}
body[data-kind="science"] .skip{top:0;transform:translateY(-150%)}
body[data-kind="science"] .skip:focus{top:12px;transform:none}
@media(max-width:700px){
  body[data-kind="science"] .header-inner nav{column-gap:16px;row-gap:8px;justify-content:flex-start}
  body[data-kind="science"] .brand-mark{width:1.4em;height:1.55em}
  .science-figure-table[data-columns="2"] table{width:100%;min-width:0;table-layout:fixed}
  .science-figure-table[data-columns="2"] th,.science-figure-table[data-columns="2"] td{width:50%;min-width:0;white-space:normal;overflow-wrap:anywhere}
}

/* The sourced HTML table and hypothetical teaching figure are separate surfaces. */
.science-empirical{margin:30px 0 36px;padding:20px;border-left:4px solid var(--accent);background:var(--paper);min-width:0}
.science-empirical h3{font-size:23px;line-height:1.6;margin:0 0 16px}
.science-empirical .science-table{margin-block:0}
.science-empirical caption{text-align:left;font-size:15px;line-height:1.85;color:var(--muted);padding:0 0 16px;overflow-wrap:anywhere}
.science-empirical-table table{table-layout:fixed;width:100%}
.science-empirical-table th,.science-empirical-table td{overflow-wrap:anywhere;white-space:normal}
.science-empirical-table[data-columns="1"] table{min-width:0}
.science-empirical-table[data-columns="2"] table{min-width:22rem}
.science-empirical-table[data-columns="3"] table{min-width:27rem}
.science-hypothetical{border-top:4px solid var(--accent)}
.science-csv-boundary{font-size:14px;line-height:1.85;color:var(--muted);margin:16px 0 0}
@media(max-width:700px){.science-empirical{padding:16px;margin-block:26px 32px}.science-empirical h3{font-size:22px}.science-empirical caption,.science-csv-boundary{font-size:14px}.science-empirical-table[data-columns="1"] table{min-width:0}}
