/* Wide calendar tables for /tools/wareki-converter/. */
#wareki-table { max-block-size: 70vh; overflow: auto; }
#wareki-table th, #wareki-table td { white-space: nowrap; padding: .45rem .7rem; }
#wareki-table thead th { position: sticky; inset-block-start: 0; z-index: 2; }
#wareki-table tbody th { position: sticky; inset-inline-start: 0; z-index: 1; }
#wareki-table thead th:first-child { inset-inline-start: 0; z-index: 3; }
#wareki-year-systems td, #wareki-date-systems td:nth-child(2) { overflow-wrap: anywhere; }
#wareki-year-systems small, #wareki-date-systems small { font-weight: normal; }
#wareki-table caption { text-align: start; padding: .4rem .7rem; }
/* Chinese era names of divided periods can list many states in one year. */
#wareki-table td:nth-child(8) { white-space: normal; min-inline-size: 22rem; }
